ec2 describe instances does not filter by project_id
Bug #1074343 reported by
Jose Castro Leon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If you have retrieved via keystone or horizon your ec2 credentials, and try to get the instances you receive a list of all the instances on the controller.
Reproducible: always
1. Download your ec2 credentials
2. euca-describe-
Actual Result:
List of all available instances
Expected Result:
List of instances on your specific tenant.
Changed in nova: | |
status: | Incomplete → New |
Changed in nova: | |
status: | New → Invalid |
no longer affects: | nova/essex |
To post a comment you must log in.
If the filter includes project_id in the query, it will filter the output and retrieve only the instances on the specific tenant.
--- nova/api/ ec2/cloud. py.orig 2012-10-31 15:58:27.905773055 +0100 ec2/cloud. py 2012-10-31 16:37:58.515588746 +0100
search_ opts['deleted' ] = False opts['project_ id'] = context.project_id
instances = self.compute_ api.get_ all(context,
search_ opts=search_ opts,
sort_ dir='asc' )
+++ nova/api/
@@ -1178,6 +1178,7 @@
try:
# always filter out deleted instances
+ search_