← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1163985] Re: When using Quantum, Nova injects static config for dynamic networks

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
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/1163985

Title:
  When using Quantum, Nova injects static config for dynamic networks

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When I set flat_injected to true to enable network config injection in
  Nova, I get static configurations injected even for subnets that are
  using DHCP.  Nova-network does not do this, and I don't believe
  Quantum should either.

  For example, when booting a VM using the following network:
  +------------------+--------------------------------------------+
  | Field            | Value                                      |
  +------------------+--------------------------------------------+
  | allocation_pools | {"start": "10.1.1.2", "end": "10.1.1.254"} |
  | cidr             | 10.1.1.0/24                                |
  | dns_nameservers  |                                            |
  | enable_dhcp      | True                                       |
  | gateway_ip       | 10.1.1.1                                   |
  | host_routes      |                                            |
  | id               | 8e785b95-af88-4444-b067-3bbc0385f791       |
  | ip_version       | 4                                          |
  | name             |                                            |
  | network_id       | c0cbf362-a2f8-4792-97e1-a9abd464c100       |
  | tenant_id        | 51212554931246fd85a96351eae2d112           |
  +------------------+--------------------------------------------+

  I get this configuration injected through config-drive:
  auto eth1
  iface eth1 inet static
     address 10.1.1.2
     netmask 255.255.255.0
     broadcast 10.1.1.255
     gateway 10.1.1.1

  I have a proposed fix for this, which I will submit for review
  shortly.

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