glance/glance/api
Brian Rosmaita 982016670f 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 4366a7493c)
2017-08-24 01:52:07 +00:00
..
middleware Fix Image API 'versions' response 2017-08-21 15:35:58 +00:00
v1 Merge "Prevent v1_api from making requests to v2_registry" 2017-08-10 15:59:51 +00:00
v2 Fix api_image_import tasks stuck in 'pending' 2017-08-24 01:52:07 +00:00
__init__.py Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
authorization.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
cached_images.py Add logging when policies forbid an action 2015-04-15 17:59:37 +02:00
common.py Merge "Import i18n functions directly" 2015-12-10 03:42:30 +00:00
policy.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
property_protections.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
versions.py Fix Image API 'versions' response 2017-08-21 15:35:58 +00:00