Reviewed: https://review.openstack.org/389399 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b89efa3ef611a1932df0c2d6e6f30315b5111a57 Submitter: Jenkins Branch: master
commit b89efa3ef611a1932df0c2d6e6f30315b5111a57 Author: Matt Riedemann <mrie...@us.ibm.com> Date: Fri Nov 4 10:39:57 2016 -0400 libvirt: prefer cinder rbd auth values over nova.conf In the case that the ceph storage backing volumes is different from the one backing ephemeral storage in nova, the auth values in the rbd connection_info could be different and not work if we are using the nova.conf values for ephemeral storage. This change makes the volume connection config code for rbd prefer the cinder connection_info values if they exist, and only falls back to nova config values if cinder doesn't have anything set. Depends-On: I4655cae3212d589177d2570403b563a83aad529a Change-Id: Idcbada705c1d38ac5fd7c600141c2de7020eae25 Closes-Bug: #1635008 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1635008 Title: rbd credentials in nova.conf overwrite connection_info from cinder Status in OpenStack Compute (nova): Fix Released Bug description: Description =========== When rbd_user and rbd_secret_uuid are set in nova.conf, they overwrite the values returned from Cinder in the connection_info object. Therefore both ephemeral storage in Ceph, and multiple Cinder volume Ceph backends can't be used at the same time. Steps to reproduce ================== * In nova.conf, set rbd_user, rbd_secret_uuid, images_rbd_pool, etc. * Booting a VMs. SUCCESS * Try attaching a volume from a pool with different credentials than the ephemeral one. FAILS * Unset rbd_user, rbd_secret_uuid * Try attaching a volume from a pool with different credentials than the ephemeral one. SUCCESS * Try booting a VM. FAILS Expected result =============== Both ephemeral and multiple ceph backends should work at the same time. Actual result ============= Either ephemeral or multiple ceph backends works at the same time. https://github.com/openstack/nova/blob/4f91ed3a547965ed96a22520edcfb783e7936e95/nova/virt/libvirt/volume/net.py#L89-L95 Environment =========== 1. Exact version of OpenStack you are running. Liberty Name : openstack-nova Arch : noarch Epoch : 1 Version : 12.0.4 Release : 8.el7ost Size : 14 k Repo : rhel-7-server-openstack-8-rpms-local 2. Which hypervisor did you use? Compiled against library: libvirt 1.2.17 Using library: libvirt 1.2.17 Using API: QEMU 1.2.17 Running hypervisor: QEMU 2.3.0 2. Which storage type did you use? Ceph, not sure on version. 3. Which networking type did you use? Neutron with OpenVSwitch Logs & Configs ============== -- To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1635008/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp