That the file system is ready for clients.
(ctx, config)
| 93 | |
| 94 | |
| 95 | def ready(ctx, config): |
| 96 | """ |
| 97 | That the file system is ready for clients. |
| 98 | """ |
| 99 | |
| 100 | if config is None: |
| 101 | config = {} |
| 102 | assert isinstance(config, dict), \ |
| 103 | 'task only accepts a dict for configuration' |
| 104 | |
| 105 | timeout = config.get('timeout', 300) |
| 106 | |
| 107 | mdsc = MDSCluster(ctx) |
| 108 | status = mdsc.status() |
| 109 | |
| 110 | for filesystem in status.get_filesystems(): |
| 111 | fs = Filesystem(ctx, fscid=filesystem['id']) |
| 112 | fs.wait_for_daemons(timeout=timeout, status=status) |
| 113 | |
| 114 | def clients_evicted(ctx, config): |
| 115 | """ |
no test coverage detected