Merge lp:~rackspace-titan/nova/read-deleted-lp824008-rbp into lp:~hudson-openstack/nova/milestone-proposed

Proposed by Brian Waldon
Status: Rejected
Rejected by: Vish Ishaya
Proposed branch: lp:~rackspace-titan/nova/read-deleted-lp824008-rbp
Merge into: lp:~hudson-openstack/nova/milestone-proposed
Diff against target: 28 lines (+2/-3)
2 files modified
nova/api/ec2/cloud.py (+1/-0)
nova/tests/test_cloud.py (+1/-3)
To merge this branch: bzr merge lp:~rackspace-titan/nova/read-deleted-lp824008-rbp
Reviewer Review Type Date Requested Status
Vish Ishaya (community) Disapprove
Review via email: mp+74805@code.launchpad.net

Description of the change

Backporting fix for but lp824008 - euca-describe-instance showing deleted entities

To post a comment you must log in.
Revision history for this message
Vish Ishaya (vishvananda) wrote :

If the branch is from before the code split, you can just propose the existing branch instead of making a new one.

like here:

https://code.launchpad.net/~rackspace-titan/nova/read-deleted-lp824008/+merge/74828

review: Disapprove

Unmerged revisions

1155. By Brian Waldon

porting fix for euca-describe-instances bug to rbp

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/api/ec2/cloud.py'
2--- nova/api/ec2/cloud.py 2011-09-02 18:00:33 +0000
3+++ nova/api/ec2/cloud.py 2011-09-09 14:49:22 +0000
4@@ -1200,6 +1200,7 @@
5 instances.append(instance)
6 else:
7 try:
8+ search_opts['deleted'] = False
9 instances = self.compute_api.get_all(context,
10 search_opts=search_opts)
11 except exception.NotFound:
12
13=== modified file 'nova/tests/test_cloud.py'
14--- nova/tests/test_cloud.py 2011-09-01 17:54:52 +0000
15+++ nova/tests/test_cloud.py 2011-09-09 14:49:22 +0000
16@@ -486,11 +486,9 @@
17 inst2 = db.instance_create(self.context, args2)
18 db.instance_destroy(self.context, inst1.id)
19 result = self.cloud.describe_instances(self.context)
20+ self.assertEqual(len(result['reservationSet']), 1)
21 result1 = result['reservationSet'][0]['instancesSet']
22 self.assertEqual(result1[0]['instanceId'],
23- ec2utils.id_to_ec2_id(inst1.id))
24- result2 = result['reservationSet'][1]['instancesSet']
25- self.assertEqual(result2[0]['instanceId'],
26 ec2utils.id_to_ec2_id(inst2.id))
27
28 def _block_device_mapping_create(self, instance_id, mappings):

Subscribers

People subscribed via source and target branches