Activity log for bug #1922251

Date Who What changed Old value New value Message
2021-04-01 14:29:15 Lucian Petrut bug added bug
2021-04-01 14:29:24 Lucian Petrut tags libvirt ceph libvirt
2021-04-01 14:29:37 Lucian Petrut bug task added glance
2021-04-01 14:29:49 Lucian Petrut summary instance snapshots fail when using rbd nova instance snapshots fail when using rbd
2021-04-01 14:44:01 Lucian Petrut description Snapshotting instances that use the RBD Glance image backend fails if Glance is configured to use multiple stores. Trace: http://paste.openstack.org/raw/804113/ The reason is that the Nova Libvirt driver creates the RBD snapshot directly and then updates the Glance image location. However, Nova isn't aware of the Glance store, so this information won't be included. Glance will error out when trying to add a location that doesn't include the store name when multiple stores are enabled, or even if there's a single one passed through the "enabled_backends" glance option. https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/virt/libvirt/imagebackend.py#L1144-L1178 https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/image/glance.py#L701-L702 https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/image/glance.py#L555-L561 https://github.com/openstack/python-glanceclient/blob/3.3.0/glanceclient/v2/images.py#L472 https://github.com/openstack/glance/blob/b5437773b20db3d6ef20d449a8a43171c8fc7f69/glance/location.py#L122-L129 https://github.com/openstack/glance_store/blob/ae9022cd3639bf3d0f482921d03b2b751f757399/glance_store/location.py#L83-L113 The image store should probably be fetched by either Nova or Glance. Snapshotting instances that use the RBD Glance image backend fails if Glance is configured to use multiple stores. Trace: http://paste.openstack.org/raw/804113/ The reason is that the Nova Libvirt driver creates the RBD snapshot directly and then updates the Glance image location. However, Nova isn't aware of the Glance store, so this information won't be included. Glance will error out when trying to add a location that doesn't include the store name when multiple stores are enabled, or even if there's a single one passed through the "enabled_backends" glance option. https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/virt/libvirt/imagebackend.py#L1144-L1178 https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/image/glance.py#L701-L702 https://github.com/openstack/nova/blob/68af588d5c7b5c9472cbc2731fee2956c86206ea/nova/image/glance.py#L555-L561 https://github.com/openstack/python-glanceclient/blob/3.3.0/glanceclient/v2/images.py#L472 https://github.com/openstack/glance/blob/b5437773b20db3d6ef20d449a8a43171c8fc7f69/glance/location.py#L122-L129 https://github.com/openstack/glance_store/blob/ae9022cd3639bf3d0f482921d03b2b751f757399/glance_store/location.py#L83-L113
2021-04-01 19:06:47 Chris Valean bug added subscriber Chris Valean
2021-04-06 09:09:05 Balazs Gibizer tags ceph libvirt ceph libvirt multistore
2021-04-07 06:08:48 Lucian Petrut marked as duplicate 1802587