get image status error in image_protection_plugin

Bug #1720506 reported by jiaopengju
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
jiaopengju

Bug Description

Currently, getting image status in image protection plugin is not right.

def get_image_status(glance_client, image_id):
    LOG.debug('Polling image (image_id: %s)', image_id)
    try:
        status = glance_client.images.get(image_id)
    except exception.NotFound:
        status = 'not-found'
    LOG.debug('Polled image (image_id: %s) status: %s',
              image_id, status)
    return status

We should correct it.

jiaopengju (pj-jiao)
Changed in karbor:
assignee: nobody → jiaopengju (pj-jiao)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to karbor (master)

Fix proposed to branch: master
Review: https://review.openstack.org/508662

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to karbor (master)

Reviewed: https://review.openstack.org/508662
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=3afb417123cd0cca4c3ae84a196ec1561a631aa9
Submitter: Jenkins
Branch: master

commit 3afb417123cd0cca4c3ae84a196ec1561a631aa9
Author: jiaopengju <email address hidden>
Date: Sat Sep 30 14:23:15 2017 +0800

    Fix getting image status error

    Change-Id: Ide68fb0aa22ccbb0cb8042d8c05e795d6bbcce7c
    Closes-Bug: #1720506

Changed in karbor:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 0.6.0

This issue was fixed in the openstack/karbor 0.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 1.0.0

This issue was fixed in the openstack/karbor 1.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 1.1.0

This issue was fixed in the openstack/karbor 1.1.0 release.

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.