Enable upstream Cinder volume backup/restore capabilities
To workaround an upstream bug in rbd code, we need to create an empty file /etc/ceph/ceph.client.None.keyring in order to do cinder backup and restore. This file is created in cinder manifest when ceph backend is enabled. Story: 2003115 Task: 26797 Change-Id: I43388d5e1be2e37e32e88cce718034dbf58f53fc Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
This commit is contained in:
parent
0007569a0d
commit
ce5e5f8b0b
@ -474,6 +474,16 @@ define openstack::cinder::backend::ceph(
|
|||||||
rbd_user => $rbd_user,
|
rbd_user => $rbd_user,
|
||||||
rbd_ceph_conf => $rbd_ceph_conf,
|
rbd_ceph_conf => $rbd_ceph_conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# To workaround an upstream bug in rbd code, we need to create
|
||||||
|
# an empty file /etc/ceph/ceph.client.None.keyring in order to
|
||||||
|
# do cinder backup and restore.
|
||||||
|
file { "/etc/ceph/ceph.client.None.keyring":
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cinder_config {
|
cinder_config {
|
||||||
"${backend_name}/volume_backend_name": ensure => absent;
|
"${backend_name}/volume_backend_name": ensure => absent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user