From: Steven Hardy Date: Tue, 2 Jul 2013 13:17:30 +0000 (+0100) Subject: engine : perform periodic tasks with stored stack_context X-Git-Tag: 2014.1~396^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=206fb652b87478f06de3028f312aa0410bd1ce7e;p=openstack-build%2Fheat-build.git engine : perform periodic tasks with stored stack_context The metadata update needs to be performed with the stored stack_context, not the admin_context, which contains no credentials to e.g authenticate with nova Fixes bug #1196618 Change-Id: I0451604535a731de5ad57d2d52cdf183e58cf7b0 --- diff --git a/heat/engine/service.py b/heat/engine/service.py index b8524e4d..5abb939f 100644 --- a/heat/engine/service.py +++ b/heat/engine/service.py @@ -566,7 +566,7 @@ class EngineService(service.Service): for action in actions: action() - stk = parser.Stack.load(admin_context, stack=stack) + stk = parser.Stack.load(stack_context, stack=stack) for res in stk: res.metadata_update()