image download process won't terminate after deleting image from dashboard
Bug #1188532 reported by
Zhong Chaoliang
This bug report is a duplicate of:
Bug #1398830: [OSSA 2015-003] Glance image leak when in saving state (CVE-2014-9623).
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Committed
|
Medium
|
Mike Fedosin | ||
Icehouse |
Fix Committed
|
Undecided
|
Unassigned | ||
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Version: Grizzly on ubuntu 12.04
Firstly, create an image with the dashboard, and input the url of the image, rather than selecting a local image file.
Once the status of the image becomes 'saving', delete it from the dashboard.
The image is removed from the dashboard as expected, however, the downloading process continues in the background.
If you have a look at /var/lib/
Sorry, I'm not sure whether it is an issue of glance or horizon.
description: | updated |
description: | updated |
description: | updated |
Changed in glance: | |
assignee: | nobody → Mike Fedosin (mfedosin) |
To post a comment you must log in.
I could reproduce this in a DevStack deployment on Ubuntu 12.04 LTS.
## Glance images folder
vkmc@havana: /opt/stack/ data/glance/ images$ ls -la 67d0-4005- b78e-0936be8770 aa <- b0c4-4d78- 8667-cefd077433 a6 36c5-465b- a102-9e282e908b 8f 15c5-4dd0- b1d8-44de8afe04 4d /opt/stack/ data/glance/ images$ ls -la 67d0-4005- b78e-0936be8770 aa <- b0c4-4d78- 8667-cefd077433 a6 36c5-465b- a102-9e282e908b 8f 15c5-4dd0- b1d8-44de8afe04 4d
total 33052
drwxrwxr-x 2 vkmc vkmc 4096 Jul 3 12:22 .
drwxrwxr-x 4 vkmc vkmc 4096 Jul 3 12:09 ..
-rw-r----- 1 vkmc vkmc 0 Jul 3 12:22 1aa74a9a-
-rw-r----- 1 vkmc vkmc 4955792 Jul 3 12:11 2fb167b6-
-rw-r----- 1 vkmc vkmc 25165824 Jul 3 12:12 b0b77bb0-
-rw-r----- 1 vkmc vkmc 3714968 Jul 3 12:11 be71ae20-
vkmc@havana:
total 42000
drwxrwxr-x 2 vkmc vkmc 4096 Jul 3 12:22 .
drwxrwxr-x 4 vkmc vkmc 4096 Jul 3 12:09 ..
-rw-r----- 1 vkmc vkmc 9159168 Jul 3 12:22 1aa74a9a-
-rw-r----- 1 vkmc vkmc 4955792 Jul 3 12:11 2fb167b6-
-rw-r----- 1 vkmc vkmc 25165824 Jul 3 12:12 b0b77bb0-
-rw-r----- 1 vkmc vkmc 3714968 Jul 3 12:11 be71ae20-
## image_locations table after bug reproduction
It's present in the Glance image_locations table
mysql> select * from image_locations; ------- ------- ------- ------- ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- ------- --+---- ------- ------- ---+--- ------- --+---- -----+ ------- ------- ------- ------- ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- ------- --+---- ------- ------- ---+--- ------- --+---- -----+ b0c4-4d78- 8667-cefd077433 a6 | file:// /opt/stack/ data/glance/ images/ 2fb167b6- b0c4-4d78- 8667-cefd077433 a6 | 2013-07-03 15:11:58 | 2013-07-03 15:11:58 | NULL | 0 | 15c5-4dd0- b1d8-44de8afe04 4d | file:// /opt/stack/ data/glance/ images/ be71ae20- 15c5-4dd0- b1d8-44de8afe04 4d | 2013-07-03 15:11:59 | 2013-07-03 15:11:59 | NULL | 0 | 36c5-465b- a102-9e282e908b 8f | file:// /opt/stack/ data/glance/ images/ b0b77bb0- 36c5-465b- a102-9e282e908b 8f | 2013-07-03 15:12:01 | 2013-07-03 15:12:01 | NULL | 0 | 67d0-4005- b78e-0936be8770 aa | file:// /opt/stack/ data/glance/ images/ 1aa74a9a- 67d0-4005- b78e-0936be8770 aa | 2013-07-03 15:22:39 | 2013-07-03 15:22:39 | NULL | 0 | <- ------- ------- ------- ------- ------- --+---- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+----- ------- ------- --+---- ------- ------- ---+--- ------- --+---- -----+
+----+-
| id | image_id | value | created_at | updated_at | deleted_at | deleted |
+----+-
| 1 | 2fb167b6-
| 2 | be71ae20-
| 3 | b0b77bb0-
| 4 | 1aa74a9a-
+----+-
4 rows in set (0.00 sec)
## image-list after bug reproduction
But, it's not in the image-list
vkmc@havana: /opt/stack/ data/glance/ images$ glance image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- ------- ---+--- ------- ------- -+----- -----+- ------- + ------- ------- ------- ------- ----+-- ------- ------- ----...
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------