virsh returns a list of secret uuids, not keyring names
virsh secret-list outputs a list of secret UUIDs and whether or not they are used. You would not find keyring names such as client.volumes or client.nova in there. Change-Id: I425187f26018e7c7505fe584ac5cd50a82a32a6b
This commit is contained in:
@@ -77,7 +77,7 @@ class nova::compute::rbd (
|
||||
|
||||
exec { 'set-secret-value virsh':
|
||||
command => "/usr/bin/virsh secret-set-value --secret $(cat /etc/nova/virsh.secret) --base64 $(ceph auth get-key ${rbd_keyring})",
|
||||
unless => "/usr/bin/virsh secret-list | grep ${rbd_keyring}",
|
||||
unless => "/usr/bin/virsh secret-list | grep ${libvirt_rbd_secret_uuid}",
|
||||
require => Exec['get-or-set virsh secret']
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user