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

Function generate_ceph_keys

qa/tasks/devstack.py:124–136  ·  view source on GitHub ↗
(ceph_node)

Source from the content-addressed store, hash-verified

122
123
124def generate_ceph_keys(ceph_node):
125 log.info("Generating Ceph keys...")
126
127 ceph_auth_cmds = [
128 ['sudo', 'ceph', 'auth', 'get-or-create', 'client.cinder', 'mon',
129 'allow r', 'osd', 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images'], # noqa
130 ['sudo', 'ceph', 'auth', 'get-or-create', 'client.glance', 'mon',
131 'allow r', 'osd', 'allow class-read object_prefix rbd_children, allow rwx pool=images'], # noqa
132 ['sudo', 'ceph', 'auth', 'get-or-create', 'client.cinder-backup', 'mon',
133 'allow r', 'osd', 'allow class-read object_prefix rbd_children, allow rwx pool=backups'], # noqa
134 ]
135 for cmd in ceph_auth_cmds:
136 ceph_node.run(args=cmd)
137
138
139def distribute_ceph_keys(devstack_node, ceph_node):

Callers 1

Calls 2

infoMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected