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:
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 79692d0bc0bacae 81d6a201df
966446553bc8aea
After shelving, I can see the shelved image in glance:
$ glance image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+ 80ce-4792- b19f-32e97b8b18 0b | cirros- 0.3.4-x86_ 64-uec | c0a5-450a- 9cc2-2c05a2950f cf | cirros- 0.3.4-x86_ 64-uec- kernel | b022-4eb2- 8c56-73d7542754 1c | cirros- 0.3.4-x86_ 64-uec- ramdisk | 3262-4f4b- 9da0-3185e4d85d 44 | hi-shelved | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+
+------
| ID | Name |
+------
| 806c183b-
| 9d594345-
| 07d825e6-
| 9b23e7b7-
+------
$ sudo rbd -p images ls -l b022-4eb2- 8c56-73d7542754 1c 3652k 2 b022-4eb2- 8c56-73d7542754 1c@snap 3652k 2 yes 80ce-4792- b19f-32e97b8b18 0b 24576k 2 80ce-4792- b19f-32e97b8b18 0b@snap 24576k 2 yes 562b-43cc- a5b3-53a3a2cfa3 a9 24576k 2 562b-43cc- a5b3-53a3a2cfa3 a9@snap 24576k 2 yes c0a5-450a- 9cc2-2c05a2950f cf 4862k 2 c0a5-450a- 9cc2-2c05a2950f cf@snap 4862k 2 yes
NAME SIZE PARENT FMT PROT LOCK
07d825e6-
07d825e6-
806c183b-
806c183b-
8fd1626b-
8fd1626b-
9d594345-
9d594345-
But after unshelving, the shelved image is gone from glance:
$ glance image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+ 80ce-4792- b19f-32e97b8b18 0b | cirros- 0.3.4-x86_ 64-uec | c0a5-450a- 9cc2-2c05a2950f cf | cirros- 0.3.4-x86_ 64-uec- kernel | b022-4eb2- 8c56-73d7542754 1c | cirros- 0.3.4-x86_ 64-uec- ramdisk | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+
+------
| ID | Name |
+------
| 806c183b-
| 9d594345-
| 07d825e6-
+------
$ sudo rbd -p images ls -l b022-4eb2- 8c56-73d7542754 1c 3652k 2 b022-4eb2- 8c56-73d7542754 1c@snap 3652k 2 yes 80ce-4792- b19f-32e97b8b18 0b 24576k 2 80ce-4792- b19f-32e97b8b18 0b@snap 24576k 2 yes c0a5-450a- 9cc2-2c05a2950f cf 4862k 2 c0a5-450a- 9cc2-2c05a2950f cf@snap 4862k 2 yes
NAME SIZE PARENT FMT PROT LOCK
07d825e6-
07d825e6-
806c183b-
806c183b-
9d594345-
9d594345-