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 |
|