api_image_import task stuck in 'pending'

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

Bug Description

When the POST v2/images/image_id/import call is made, an api_image_import task is created but it stays stuck in 'pending'.

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

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

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

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

commit 4366a7493c2d0020a70943f2ff78c663a99c81c3
Author: Brian Rosmaita <email address hidden>
Date: Tue Aug 22 23:33:04 2017 -0400

    Fix api_image_import tasks stuck in 'pending'

    The immediate cause was that the api_image_import flow was not
    listed in the entrypoints in setup.cfg, so stevedore couldn't find
    it. After the entrypoint was added, the task was going to failure
    because it couldn't find the image_id. So this patch has the
    import controller add the image_id to the task_input dict. Next
    the flows were having trouble finding the image_id, so I just
    passed it to them. There's probably a more elegant way to have
    taskflow handle this, so this patch could use a refactoring. On
    the plus side, the interoperable image import process does appear
    to work with this patch.

    NOTE: if you want to test this in devstack, use the stable/ocata
    devstack but with the master branch of glance. The tasks engine
    doesn't appear to be running under the Pike devstack configuration.
    (Use defect 1712463 if you have an idea what might be the problem.)

    Change-Id: Ic68c17f4cb671eb664e2de331787b55fe9878a27
    Closes-bug: #1712462

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/496937

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

Reviewed: https://review.openstack.org/496937
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=982016670fe908e5d7026714b115e63b7c31b46b
Submitter: Jenkins
Branch: stable/pike

commit 982016670fe908e5d7026714b115e63b7c31b46b
Author: Brian Rosmaita <email address hidden>
Date: Tue Aug 22 23:33:04 2017 -0400

    Fix api_image_import tasks stuck in 'pending'

    The immediate cause was that the api_image_import flow was not
    listed in the entrypoints in setup.cfg, so stevedore couldn't find
    it. After the entrypoint was added, the task was going to failure
    because it couldn't find the image_id. So this patch has the
    import controller add the image_id to the task_input dict. Next
    the flows were having trouble finding the image_id, so I just
    passed it to them. There's probably a more elegant way to have
    taskflow handle this, so this patch could use a refactoring. On
    the plus side, the interoperable image import process does appear
    to work with this patch.

    NOTE: if you want to test this in devstack, use the stable/ocata
    devstack but with the master branch of glance. The tasks engine
    doesn't appear to be running under the Pike devstack configuration.
    (Use defect 1712463 if you have an idea what might be the problem.)

    Change-Id: Ic68c17f4cb671eb664e2de331787b55fe9878a27
    Closes-bug: #1712462
    (cherry picked from commit 4366a7493c2d0020a70943f2ff78c663a99c81c3)

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.