Bug #24528
closedMissing snapshot after upgrade from Kraken (11.2.0) to Luminous (12.2.5)
0%
Description
I just upgraded from Kraken to Luminous. But after the upgrade, I started noticing that openstack-compute-node service was not able to do a clone (CoW) of some glance image/snapshot and thus was creating the base image on the root disk before doing an "rbd import".
Some images are still working fine, but some are not.
If you look at the example below, everything seems to be consistent (snapshot present) but when trying to do snap protect, I get an error where normally I should get something like "the snapshot is already protected". I was able to workaround that by recreating a snapshot (using snap create) and redoing the protect (using snap protect).
[root@os-controller01 ~(admin@nuagex-labs)]# rbd --name client.admin --pool glance-images snap protect --snap snap --image 3dc4dfda-223a-40eb-9a72-b820fc2d8d2f rbd: protecting snap failed: (2) No such file or directory [root@os-controller01 ~(admin@nuagex-labs)]# qemu-img info rbd:glance-images/3dc4dfda-223a-40eb-9a72-b820fc2d8d2f:id=glance image: rbd:glance-images/3dc4dfda-223a-40eb-9a72-b820fc2d8d2f:id=glance file format: raw virtual size: 20G (21474836480 bytes) disk size: unavailable Snapshot list: ID TAG VM SIZE DATE VM CLOCK snap snap 20G 1969-12-31 19:00:00 00:00:00.000 [root@os-controller01 ~(admin@nuagex-labs)]# rbd --name client.glance --pool glance-images snap ls 3dc4dfda-223a-40eb-9a72-b820fc2d8d2f SNAPID NAME SIZE TIMESTAMP 744 snap 20480 MB [root@os-controller01 ~(admin@nuagex-labs)]# rbd --name client.admin --pool glance-images info 3dc4dfda-223a-40eb-9a72-b820fc2d8d2f rbd image '3dc4dfda-223a-40eb-9a72-b820fc2d8d2f': size 20480 MB in 5120 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.6a7eac2eb141f2 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:
My image is now listing two snapshots with the same name, is there any issue with that ?
[root@os-controller01 ~(keystone_admin)]# rbd --name client.glance --pool glance-images snap ls 3dc4dfda-223a-40eb-9a72-b820fc2d8d2f SNAPID NAME SIZE TIMESTAMP 744 snap 20480 MB 1021 snap 20480 MB Thu Jun 14 23:18:40 2018