yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81126
[Bug 1857047] Re: openstack port set --no-fixed-ips removed only 1 fixed IP
I was checking this issue locally. In https://github.com/openstack/neutron/blob/22d2bb94f71d81116046dcf56d8e51e66b6548b6/neutron/db/ipam_backend_mixin.py#L521 it is checked if subnet can be removed from port or not. And in Your case it checkes both IPv4 and IPv6 subnets there. But for IPv6 subnet it isn't removed because this subnet is required for port always. See https://github.com/openstack/neutron/blob/22d2bb94f71d81116046dcf56d8e51e66b6548b6/neutron/db/ipam_backend_mixin.py#L443 for this check. It is required because is_auto_address_subnet() function returns True: https://github.com/openstack/neutron/blob/f5975eca2ee20602a1615e8d34d722dcac9c8347/neutron/common/ipv6_utils.py#L27 and that happens because it's SLAAC or DHCPV6_STATELESS subnet.
In case of such subnet IPv6 port has to be allocated for port because router will always offer IP for it, no matter if it will be configured or not in neutron db.
So I'm marking this bug as Won't fix.
** Changed in: neutron
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1857047
Title:
openstack port set --no-fixed-ips removed only 1 fixed IP
Status in neutron:
Won't Fix
Bug description:
In the devstack environment (master branch), stack.sh created the
private network. It has two subnets it (an IPv4 and an IPv6).
A port is created using the "private" network.
Then the port is updated using the "openstack port set --no-fixed-ip"
command. The IPv4 IP address is removed but not the IPv6 address.
stack@dvstku1804:/etc/neutron$ openstack port show test-private-port
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | None |
| binding_profile | None |
| binding_vif_details | None |
| binding_vif_type | None |
| binding_vnic_type | normal |
| created_at | 2019-12-19T19:11:39Z |
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='10.0.0.62', subnet_id='9283e75b-f414-4a55-af38-bb884330c322' |
| | ip_address='fd2f:1450:5e39:0:f816:3eff:fe0c:5d1e', subnet_id='79c9c3f8-b93b-487e-a287-7f583b7ee992' |
| id | 7d366c7b-8557-4ce4-ae9b-336aa00403b3 |
| location | cloud='', project.domain_id='default', project.domain_name=, project.id='e38b18b8ad344dcd96cf563aaeb81193', project.name='demo', region_name='RegionOne', zone= |
| mac_address | fa:16:3e:0c:5d:1e |
| name | test-private-port |
| network_id | 6e02e7ad-b530-43c4-bbe8-da5751ab0f8f |
| port_security_enabled | True |
| project_id | e38b18b8ad344dcd96cf563aaeb81193 |
| propagate_uplink_status | None |
| qos_policy_id | None |
| resource_request | None |
| revision_number | 1 |
| security_group_ids | 900feb50-83d3-408c-9fa1-1e38ddbe9bb7 |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2019-12-19T19:11:40Z |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
stack@dvstku1804:/etc/neutron$ openstack port show test-private-port
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | None |
| binding_profile | None |
| binding_vif_details | None |
| binding_vif_type | None |
| binding_vnic_type | normal |
| created_at | 2019-12-19T19:11:39Z |
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='10.0.0.62', subnet_id='9283e75b-f414-4a55-af38-bb884330c322' |
| | ip_address='fd2f:1450:5e39:0:f816:3eff:fe0c:5d1e', subnet_id='79c9c3f8-b93b-487e-a287-7f583b7ee992' |
| id | 7d366c7b-8557-4ce4-ae9b-336aa00403b3 |
| location | cloud='', project.domain_id='default', project.domain_name=, project.id='e38b18b8ad344dcd96cf563aaeb81193', project.name='demo', region_name='RegionOne', zone= |
| mac_address | fa:16:3e:0c:5d:1e |
| name | test-private-port |
| network_id | 6e02e7ad-b530-43c4-bbe8-da5751ab0f8f |
| port_security_enabled | True |
| project_id | e38b18b8ad344dcd96cf563aaeb81193 |
| propagate_uplink_status | None |
| qos_policy_id | None |
| resource_request | None |
| revision_number | 1 |
| security_group_ids | 900feb50-83d3-408c-9fa1-1e38ddbe9bb7 |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2019-12-19T19:11:40Z |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
stack@dvstku1804:/etc/neutron$
stack@dvstku1804:/etc/neutron$ openstack port set --no-fixed-ip test-private-port
stack@dvstku1804:/etc/neutron$ openstack port show test-private-port
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | UP |
| allowed_address_pairs | |
| binding_host_id | None |
| binding_profile | None |
| binding_vif_details | None |
| binding_vif_type | None |
| binding_vnic_type | normal |
| created_at | 2019-12-19T19:11:39Z |
| data_plane_status | None |
| description | |
| device_id | |
| device_owner | |
| dns_assignment | None |
| dns_domain | None |
| dns_name | None |
| extra_dhcp_opts | |
| fixed_ips | ip_address='fd2f:1450:5e39:0:f816:3eff:fe0c:5d1e', subnet_id='79c9c3f8-b93b-487e-a287-7f583b7ee992' |
| id | 7d366c7b-8557-4ce4-ae9b-336aa00403b3 |
| location | cloud='', project.domain_id='default', project.domain_name=, project.id='e38b18b8ad344dcd96cf563aaeb81193', project.name='demo', region_name='RegionOne', zone= |
| mac_address | fa:16:3e:0c:5d:1e |
| name | test-private-port |
| network_id | 6e02e7ad-b530-43c4-bbe8-da5751ab0f8f |
| port_security_enabled | True |
| project_id | e38b18b8ad344dcd96cf563aaeb81193 |
| propagate_uplink_status | None |
| qos_policy_id | None |
| resource_request | None |
| revision_number | 2 |
| security_group_ids | 900feb50-83d3-408c-9fa1-1e38ddbe9bb7 |
| status | DOWN |
| tags | |
| trunk_details | None |
| updated_at | 2019-12-19T19:14:00Z |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1857047/+subscriptions
References