vm with multiples user-defined fixed-ips not supported by quantumv2 driver

Bug #1154093 reported by Cedric Brandily
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Russell Bryant

Bug Description

QuantumV2 driver does not support correctly the instantiation of a virtual machine having multiples interfaces with user-defined fixed-ips.
It could be highlighted by doing something like:
 nova boot .... vm --nic net-id=$uuid1,v4-fixed-ip=$ip_onuuid1_subnet --nic net-id=$uuid2,v4-fixed-ip=$ip_on_uuid2_subnet

The trouble comes from the fact that quantumV2 driver for every interface with user-defined fixed-ips uses the last fixed-ip.
So when you try to create the first vm interface, the driver use the last fixed-ip.

In attachment i provide the patch to correct the bug !

It affects folsom stable and grizzly trunk nova quantum driver

Tags: quantum
Revision history for this message
Cedric Brandily (cbrandily) wrote :
description: updated
Revision history for this message
Russell Bryant (russellb) wrote :
tags: added: grizzly-rc-potential
tags: added: quantum
Revision history for this message
Cedric Brandily (cbrandily) wrote :

Sorry, i cannot sign the contribution licence because of stupid corporation lawyer constraint

Changed in nova:
importance: Undecided → Medium
status: New → Triaged
milestone: none → grizzly-rc1
Changed in nova:
assignee: nobody → Aaron Rosen (arosen)
Thierry Carrez (ttx)
tags: removed: grizzly-rc-potential
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/24809

Changed in nova:
assignee: Aaron Rosen (arosen) → Russell Bryant (russellb)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/24809
Committed: http://github.com/openstack/nova/commit/98f9f735d7e6ac32a8736971f4aab0d81c56131e
Submitter: Jenkins
Branch: master

commit 98f9f735d7e6ac32a8736971f4aab0d81c56131e
Author: Russell Bryant <email address hidden>
Date: Tue Mar 19 14:27:48 2013 -0400

    Fix multiple fixed-ips with quantum.

    This patch fixes a bug in the quantum suppot where multiple requested
    fixed-ips did not work. Every network interface would be given the last
    fixed IP that was specified. The problem was just the lack of putting
    the right fixed ip in a local variable.

    Fix bug 1154093.

    Change-Id: Ie7e034e19a38c8431540c81b023ff4800aa6ec50

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

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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