delete an image using api but the image is still uploading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned |
Bug Description
1:use glance's image-create command create a new image
# glance --os-image-
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2015-12-
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 431ddb0a-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | centos7 |
| owner | 6f517af2441c498
| protected | False |
| size | 4310695936 |
| status | queued |
| updated_at | 2015-12-
| virtual_size | None |
+------
2:image is uploading
# ll /var/lib/
total 211328
-rw-r----- 1 glance glance 216399872 Dec 8 01:33 431ddb0a-
3:use glance's image-delete command delete this image
# glance --os-image-
4:the image is disappear from database but is still uploading
# glance image-list
+----+------+
| ID | Name |
+----+------+
+----+------+
# ll /var/lib/
total 673220
-rw-r----- 1 glance glance 689373184 Dec 8 01:34 431ddb0a-
# ll /var/lib/
total 686532
-rw-r----- 1 glance glance 703004672 Dec 8 01:34 431ddb0a-
5: the image file is deleted until upload completely
# ll /var/lib/
total 4209668
-rw-r----- 1 glance glance 4310695936 Dec 8 01:39 431ddb0a-
# ll /var/lib/
total 0
should we kill the upload process when we delete the image by API?
Is it reproducible on master?