Host is always set to None in get_instance_nw_info(...)

Bug #1194178 reported by David Scannell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
David Scannell
Grizzly
Fix Released
High
Vish Ishaya

Bug Description

The the nova-network manager's method get_instance_nw_info(...) the host parameter get reset to None.

This causes the host to be interpreted as the host where the nova-network process is running instead of the host that is passed in (which is usually the host where the instance lives). One side affect of this change is that the address of the DHCP server for an instance can get assigned to a random host depending on which nova-network process handles the get_instance_nw_info(...) call instead of the host where the instance exists.

Changed in nova:
assignee: nobody → David Scannell (dscannell)
status: New → In Progress
tags: added: grizzly-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit b0a2a2d29f24cea15d866f352d4beae5da965605
Author: David Scannell <email address hidden>
Date: Mon Jun 10 13:04:55 2013 -0400

    Avoid redefining host to none in get_instance_nw_info(...)

    The host parameter is required and a part of the method signature.
    When it is redefined from kwargs.get('host') the supplied value
    gets redefined to None. This removes the redefinition and keeps the
    parameter value intact.

    Fixes bug #1194178

    Change-Id: I779cbce909935a4b794c16cefb0128f16f8563fb

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/36574

Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-2
status: Fix Committed → Fix Released
Revision history for this message
Sam Morrison (sorrison) wrote :

I think this is related to https://bugs.launchpad.net/nova/+bug/1092347

I tested this fix out but it still didn't fix it.

We have a hack which sets dhcp_servers = $my_ip and this works well when only have one network but won't work if you have multiple networks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/grizzly)

Reviewed: https://review.openstack.org/36574
Committed: http://github.com/openstack/nova/commit/d35e7488aaf9b74b38c07639e2031fc95e3acb55
Submitter: Jenkins
Branch: stable/grizzly

commit d35e7488aaf9b74b38c07639e2031fc95e3acb55
Author: David Scannell <email address hidden>
Date: Mon Jun 10 13:04:55 2013 -0400

    Avoid redefining host to none in get_instance_nw_info(...)

    The host parameter is required and a part of the method signature.
    When it is redefined from kwargs.get('host') the supplied value
    gets redefined to None. This removes the redefinition and keeps the
    parameter value intact.

    Fixes bug #1194178

    Change-Id: I779cbce909935a4b794c16cefb0128f16f8563fb
    (cherry picked from commit b0a2a2d29f24cea15d866f352d4beae5da965605)

Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
Sean Dague (sdague)
no longer affects: nova/folsom
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.