Bug 1041740

Summary: [RFE][glance]: Adding status property to image location
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-glanceAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dron, eglynn, fpercoco, markmc, scohen, yeylon
Target Milestone: ---Keywords: FutureFeature, OtherQA, Triaged
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/glance/+spec/image-location-status
Whiteboard: upstream_milestone_next upstream_status_implemented upstream_definition_approved
Fixed In Version: openstack-glance-2015.1.0-6.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:10:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RHOS Integration 2013-12-12 19:07:12 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/glance/+spec/image-location-status.

Description:

Adding status for each image backend storage location to optimize Glance deployment mode. Operator can deploy glance more easy and keep high performance, and using a centralized scrubber service but deploy it on each glance-api node.

1. Add a status field to image location DB entry. Three possible states are 'active', 'pending_delete', and 'deleted'.
2. Keep location status be internal, only display/export locations by API if they are 'active'.
3. The public API doesn't need to change.
4. Image location status migration initially:
image-status => location-status
--------------------------------------------
queued => <None>
saving => <None>
active => active
pending_delete => pending_delete
killed or deleted => deleted
5. Image location status transition DAG diagram:
image upload data or new location(s) added ==>
    'active' status ==> image deleted by api controller ==>
        if CONF.delayed_delete disable ==> delete image  ==> 'deleted' status (end)
                                             |---- enabled ==> schedule delayed delete ==> 'pending_delete' status
                                                                                 ==> Scrubber delete image  ==> 'deleted' status (end)

Specification URL (additional information):

None

Comment 8 Sean Cohen 2015-01-26 03:16:05 UTC
Code was merged upstream
Tracking for Kilo feature freeze
Sean

Comment 14 errata-xmlrpc 2015-08-05 13:10:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548