glance/glance
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
..
api Fix api_image_import tasks stuck in 'pending' 2017-08-24 01:52:07 +00:00
async Fix api_image_import tasks stuck in 'pending' 2017-08-24 01:52:07 +00:00
cmd Remove unused None from dict.get() 2017-07-05 12:49:10 +00:00
common Fix api_image_import tasks stuck in 'pending' 2017-08-24 01:52:07 +00:00
db Fix 500 error from image-stage call 2017-08-18 10:59:01 -04:00
domain Fix 500 error from image-stage call 2017-08-18 10:59:01 -04:00
hacking Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
image_cache Handle file delete races in image cache 2017-07-10 11:37:55 -05:00
locale Imported Translations from Zanata 2017-06-24 10:32:07 +00:00
quota Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
registry Remove unused None from dict.get() 2017-07-05 12:49:10 +00:00
tests Merge "Fix Image API 'versions' response" into stable/pike 2017-08-21 19:41:54 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Use oslo.context features 2016-07-12 13:40:33 +10:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Make i18n log translation functions as no-op 2017-06-21 16:14:15 +07:00
location.py Merge "Fixed indentation" 2016-10-20 14:36:35 +00:00
notifier.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
opts.py Glare-ectomy 2017-03-01 21:46:52 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Handling scrubber's exit in non-daemon mode. 2017-01-31 20:06:47 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00