summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Laski <andrew.laski@rackspace.com>2013-03-15 18:43:48 -0400
committerAndrew Laski <andrew.laski@rackspace.com>2013-03-15 18:46:02 -0400
commitdba2f0296aca9f37c14565908e715b34aadf182f (patch)
tree21a6558962ad08fc9ec9763ca96b401641a265d4
parent0ca55dcccdd76181a3b9311945e0b99ae6381e53 (diff)
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
-rw-r--r--nova/compute/utils.py1
1 files changed, 1 insertions, 0 deletions
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