create multiple reserved_dhcp_port doesn't work as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
I create a subnet 172.30.0.0/24, gateway 172.30.0.254, disabled dhcp, 3 dhcp servers per network.
In order not to occupy addresses like: 172.30.0.1, 172.30.0.2, 172.30.0.3, I want to specify dhcp port address use `reserved_
root@mgt01:~# openstack port create --network 6a0f68ff-
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | mgt04 |
| binding_profile | |
| binding_vif_details | datapath_
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-
| data_plane_status | None |
| description | |
| device_id | reserved_dhcp_port |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | e3ed1ba5-
| mac_address | fa:16:3e:fc:0b:ac |
| name | dhcp-port-1 |
| network_id | 6a0f68ff-
| port_security_
| project_id | 0606e9bf4e9c433
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-
+------
root@mgt01:~# openstack port create --network 6a0f68ff-
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | mgt05 |
| binding_profile | |
| binding_vif_details | datapath_
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-
| data_plane_status | None |
| description | |
| device_id | reserved_dhcp_port |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | e5684fc8-
| mac_address | fa:16:3e:b6:52:63 |
| name | dhcp-port-2 |
| network_id | 6a0f68ff-
| port_security_
| project_id | 0606e9bf4e9c433
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-
+------
root@mgt01:~# openstack port create --network 6a0f68ff-
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | mgt06 |
| binding_profile | |
| binding_vif_details | datapath_
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-
| data_plane_status | None |
| description | |
| device_id | reserved_dhcp_port |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | c09af236-
| mac_address | fa:16:3e:a1:c3:2e |
| name | dhcp-port-3 |
| network_id | 6a0f68ff-
| port_security_
| project_id | 0606e9bf4e9c433
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-
+------
root@mgt01:~# openstack port list --network 6a0f68ff-
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| c09af236-
| e3ed1ba5-
| e5684fc8-
+------
root@mgt01:~# openstack subnet set e80b4163-
root@mgt01:~# openstack port list --network 6a0f68ff-
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| c09af236-
| e3ed1ba5-
| e5684fc8-
+------
a reserved_dhcp_port became active after enable dhcp, but the other two were still DOWN.
Is it a normal action or undefined one? Can we improve it? Thanks in advance.
here is a wiki about set dhcp port: https:/ /wiki.openstack .org/wiki/ Neutron/ enable- to-set- dhcp-port- attributes