(ceph_node)
| 122 | |
| 123 | |
| 124 | def 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 | |
| 139 | def distribute_ceph_keys(devstack_node, ceph_node): |
no test coverage detected