quantum driver in nova does not translate empty remote IP

Bug #1180828 reported by Andrea Frittoli
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
melanie witt

Bug Description

The quantum driver in nova does not translate empty remote IP in security group rules into a CIDR valid for nova.

Quantum allows for an empty remote_ip_prefix to be specified in ingress rules. An empty value means "any host".

Nova instead expects the remote_ip_prefix to be non-empty:
- create an ingress SG rule with empty remote IP via quantum
- display the rule via nova API works fine
- deleting the rule via nova API fails

The quantum driver in nova shall translate the empty remote IP in the security group rule into 0.0.0.0/0.

melanie witt (melwitt)
Changed in nova:
assignee: nobody → Melanie Witt (melwitt)
status: New → Confirmed
Revision history for this message
melanie witt (melwitt) wrote :

Do you mean that deleting the rule via nova CLI fails?

Because I'm able to successfully delete a rule created via quantum by calling nova REST API:

DELETE v2/{tenant_id}/os-security-group-rules/{security_group_rule_id}

The nova CLI command however requires an argument for the CIDR and trying "" or 0 fail for me and I'm unable to delete the rule.

usage: nova secgroup-delete-rule <secgroup> <ip-proto> <from-port> <to-port> <cidr>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/30154

Changed in nova:
status: Confirmed → In Progress
Mark McLoughlin (markmc)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/30154
Committed: http://github.com/openstack/nova/commit/db95ffa55cbb668e6854e25b215a7e2048e20349
Submitter: Jenkins
Branch: master

commit db95ffa55cbb668e6854e25b215a7e2048e20349
Author: Melanie Witt <email address hidden>
Date: Wed May 22 18:23:45 2013 +0000

    translates empty remote_ip_prefix to valid cidr for nova

    Quantum allows empty remote_ip_prefix to mean "any host"
    but Nova uses a CIDR as part of each rule.

    Fixes bug 1180828

    Change-Id: I4983515ccd0cc621491d63e59d6ab6ac4dd74b6a

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.