From dba2f0296aca9f37c14565908e715b34aadf182f Mon Sep 17 00:00:00 2001 From: Andrew Laski Date: Fri, 15 Mar 2013 18:43:48 -0400 Subject: Store project_id for instance actions When packing values to store for an instance action, include the project id from the request context. This allows tracking which tenant has performed an action. Bug 1155801 Change-Id: I07b986655581fd6fbfdced90eb3151019f18ada7 --- nova/compute/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova') diff --git a/nova/compute/utils.py b/nova/compute/utils.py index bd4cd869e..77f7b6931 100644 --- a/nova/compute/utils.py +++ b/nova/compute/utils.py @@ -71,6 +71,7 @@ def pack_action_start(context, instance_uuid, action_name): 'instance_uuid': instance_uuid, 'request_id': context.request_id, 'user_id': context.user_id, + 'project_id': context.project_id, 'start_time': context.timestamp} return values -- cgit