Merge lp://qastaging/~anso/nova/ec2-security-groups into lp://qastaging/~soren/nova/ec2-security-groups

Proposed by Vish Ishaya
Status: Superseded
Proposed branch: lp://qastaging/~anso/nova/ec2-security-groups
Merge into: lp://qastaging/~soren/nova/ec2-security-groups
Prerequisite: lp://qastaging/~hudson-openstack/nova/trunk
Diff against target: 302 lines (+63/-52)
5 files modified
nova/api/ec2/cloud.py (+12/-14)
nova/db/api.py (+1/-1)
nova/db/sqlalchemy/api.py (+31/-23)
nova/db/sqlalchemy/models.py (+18/-13)
nova/tests/virt_unittest.py (+1/-1)
To merge this branch: bzr merge lp://qastaging/~anso/nova/ec2-security-groups
Reviewer Review Type Date Requested Status
Devin Carlen (community) Needs Information
Review via email: mp+36974@code.qastaging.launchpad.net

This proposal has been superseded by a proposal from 2010-09-29.

Description of the change

Fixes deleted objects showing in relations and a few issues with too many rules getting revoked.

To post a comment you must log in.
Revision history for this message
Devin Carlen (devcamcar) wrote :

Looks good except the syntax of the primaryjoins and secondaryjoins is strange. What's with the double quotes? It looks unnecessary based on the sqlalchemy docs, which gives this example of using primary join:

primaryjoin=and_(users_table.c.user_id==addresses_table.c.user_id,
                addresses_table.c.city=='Boston'))

Examples from patch:

219 + secondaryjoin="and_(SecurityGroup.id == SecurityGroupInstanceAssociation.security_group_id,"
220 + "Instance.id == SecurityGroupInstanceAssociation.instance_id,"
221 + "SecurityGroup.deleted == False,"
222 + "Instance.deleted == False)",

and

231 + primaryjoin="and_(SecurityGroupIngressRule.parent_group_id == SecurityGroup.id,"
232 + "SecurityGroupIngressRule.deleted == False)")

review: Needs Information
Revision history for this message
Vish Ishaya (vishvananda) wrote :

the primary and secondary were wrong, the quotes is fine though. If you surround it in quotes, you can refer to tables that haven't been defined yet or are in the process of being defined. Reproposing.

318. By Vish Ishaya

fix ordering of rules to actually allow out and drop in

319. By Vish Ishaya

show project ids for groups instead of user ids

320. By Todd Willey

Merge to latest.

Unmerged revisions

320. By Todd Willey

Merge to latest.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches