MCPcopy Create free account
hub / github.com/ceph/ceph / ready

Function ready

qa/tasks/fs.py:95–112  ·  view source on GitHub ↗

That the file system is ready for clients.

(ctx, config)

Source from the content-addressed store, hash-verified

93
94
95def 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
114def clients_evicted(ctx, config):
115 """

Callers 7

add_dispatcher_headMethod · 0.85
add_dispatcher_tailMethod · 0.85
handle_reconnect_okMethod · 0.85
handle_server_identMethod · 0.85
server_readyMethod · 0.85
client_readyMethod · 0.85
server_readyMethod · 0.85

Calls 5

get_filesystemsMethod · 0.80
wait_for_daemonsMethod · 0.80
FilesystemClass · 0.50
getMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected