QuantumManager does not correctly handle multiple nova-network nodes

Bug #983024 reported by Mandar Vaze
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Mandar Vaze

Bug Description

Scenario :
========

Two hosts running nova-network process for two networks
HostA for networkA (say 10.0.8.0/24)
HostB for networkB (say 10.0.9.0/24)

Both these networks are associated with a tenant (say Demo)

Expected Result :
==============

When we launch an new VM instance, dnsmasq setup related requests from allocate_for_instance() request should go to each HostA and HostB (for networkA and networkB respectively)

Actual Result :
============
dnsmasq setup related request randomly goes to HostA or HostB

Additional Background :
===================

During init_host() - QuantumManager incorrectly associates self.host for all the networks, so any host associations done via "nova-manage network modify --host" are lost if one of the nova-network restarts. (In this case, both nova-networks are now "owned" by nova-network process that restarted)

So now, QuantumManager can not update dnsmasq settings correctly.

Mandar Vaze (mandarvaze)
Changed in nova:
assignee: nobody → Mandar Vaze (mandarvaze)
Mandar Vaze (mandarvaze)
description: updated
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/6829

Changed in nova:
status: New → In Progress
Revision history for this message
dan wendlandt (danwent) wrote :

You're welcome to work on this, but a word of caution that QuantumManager code will likely be removed in Folsom, as we're shifting to a model where Quantum runs without nova-network at all. This is why we haven't been focusing energy on fixing issues like this.

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

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

commit d901b44fea897a038ce9a8afa32751ab79ffa210
Author: Mandar Vaze <email address hidden>
Date: Thu Apr 26 04:24:26 2012 -0700

    Fixes bug 983024

    enable_dhcp, kill_dhcp and update_dhcp calls are sent to remote
    nova-network, when a network is not associated with current host.

    Change-Id: If7c7c6e58700cc171a8f56669e6455037df7f7e7

Changed in nova:
status: In Progress → Fix Committed
Mandar Vaze (mandarvaze)
tags: added: essex-backport
Devin Carlen (devcamcar)
Changed in nova:
importance: Undecided → Medium
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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