cannot delete image with status='deleted' and deleted=0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hi,
in my OpenStack Juno I have created a snapshot that gone into status='deleted' after creation.
When I try to delete this image I got a 404 "Image not found " and I cannot delete image in no way.
In "images" table DB the record fields are:
*******
id: 5c79d539-
name: my_image
size: 901840896
status: deleted
is_public: 0
created_at: 2015-05-07 15:24:45
updated_at: 2015-05-07 15:25:18
deleted_at: NULL
deleted: 0
disk_format: qcow2
container_format: bare
checksum: 4483088a8840fa4
owner: fdd21cc5a7b144b
min_disk: 1
min_ram: 0
protected: 0
virtual_size: NULL
For replicate this issue, I have created an image and I have change the status (via mysql UPDATE) from "active" to "deleted".
UPDATE images SET status='deleted' WHERE id = '5c79d539-
and if I run:
# glance image-delete 5c79d539-
result is:
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
Image 5c79d539-
</body>
</html> (HTTP 404): Unable to delete image 5c79d539-
Changed in glance: | |
assignee: | nobody → Dharini Chandrasekar (dharini-chandrasekar) |
Changed in glance: | |
assignee: | Dharini Chandrasekar (dharini-chandrasekar) → nobody |
Hi,
When you try to take a snapshot , is the snapshot fails to create and then it goes to delete stated ?
If you are able to see the deleted snapshot in the glance image list , then glance image-delete should works.
If you can't see your deleted snapshot in the list, then if you try to delete that , glance will show Image not found.