the ip of port which device type is dhcp is null
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
the ip of port which device type is network:dhcp is null
There are two DHCP agents in openstack system.
1.create a network which name is xxxtest;
2.create a subnet 'subnet1' in xxxtest .The CIDR of this subnet is 192.168.10.0/24 and the ip range is default.Beaause there are two dhcp agents, so two ports are created which device owner is network:dhcp.Each of port has a IP address.
the horizon like this:
name fix ip device owner status
xxx 192.168.10.2 network:dhcp running
xxx 192.168.10.3 network:dhcp running
3.create a subnet 'subnet2' in xxxtest. The CIDR of this subnet is 192.168.11.0/24.But set the subnet ip range 192.168.
[root@node243 ~]# openstack subnet create --network xxxtest --subnet-range 192.168.11.0/24 --allocation-pool start=192.
+------
| Field | Value |
+------
| allocation_pools | 192.168.
| cidr | 192.168.11.0/24 |
| created_at | 2018-12-
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.11.1 |
| host_routes | |
| id | 2a8ead23-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | subnet1 |
| network_id | b5d92781-
| project_id | f8cc4f84ba4c44c
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2018-12-
+------
4.list the ports info
[root@node243 ~]# openstack port list --network xxxtest
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 176b3f71-
| | | | ip_address=
| e092f58a-
+------
5.delete the first subnet and list the port in xxxtest network
[root@node243 ~]# openstack subnet delete 7b13dd1d-
[root@node243 ~]# openstack port list --network xxxtest
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 176b3f71-
| e092f58a-
+------
so,there is a port which Fixed IP Addresses is null。
Changed in neutron: | |
status: | New → Incomplete |
Hi, I am bit lost with your reproducer scenario, do these steps look OK: 168.10. 2,end=192. 168.10. 11 subnet1 168.11. 2,end=192. 168.11. 2 subnet2
openstack network create xxxtest
openstack subnet create --network xxxtest --subnet-range 192.168.10.0/24 --allocation-pool start=192.
openstack subnet create --network xxxtest --subnet-range 192.168.11.0/24 --allocation-pool start=192.
This creates a single port for DHCP with IPs in both subnets: '192.168. 10.2', subnet_ id='5b69c973- fcca-4e1a- ae84-7d154f5c08 69'\nip_ address= '192.168. 11.2', subnet_ id='2d0bd114- d0b2-46d3- 83ed-71592fbf19 89'", 573c-47ee- 8db9-83b70f2ecd 96", 3e:3b:9c: 53",
openstack port list --network xxxtest -f json
[
{
"Status": "ACTIVE",
"Fixed IP Addresses": "ip_address=
"ID": "69939e7b-
"MAC Address": "fa:16:
"Name": ""
}
]
It matches port 176b3f71- 0e54-4df1- 8928-b4e5b199ee 1c in your example (which after delete also has only one IP left as expected)
This other port listed the bug is strange, it is DOWN, with IP outside of the subnet range (192.168.168.3 so not .10.x or .11.x)
What is your Openstack version and neutron configuration?