← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1075859] Re: use_single_default_gateway does not function correctly

 

** No longer affects: nova/essex

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1075859

Title:
  use_single_default_gateway does not function correctly

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) folsom series:
  Fix Released
Status in “nova” package in Ubuntu:
  Fix Released
Status in “nova” source package in Precise:
  Fix Released
Status in “nova” source package in Quantal:
  Fix Released

Bug description:
  I'm using version ESSEX.
  flatDHCP mode , MultiNIC  (tree NICs per VM) environment. 
  If set to use_single_default_gateway = true,
  When you start to four VM, nova-br10 [1-3]. Opts file might look like the following.
  There is no problem in the first unit VM 1, Gateway of the second and subsequent VM is not set.

  [nova-br100.opts]
  NW-183, 3
  NW-186, 3
  NW-189, 3

  [nova-br101.opts]
  NW-157, 3
  NW-184, 3
  NW-187, 3
  NW-190, 3

  [nova-br102.opts]
  NW-158, 3
  NW-185, 3
  NW-188, 3
  NW-191, 3

  nova / network / linux_net.py

       609 def get_dhcp_opts (context, network_ref):
       · · ·
       629 for datum in data:
       630 if instance_id in default_gw_vif:
       631 # we don't want default gateway for this fixed ip
       632 if default_gw_vif [instance_id] = datum ['vif_id']:
       633 hosts.append (_host_dhcp_opts (datum))

  But what I think should be in the following manner.

       609 def get_dhcp_opts (context, network_ref):
       · · ·
       629 for datum in data:
  *ADD*      instance_id = datum ['instance_id']
       630 if instance_id in default_gw_vif:
       631 # we don't want default gateway for this fixed ip
       632 if default_gw_vif [instance_id] = datum ['vif_id']:
       633 hosts.append (_host_dhcp_opts (datum))

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1075859/+subscriptions