2. Inspect usage of ceph resources:
root@node-1:~# ceph df
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
113G 106G 6277M 5.42
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
data 0 0 0 54723M 0
metadata 1 0 0 54723M 0
rbd 2 0 0 54723M 0
images 3 12976k 0.01 54723M 5
volumes 4 0 0 54723M 0
backups 5 0 0 54723M 0
compute 6 0 0 54723M 0
As we can see pool 'images' contains only 5 objects.
3. Start creating image with glance CLI:
glance image-create --file ./CentOS-6-x86_64-GenericCloud-1508.qcow2 --disk-format qcow2 --container-format bare --progress
4. Interrupt in creating process in the middle of creation with CTRL-C:
[=====================> ] 73%^C... terminating glance client
5. Inspect usage of ceph resources again:
root@node-1:~# ceph df
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
113G 105G 7798M 6.74
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
data 0 0 0 53790M 0
metadata 1 0 0 53790M 0
rbd 2 0 0 53790M 0
images 3 524M 0.45 53790M 71
volumes 4 0 0 53790M 0
backups 5 0 0 53790M 0
compute 6 0 0 53790M 0
Now pool 'images' contains 71 objects but actually image haven't been saved in glance. So there are residual objects that haven't been deleted.
After applying patch glance should automatically delete residual objects from ceph in case when image uploading fails. For example: http://paste.openstack.org/show/585335/
Note for QA:
Steps to reproduce: cloud.centos. org/centos/ 6.6/images/ CentOS- 6-x86_64- GenericCloud- 1508.qcow2
1. Download some cloud image, for example:
wget http://
2. Inspect usage of ceph resources:
root@node-1:~# ceph df
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
113G 106G 6277M 5.42
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
data 0 0 0 54723M 0
metadata 1 0 0 54723M 0
rbd 2 0 0 54723M 0
images 3 12976k 0.01 54723M 5
volumes 4 0 0 54723M 0
backups 5 0 0 54723M 0
compute 6 0 0 54723M 0
As we can see pool 'images' contains only 5 objects.
3. Start creating image with glance CLI: 6-x86_64- GenericCloud- 1508.qcow2 --disk-format qcow2 --container-format bare --progress
glance image-create --file ./CentOS-
4. Interrupt in creating process in the middle of creation with CTRL-C: ======= ======= => ] 73%^C... terminating glance client
[======
5. Inspect usage of ceph resources again:
root@node-1:~# ceph df
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
113G 105G 7798M 6.74
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
data 0 0 0 53790M 0
metadata 1 0 0 53790M 0
rbd 2 0 0 53790M 0
images 3 524M 0.45 53790M 71
volumes 4 0 0 53790M 0
backups 5 0 0 53790M 0
compute 6 0 0 53790M 0
Now pool 'images' contains 71 objects but actually image haven't been saved in glance. So there are residual objects that haven't been deleted. paste.openstack .org/show/ 585335/
After applying patch glance should automatically delete residual objects from ceph in case when image uploading fails. For example: http://