We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a9770f + b01fb94 commit 85eff17Copy full SHA for 85eff17
1 file changed
lib/ceph
@@ -106,8 +106,13 @@ function cleanup_ceph {
106
sudo rm -f ${CEPH_DISK_IMAGE}
107
fi
108
uninstall_package ceph ceph-common python-ceph libcephfs1 > /dev/null 2>&1
109
- VIRSH_UUID=$(sudo virsh secret-list | awk '/^ ?[0-9a-z]/ { print $1 }')
110
- sudo virsh secret-undefine ${VIRSH_UUID} >/dev/null 2>&1
+ if is_service_enabled cinder || is_service_enabled nova; then
+ local virsh_uuid=$(sudo virsh secret-list | awk '/^ ?[0-9a-z]/ { print $1 }')
111
+ sudo virsh secret-undefine ${virsh_uuid} >/dev/null 2>&1
112
+ fi
113
+ if is_service_enabled nova; then
114
+ iniset $NOVA_CONF libvirt rbd_secret_uuid ""
115
116
}
117
118
# configure_ceph() - Set config files, create data dirs, etc
0 commit comments