IPs from dhcp disabled subnets are added to host file when multiple subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Itsuro Oda |
Bug Description
If a network has many subnets, and some have dhcp enabled and some don't, then ips from all subnets are added to the dnsmasq host file.
Step:
$ neutron net-create net44
$ neutron subnet-create net44 10.0.10.0/24 --name sub1 --enable_dhcp true
$ neutron subnet-create net44 10.0.20.0/24 --name sub2 --enable_dhcp false
$ neutron subnet-list --fields id --fields name
+------
| id | name |
+------
| 4e32d76e-
| c5f0d5a4-
| e2de152d-
+------
$ neutron port-create net44 \
--fixed-ip subnet_
--fixed-ip subnet_
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "4e32d76e-
| | {"subnet_id": "c5f0d5a4-
| id | 86b2b51b-
| mac_address | fa:16:3e:c7:15:82 |
| name | |
| network_id | fab1f41e-
| security_groups | b572b0b9-
| status | DOWN |
| tenant_id | 15a0f58023434a7
+------
vagrant@devstack:~$ cat /opt/stack/
fa:16:3e:
fa:16:3e:
Changed in neutron: | |
assignee: | nobody → Darragh O'Reilly (darragh-oreilly) |
status: | New → In Progress |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Medium |
status: | In Progress → New |
Changed in neutron: | |
status: | New → Confirmed |
assignee: | Darragh O'Reilly (darragh-oreilly) → nobody |
Changed in neutron: | |
assignee: | nobody → Itsuro Oda (oda-g) |
Changed in neutron: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-2 → 2015.1.0 |
Change abandoned by Darragh O'Reilly (<email address hidden>) on branch: master /review. openstack. org/90045
Review: https:/