Deactivated images are not returned for list image requests

Bug #1445608 reported by Luke Wollney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

Overview:
After deactivating an image, the image owner can no longer see the image in a list images response.

Steps to reproduce:
1) Create an image with user A
2) Deactivate the image with an admin
3) List all images, accounting for pagination as needed, with user A via:
GET /images
4) Notice that the created (deactivated) image is not returned

Expected:
Deactivated images are returned in a list images response

Actual:
Deactivated images are not returned in a list images response

Nicholas I (nicholas-d)
Changed in glance:
assignee: nobody → Nicholas I (nicholas-d)
Revision history for this message
Nicholas I (nicholas-d) wrote :

Being a non-admin i am not able to create an image. I get Access Denied Http (403).

As a admin i created the image from CLI. But i not sure how to deactivate the image i dont see any option in the dashboard.

Could you tell me how to deactivate the image?

Nicholas I (nicholas-d)
Changed in glance:
status: New → Incomplete
Revision history for this message
Kamil Rykowski (kamil-rykowski) wrote :

@Nicholas: To deactivate an image you just need to simply send POST request to the /v2/images/{image_id}/actions/deactivate There is not support for image deactivation in the CLI right now.

Note: The status of the image will be changed to deactivated only if its in the active state.

Changed in glance:
status: Incomplete → New
Revision history for this message
Luke Wollney (luke-wollney) wrote :

This is no longer an issue and can be closed.

Changed in glance:
status: New → Invalid
Nicholas I (nicholas-d)
Changed in glance:
assignee: Nicholas I (nicholas-d) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.