When using Quantum, Nova injects static config for dynamic networks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ben Nemec |
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-
| ip_version | 4 |
| name | |
| network_id | c0cbf362-
| tenant_id | 51212554931246f
+------
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.
Changed in nova: | |
assignee: | nobody → Ben Nemec (bnemec) |
Changed in nova: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/26012
Review: https:/