Comment 5 for bug 1653953

Revision history for this message
melanie witt (melwitt) wrote :

I first tried with CentOS7 and that didn't work with stack.sh failing during install of the ceph-* packages. Tried a third time with Fedora 24 and was able to get shelve/unshelve to work. But, I wasn't able to reproduce the bug. The shelved image gets removed from glance and the backend when I unshelve.

$ git rev-parse HEAD
966446553bc8aea79692d0bc0bacae81d6a201df

After shelving, I can see the shelved image in glance:

$ glance image-list
+--------------------------------------+---------------------------------+
| ID | Name |
+--------------------------------------+---------------------------------+
| 806c183b-80ce-4792-b19f-32e97b8b180b | cirros-0.3.4-x86_64-uec |
| 9d594345-c0a5-450a-9cc2-2c05a2950fcf | cirros-0.3.4-x86_64-uec-kernel |
| 07d825e6-b022-4eb2-8c56-73d75427541c | cirros-0.3.4-x86_64-uec-ramdisk |
| 9b23e7b7-3262-4f4b-9da0-3185e4d85d44 | hi-shelved |
+--------------------------------------+---------------------------------+

$ sudo rbd -p images ls -l
NAME SIZE PARENT FMT PROT LOCK
07d825e6-b022-4eb2-8c56-73d75427541c 3652k 2
07d825e6-b022-4eb2-8c56-73d75427541c@snap 3652k 2 yes
806c183b-80ce-4792-b19f-32e97b8b180b 24576k 2
806c183b-80ce-4792-b19f-32e97b8b180b@snap 24576k 2 yes
8fd1626b-562b-43cc-a5b3-53a3a2cfa3a9 24576k 2
8fd1626b-562b-43cc-a5b3-53a3a2cfa3a9@snap 24576k 2 yes
9d594345-c0a5-450a-9cc2-2c05a2950fcf 4862k 2
9d594345-c0a5-450a-9cc2-2c05a2950fcf@snap 4862k 2 yes

But after unshelving, the shelved image is gone from glance:

$ glance image-list
+--------------------------------------+---------------------------------+
| ID | Name |
+--------------------------------------+---------------------------------+
| 806c183b-80ce-4792-b19f-32e97b8b180b | cirros-0.3.4-x86_64-uec |
| 9d594345-c0a5-450a-9cc2-2c05a2950fcf | cirros-0.3.4-x86_64-uec-kernel |
| 07d825e6-b022-4eb2-8c56-73d75427541c | cirros-0.3.4-x86_64-uec-ramdisk |
+--------------------------------------+---------------------------------+

$ sudo rbd -p images ls -l
NAME SIZE PARENT FMT PROT LOCK
07d825e6-b022-4eb2-8c56-73d75427541c 3652k 2
07d825e6-b022-4eb2-8c56-73d75427541c@snap 3652k 2 yes
806c183b-80ce-4792-b19f-32e97b8b180b 24576k 2
806c183b-80ce-4792-b19f-32e97b8b180b@snap 24576k 2 yes
9d594345-c0a5-450a-9cc2-2c05a2950fcf 4862k 2
9d594345-c0a5-450a-9cc2-2c05a2950fcf@snap 4862k 2 yes