yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #82467
[Bug 1876021] [NEW] create multiple reserved_dhcp_port doesn't work as expected
Public bug reported:
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_dhcp_port`
feature:
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt04 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.251 --disable-port-security dhcp-port-1
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt04 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:46:33Z |
| 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='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 |
| mac_address | fa:16:3e:fc:0b:ac |
| name | dhcp-port-1 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:46:33Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt05 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.252 --disable-port-security dhcp-port-2
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt05 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:46:52Z |
| 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='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | e5684fc8-5a97-491a-aeda-f9ba18c7cabb |
| mac_address | fa:16:3e:b6:52:63 |
| name | dhcp-port-2 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:46:52Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt06 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.253 --disable-port-security dhcp-port-3
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt06 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:47:14Z |
| 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='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | c09af236-2a5e-4da5-92b5-d4d6e193c7a4 |
| mac_address | fa:16:3e:a1:c3:2e |
| name | dhcp-port-3 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:47:14Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port list --network 6a0f68ff-1382-4959-aa22-c52da91177f2
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| c09af236-2a5e-4da5-92b5-d4d6e193c7a4 | dhcp-port-3 | fa:16:3e:a1:c3:2e | ip_address='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 | dhcp-port-1 | fa:16:3e:fc:0b:ac | ip_address='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e5684fc8-5a97-491a-aeda-f9ba18c7cabb | dhcp-port-2 | fa:16:3e:b6:52:63 | ip_address='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
root@mgt01:~# openstack subnet set e80b4163-2308-4b3d-afe3-45992e1b652c --dhcp
root@mgt01:~# openstack port list --network 6a0f68ff-1382-4959-aa22-c52da91177f2
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| c09af236-2a5e-4da5-92b5-d4d6e193c7a4 | dhcp-port-3 | fa:16:3e:a1:c3:2e | ip_address='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | ACTIVE |
| e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 | dhcp-port-1 | fa:16:3e:fc:0b:ac | ip_address='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e5684fc8-5a97-491a-aeda-f9ba18c7cabb | dhcp-port-2 | fa:16:3e:b6:52:63 | ip_address='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
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.
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1876021
Title:
create multiple reserved_dhcp_port doesn't work as expected
Status in neutron:
New
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_dhcp_port` feature:
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt04 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.251 --disable-port-security dhcp-port-1
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt04 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:46:33Z |
| 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='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 |
| mac_address | fa:16:3e:fc:0b:ac |
| name | dhcp-port-1 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:46:33Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt05 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.252 --disable-port-security dhcp-port-2
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt05 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:46:52Z |
| 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='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | e5684fc8-5a97-491a-aeda-f9ba18c7cabb |
| mac_address | fa:16:3e:b6:52:63 |
| name | dhcp-port-2 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:46:52Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port create --network 6a0f68ff-1382-4959-aa22-c52da91177f2 --device reserved_dhcp_port --host mgt06 --fixed-ip subnet=e80b4163-2308-4b3d-afe3-45992e1b652c,ip-address=172.30.0.253 --disable-port-security dhcp-port-3
+-----------------------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | mgt06 |
| binding_profile | |
| binding_vif_details | datapath_type='system', ovs_hybrid_plug='True', port_filter='True' |
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2020-04-30T02:47:14Z |
| 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='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' |
| id | c09af236-2a5e-4da5-92b5-d4d6e193c7a4 |
| mac_address | fa:16:3e:a1:c3:2e |
| name | dhcp-port-3 |
| network_id | 6a0f68ff-1382-4959-aa22-c52da91177f2 |
| port_security_enabled | False |
| project_id | 0606e9bf4e9c4334b6cb9a5012c60fb8 |
| qos_policy_id | None |
| revision_number | 1 |
| security_group_ids | |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2020-04-30T02:47:14Z |
+-----------------------+-----------------------------------------------------------------------------+
root@mgt01:~# openstack port list --network 6a0f68ff-1382-4959-aa22-c52da91177f2
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| c09af236-2a5e-4da5-92b5-d4d6e193c7a4 | dhcp-port-3 | fa:16:3e:a1:c3:2e | ip_address='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 | dhcp-port-1 | fa:16:3e:fc:0b:ac | ip_address='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e5684fc8-5a97-491a-aeda-f9ba18c7cabb | dhcp-port-2 | fa:16:3e:b6:52:63 | ip_address='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
root@mgt01:~# openstack subnet set e80b4163-2308-4b3d-afe3-45992e1b652c --dhcp
root@mgt01:~# openstack port list --network 6a0f68ff-1382-4959-aa22-c52da91177f2
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
| c09af236-2a5e-4da5-92b5-d4d6e193c7a4 | dhcp-port-3 | fa:16:3e:a1:c3:2e | ip_address='172.30.0.253', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | ACTIVE |
| e3ed1ba5-7cd8-4464-9bad-c71aadb85ff9 | dhcp-port-1 | fa:16:3e:fc:0b:ac | ip_address='172.30.0.251', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
| e5684fc8-5a97-491a-aeda-f9ba18c7cabb | dhcp-port-2 | fa:16:3e:b6:52:63 | ip_address='172.30.0.252', subnet_id='e80b4163-2308-4b3d-afe3-45992e1b652c' | DOWN |
+--------------------------------------+-------------+-------------------+-----------------------------------------------------------------------------+--------+
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1876021/+subscriptions