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

Function configure_devstack_and_ceph

qa/tasks/devstack.py:91–105  ·  view source on GitHub ↗
(ctx, config, devstack_node, ceph_node)

Source from the content-addressed store, hash-verified

89
90
91def configure_devstack_and_ceph(ctx, config, devstack_node, ceph_node):
92 pool_size = config.get('pool_size', '128')
93 create_pools(ceph_node, pool_size)
94 distribute_ceph_conf(devstack_node, ceph_node)
95 # This is where we would install python-ceph and ceph-common but it appears
96 # the ceph task does that for us.
97 generate_ceph_keys(ceph_node)
98 distribute_ceph_keys(devstack_node, ceph_node)
99 secret_uuid = set_libvirt_secret(devstack_node, ceph_node)
100 update_devstack_config_files(devstack_node, secret_uuid)
101 set_apache_servername(devstack_node)
102 # Rebooting is the most-often-used method of restarting devstack services
103 misc.reboot(devstack_node)
104 start_devstack(devstack_node)
105 restart_apache(devstack_node)
106
107
108def create_pools(ceph_node, pool_size):

Callers 1

installFunction · 0.85

Calls 10

distribute_ceph_confFunction · 0.85
generate_ceph_keysFunction · 0.85
distribute_ceph_keysFunction · 0.85
set_libvirt_secretFunction · 0.85
set_apache_servernameFunction · 0.85
start_devstackFunction · 0.85
restart_apacheFunction · 0.85
create_poolsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected