]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Adjust 'ceph' authentication secret usage for rbd pool.
authorJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jul 2013 18:44:32 +0000 (14:44 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 23 Jul 2013 14:49:02 +0000 (10:49 -0400)
commitc2257d2ef90fd919aac7557ba02ce6fce8abfcab
tree5bf03409f224fff16451ac0d56fd5223e0542bfa
parent249409e765ed25f82f0a135c7ac750596b2f89b4
Adjust 'ceph' authentication secret usage for rbd pool.

Update virStorageBackendRBDOpenRADOSConn() to use the internal API to the
secret driver in order to get the secret value instead of the external
virSecretGetValue() path. Without the flag VIR_SECRET_GET_VALUE_INTERNAL_CALL
there is no way to get the value of private secret.

This also requires ensuring there is a connection which wasn't true for
for the refreshPool() path calls from storageDriverAutostart() prior to
adding support for the connection to a qemu driver. It seems calls to
virSecretLookupByUUIDString() and virSecretLookupByUsage() from the
refreshPool() path would have failed with no way to find the secret - that is
theoretically speaking since the 'conn' was NULL the failure would have been
"failed to find the secret".
src/storage/storage_backend_rbd.c