Bug 2083632 - OpenShift Installer fail to remove Neutron ports
Summary: OpenShift Installer fail to remove Neutron ports
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.z
Assignee: rdobosz
QA Contact: Jon Uriarte
URL:
Whiteboard:
Depends On: 2078875
Blocks: 2009024 2107296
TreeView+ depends on / blocked
 
Reported: 2022-05-10 13:13 UTC by OpenShift BugZilla Robot
Modified: 2022-07-14 18:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-13 14:38:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5882 0 None open [release-4.10] Bug 2083632: Delete all the ports from tagged Neutron networks. 2022-05-20 01:01:27 UTC
Red Hat Product Errata RHBA-2022:4944 0 None None None 2022-06-13 14:39:07 UTC

Comment 1 ShiftStack Bugwatcher 2022-05-11 07:04:50 UTC
Removing the Triaged keyword because:
* the QE automation assessment (flag qe_test_coverage) is missing

Comment 2 ShiftStack Bugwatcher 2022-05-12 07:04:42 UTC
Removing the Triaged keyword because:
* the QE automation assessment (flag qe_test_coverage) is missing

Comment 6 Jon Uriarte 2022-06-10 09:21:14 UTC
Verified in 4.10.18 on top of OSP 16.2.2

Verification steps:

1. Create a new project and deployment

$ oc new-project demo
$ oc create deployment  --image quay.io/kuryr/demo demo

$ openstack network list |  grep demo
| 68808f0b-1c29-473b-9363-5841ca30d213 | ns/demo-net                 | b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad |
$ openstack subnet list |  grep demo
| b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad | ns/demo-subnet              | 68808f0b-1c29-473b-9363-5841ca30d213 | 10.128.80.0/23 |


$ openstack port list | grep b563c3ce
| 5d5f08a5-0b9f-4199-8c12-cc6b8e50cf35 |      | fa:16:3e:52:19:b0 | ip_address='10.128.80.223', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'  | ACTIVE |
| a3d45cc5-8b62-42cb-b9dc-40b52ce80cf6 |      | fa:16:3e:69:aa:11 | ip_address='10.128.80.54', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'   | ACTIVE |
| a938a75c-6b8d-4ee5-a4f9-80980ab599eb |      | fa:16:3e:d9:70:3e | ip_address='10.128.80.1', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'    | ACTIVE |
| b8a9aff5-72a5-4483-996f-01b354d0128a |      | fa:16:3e:d5:fb:64 | ip_address='10.128.80.165', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'  | ACTIVE |

2. Create new ports in the same demo network

$ openstack port create --network ns/demo-net port1                                                                                                                                                       
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+                                          
| 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              | 2022-06-10T09:04:53Z                                                                                                                                                  |                                          
| data_plane_status       | None                                                                                                                                                                  |                                          
| description             |                                                                                                                                                                       |                                          
| device_id               |                                                                                                                                                                       |                                          
| device_owner            |                                                                                                                                                                       |                                          
| dns_assignment          | fqdn='host-10-128-80-169.shiftstack.com.', hostname='host-10-128-80-169', ip_address='10.128.80.169'                                                                  |                                          
| dns_domain              |                                                                                                                                                                       |                                          
| dns_name                |                                                                                                                                                                       |                                          
| extra_dhcp_opts         |                                                                                                                                                                       |                                          
| fixed_ips               | ip_address='10.128.80.169', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'                                                                                          |                                          
| id                      | f893c658-ad1f-4991-8d6c-214a20905567                                                                                                                                  |                                          
| location                | cloud='', project.domain_id=, project.domain_name='Default', project.id='d608c6251abd4ea18b8e934089a5c504', project.name='shiftstack', region_name='regionOne', zone= |                                          
| mac_address             | fa:16:3e:2b:8e:58                                                                                                                                                     |                                          
| name                    | port1                                                                                                                                                                 |                                          
| network_id              | 68808f0b-1c29-473b-9363-5841ca30d213                                                                                                                                  |                                          
| port_security_enabled   | True                                                                                                                                                                  |                                          
| project_id              | d608c6251abd4ea18b8e934089a5c504                                                                                                                                      |                                          
| propagate_uplink_status | None                                                                                                                                                                  |                                          
| qos_policy_id           | None                                                                                                                                                                  |                                          
| resource_request        | None                                                                                                                                                                  |                                          
| revision_number         | 1                                                                                                                                                                     |                                          
| security_group_ids      | 2f09cd37-0115-433f-a51a-413e748a12fd                                                                                                                                  |                                          
| status                  | DOWN                                                                                                                                                                  |                                          
| tags                    |                                                                                                                                                                       |
| trunk_details           | None                                                                                                                                                                  |
| updated_at              | 2022-06-10T09:04:53Z                                                                                                                                                  |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

$ openstack port create --network ns/demo-net port2
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 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              | 2022-06-10T09:08:20Z                                                                                                                                                  |
| data_plane_status       | None                                                                                                                                                                  |
| description             |                                                                                                                                                                       |
| device_id               |                                                                                                                                                                       |
| device_owner            |                                                                                                                                                                       |
| dns_assignment          | fqdn='host-10-128-81-33.shiftstack.com.', hostname='host-10-128-81-33', ip_address='10.128.81.33'                                                                     |
| dns_domain              |                                                                                                                                                                       |
| dns_name                |                                                                                                                                                                       |
| extra_dhcp_opts         |                                                                                                                                                                       |
| fixed_ips               | ip_address='10.128.81.33', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'                                                                                           |
| id                      | e5cce8b7-537d-4564-a7bc-f04e9cfca9f7                                                                                                                                  |
| location                | cloud='', project.domain_id=, project.domain_name='Default', project.id='d608c6251abd4ea18b8e934089a5c504', project.name='shiftstack', region_name='regionOne', zone= |
| mac_address             | fa:16:3e:7a:90:c6                                                                                                                                                     |
| name                    | port2                                                                                                                                                                 |
| network_id              | 68808f0b-1c29-473b-9363-5841ca30d213                                                                                                                                  |
| port_security_enabled   | True                                                                                                                                                                  |
| project_id              | d608c6251abd4ea18b8e934089a5c504                                                                                                                                      |
| propagate_uplink_status | None                                                                                                                                                                  |
| qos_policy_id           | None                                                                                                                                                                  |
| resource_request        | None                                                                                                                                                                  |
| revision_number         | 1                                                                                                                                                                     |
| security_group_ids      | 2f09cd37-0115-433f-a51a-413e748a12fd                                                                                                                                  |
| status                  | DOWN                                                                                                                                                                  |
| tags                    |                                                                                                                                                                       |
| trunk_details           | None                                                                                                                                                                  |
| updated_at              | 2022-06-10T09:08:20Z                                                                                                                                                  |
+-------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

$ openstack port list | grep b563c3ce
| 5d5f08a5-0b9f-4199-8c12-cc6b8e50cf35 |       | fa:16:3e:52:19:b0 | ip_address='10.128.80.223', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'  | ACTIVE |
| a3d45cc5-8b62-42cb-b9dc-40b52ce80cf6 |       | fa:16:3e:69:aa:11 | ip_address='10.128.80.54', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'   | ACTIVE |
| a938a75c-6b8d-4ee5-a4f9-80980ab599eb |       | fa:16:3e:d9:70:3e | ip_address='10.128.80.1', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'    | ACTIVE |
| b8a9aff5-72a5-4483-996f-01b354d0128a |       | fa:16:3e:d5:fb:64 | ip_address='10.128.80.165', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'  | ACTIVE |
| e5cce8b7-537d-4564-a7bc-f04e9cfca9f7 | port2 | fa:16:3e:7a:90:c6 | ip_address='10.128.81.33', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'   | DOWN   |
| f893c658-ad1f-4991-8d6c-214a20905567 | port1 | fa:16:3e:2b:8e:58 | ip_address='10.128.80.169', subnet_id='b563c3ce-c0f6-4ee5-bb79-9229c1a3b5ad'  | DOWN   |

3. Destroy the cluster

$ openshift-install destroy cluster --dir=ostest
[...]
INFO Time elapsed: 3m24s

4. Check the resources are removed, including port1 and port2

$ openstack port list | grep b563c3ce
$

$ openstack network list |  grep demo
$

$ openstack subnet list |  grep demo
$

Comment 8 errata-xmlrpc 2022-06-13 14:38:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.10.18 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4944


Note You need to log in before you can comment on or make changes to this bug.