glance/glance/common/scripts
Brian Rosmaita 4366a7493c 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
2017-08-23 14:12:43 -04:00
..
api_image_import Add import endpoint to initiate image import 2017-05-29 13:20:35 +01:00
image_import Remove unused variable 2017-06-21 08:33:41 +00:00
__init__.py Add import endpoint to initiate image import 2017-05-29 13:20:35 +01:00
utils.py Fix api_image_import tasks stuck in 'pending' 2017-08-23 14:12:43 -04:00