glanceclient chokes on task-list, task schema needs update

Bug #1711018 reported by Brian Rosmaita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Brian Rosmaita

Bug Description

$ glance task-list
u'api_image_import' is not one of [u'import']

Failed validating u'enum' in schema[u'properties'][u'type']:
    {u'description': u'The type of task represented by this content',
     u'enum': [u'import'],
     u'type': u'string'}

On instance[u'type']:
    u'api_image_import'

The GET /v2/tasks call works via the API. The problem is that the glanceclient is using the tasks schema to validate the response, so this does need to be fixed on the API side.

Changed in glance:
status: Triaged → In Progress
Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/494063
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=b6e4ddaf42af2d4169681969bd288b678a65ae32
Submitter: Jenkins
Branch: master

commit b6e4ddaf42af2d4169681969bd288b678a65ae32
Author: Brian Rosmaita <email address hidden>
Date: Tue Aug 15 22:46:32 2017 -0400

    Add 'api_image_import' type to task(s) schemas

    The glanceclient relies on the schemas being accurate so it can
    format responses. Without this update, admins won't be able to
    use the glanceclient generate a task list containing the
    api_image_import task that the task engine uses to process the
    new image import process being introduced in Pike.

    Closes-bug: #1711018

    Change-Id: I5bcc9f4cdc55635809e8a90be555a367348a58c2

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/495342

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/pike)

Reviewed: https://review.openstack.org/495342
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=7a14edda9ee266ad165ce5009215a13d1dac1003
Submitter: Jenkins
Branch: stable/pike

commit 7a14edda9ee266ad165ce5009215a13d1dac1003
Author: Brian Rosmaita <email address hidden>
Date: Tue Aug 15 22:46:32 2017 -0400

    Add 'api_image_import' type to task(s) schemas

    The glanceclient relies on the schemas being accurate so it can
    format responses. Without this update, admins won't be able to
    use the glanceclient generate a task list containing the
    api_image_import task that the task engine uses to process the
    new image import process being introduced in Pike.

    Closes-bug: #1711018

    Change-Id: I5bcc9f4cdc55635809e8a90be555a367348a58c2
    (cherry picked from commit b6e4ddaf42af2d4169681969bd288b678a65ae32)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 15.0.0.0rc2

This issue was fixed in the openstack/glance 15.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 16.0.0.0b1

This issue was fixed in the openstack/glance 16.0.0.0b1 development milestone.

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.