ui overcloud deletion of overcloud created via CLI does not remove undercloud neutron ports, subnets, or networks

Bug #1754443 reported by John Fulton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
Low
Jiri Tomasek

Bug Description

If I deploy an overcloud with network isolation via the CLI and then delete that overcloud via UI, a second deployment, triggered via the UI, will fail with an error that networks are in use [1]. This happens because the network resources created on the undercloud neutron to implement network isolation, which were created by the initial CLI deployment, were not deleted by the UI overcloud deletion and can still be seen [2]. The bug is that the UI should have deleted these.

The workaround is to manually delete them (but not delete the control plane neutron resources) [3] and then use the UI to do the deployment. Note that you can see the UI create these resources when it does the deployment [4].

[1]
(undercloud) [stack@hci-director ~]$ openstack stack failures list hci-deployment
hci-deployment.Networks.StorageMgmtNetwork.StorageMgmtNetwork:
  resource_type: OS::Neutron::Net
  physical_resource_id:
  status: CREATE_FAILED
  status_reason: |
    Conflict: resources.StorageMgmtNetwork: Unable to create the flat network. Physical network storage_mgmt is in use.
    Neutron server returns request_ids: ['req-3538e776-b173-4597-ab08-84f616c4c6a9']
hci-deployment.Networks.StorageNetwork.StorageNetwork:
  resource_type: OS::Neutron::Net
  physical_resource_id:
  status: CREATE_FAILED
  status_reason: |
    Conflict: resources.StorageNetwork: Unable to create the flat network. Physical network storage is in use.
    Neutron server returns request_ids: ['req-b5c91b49-516a-43c9-9655-c98824fbd97b']
hci-deployment.Networks.ExternalNetwork.ExternalNetwork:
  resource_type: OS::Neutron::Net
  physical_resource_id:
  status: CREATE_FAILED
  status_reason: |
    Conflict: resources.ExternalNetwork: Unable to create the flat network. Physical network external is in use.
    Neutron server returns request_ids: ['req-cd944d34-2ee7-4679-9784-a8be834b4805']
(undercloud) [stack@hci-director ~]$

[2]
(undercloud) [stack@hci-director ~]$ openstack network list
+--------------------------------------+--------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+--------------+--------------------------------------+
| 4457407e-8ba9-438f-835d-98d6762709f5 | storage | 3a212a83-3891-461e-9f13-562e53ab02b4 |
| 5856c68a-8587-4b2d-bfbb-01a1de07ce77 | storage_mgmt | f163f7b6-c571-430c-b3fc-22a2e75205fa |
| 62e8e280-f7fd-4e30-a652-58c4078dd3a4 | internal_api | 6192ba02-5d6e-4988-b6cc-5dad809df602 |
| 7a18418a-3482-41a6-891b-2c3a6e595116 | ctlplane | 9b379bc5-a4e9-455d-94bd-7c6d5310acaf |
| e84932c8-8be8-4891-89f1-ab93a94ebde6 | external | 6ec0ad27-df1e-4996-94c8-e05a5924c66b |
+--------------------------------------+--------------+--------------------------------------+
(undercloud) [stack@hci-director ~]$ openstack subnet list
+--------------------------------------+---------------------+--------------------------------------+----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+---------------------+--------------------------------------+----------------+
| 3a212a83-3891-461e-9f13-562e53ab02b4 | storage_subnet | 4457407e-8ba9-438f-835d-98d6762709f5 | 172.16.1.0/24 |
| 6192ba02-5d6e-4988-b6cc-5dad809df602 | internal_api_subnet | 62e8e280-f7fd-4e30-a652-58c4078dd3a4 | 192.168.2.0/24 |
| 6ec0ad27-df1e-4996-94c8-e05a5924c66b | external_subnet | e84932c8-8be8-4891-89f1-ab93a94ebde6 | 10.19.136.0/21 |
| 9b379bc5-a4e9-455d-94bd-7c6d5310acaf | ctlplane-subnet | 7a18418a-3482-41a6-891b-2c3a6e595116 | 192.168.1.0/24 |
| f163f7b6-c571-430c-b3fc-22a2e75205fa | storage_mgmt_subnet | 5856c68a-8587-4b2d-bfbb-01a1de07ce77 | 172.16.2.0/24 |
+--------------------------------------+---------------------+--------------------------------------+----------------+
(undercloud) [stack@hci-director ~]$

(undercloud) [stack@hci-director ~]$ openstack port list
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
| 0c18a22f-bdcc-49c8-a009-eb5f14b973b1 | control_virtual_ip | fa:16:3e:54:a8:45 | ip_address='192.168.1.26', subnet_id='9b379bc5-a4e9-455d-94bd-7c6d5310acaf' | DOWN |
| 4bdb87c2-a10f-4945-b464-5c6a772938c2 | public_virtual_ip | fa:16:3e:1d:a7:f9 | ip_address='10.19.139.39', subnet_id='6ec0ad27-df1e-4996-94c8-e05a5924c66b' | DOWN |
| 6c7dab9a-64ac-4b07-9f49-ef90ce95ca60 | storage_management_virtual_ip | fa:16:3e:9c:e0:57 | ip_address='172.16.2.19', subnet_id='f163f7b6-c571-430c-b3fc-22a2e75205fa' | DOWN |
| cb9f56b3-1cca-4843-9967-12ef874c4298 | storage_virtual_ip | fa:16:3e:82:5f:11 | ip_address='172.16.1.15', subnet_id='3a212a83-3891-461e-9f13-562e53ab02b4' | DOWN |
| ea94b39f-7946-48e3-abff-fc33e2ca7c2f | | fa:16:3e:a8:c0:d2 | ip_address='192.168.1.20', subnet_id='9b379bc5-a4e9-455d-94bd-7c6d5310acaf' | ACTIVE |
| f47475fe-bce9-400a-9f97-f62559c514c4 | internal_api_virtual_ip | fa:16:3e:32:86:6e | ip_address='192.168.2.15', subnet_id='6192ba02-5d6e-4988-b6cc-5dad809df602' | DOWN |
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
(undercloud) [stack@hci-director ~]$

[3]
(undercloud) [stack@hci-director ~]$ for id in 0c18a22f-bdcc-49c8-a009-eb5f14b973b1 4bdb87c2-a10f-4945-b464-5c6a772938c2 6c7dab9a-64ac-4b07-9f49-ef90ce95ca60 cb9f56b3-1cca-4843-9967-12ef874c4298 f47475fe-bce9-40
0a-9f97-f62559c514c4 ; do openstack port delete $id; done
(undercloud) [stack@hci-director ~]$ for id in 3a212a83-3891-461e-9f13-562e53ab02b4 6192ba02-5d6e-4988-b6cc-5dad809df602 6ec0ad27-df1e-4996-94c8-e05a5924c66b f163f7b6-c571-430c-b3fc-22a2e75205fa ; do openstack s
ubnet delete $id; done
(undercloud) [stack@hci-director ~]$ for id in 4457407e-8ba9-438f-835d-98d6762709f5 5856c68a-8587-4b2d-bfbb-01a1de07ce77 62e8e280-f7fd-4e30-a652-58c4078dd3a4 e84932c8-8be8-4891-89f1-ab93a94ebde6 ; do openstack n
etwork delete $id; done
(undercloud) [stack@hci-director ~]$ openstack network list
+--------------------------------------+----------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+----------+--------------------------------------+
| 7a18418a-3482-41a6-891b-2c3a6e595116 | ctlplane | 9b379bc5-a4e9-455d-94bd-7c6d5310acaf |
+--------------------------------------+----------+--------------------------------------+
(undercloud) [stack@hci-director ~]$ openstack subnet list
+--------------------------------------+-----------------+--------------------------------------+----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+-----------------+--------------------------------------+----------------+
| 9b379bc5-a4e9-455d-94bd-7c6d5310acaf | ctlplane-subnet | 7a18418a-3482-41a6-891b-2c3a6e595116 | 192.168.1.0/24 |
+--------------------------------------+-----------------+--------------------------------------+----------------+
(undercloud) [stack@hci-director ~]$ openstack port list
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+
| ea94b39f-7946-48e3-abff-fc33e2ca7c2f | | fa:16:3e:a8:c0:d2 | ip_address='192.168.1.20', subnet_id='9b379bc5-a4e9-455d-94bd-7c6d5310acaf' | ACTIVE |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+
(undercloud) [stack@hci-director ~]$

[4]
(undercloud) [stack@hci-director ~]$ openstack port list
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
| 899c4d9f-5b10-4c60-8ac1-b187aded58af | storage_management_virtual_ip | fa:16:3e:04:1f:b9 | ip_address='172.16.2.18', subnet_id='7ee999f2-083a-4e13-8034-cdd5daaa458b' | DOWN |
| 979504f0-c448-429b-aee1-5fd8e0800c47 | storage_virtual_ip | fa:16:3e:ec:54:82 | ip_address='172.16.1.14', subnet_id='96ab02ce-18f3-4657-9e21-3007721b721a' | DOWN |
| 9c2b995c-34bd-4feb-bcf2-f82567ce613d | redis_virtual_ip | fa:16:3e:5f:64:d1 | ip_address='192.168.2.15', subnet_id='14a16e1d-a7f0-4991-8213-f59486173c64' | DOWN |
| b28c2a92-6261-4ef9-8169-699f19533fa5 | internal_api_virtual_ip | fa:16:3e:2c:9f:9b | ip_address='192.168.2.10', subnet_id='14a16e1d-a7f0-4991-8213-f59486173c64' | DOWN |
| bde2ae1c-9a1b-4e1d-bb0e-6126a25e2308 | public_virtual_ip | fa:16:3e:b5:20:2a | ip_address='10.19.139.42', subnet_id='1d1b585b-7a43-4eac-9ce6-f0a63dbf1629' | DOWN |
| c48ff78a-2b37-4df8-8ec2-0d18e2cf33da | control_virtual_ip | fa:16:3e:9b:f1:db | ip_address='192.168.1.24', subnet_id='9b379bc5-a4e9-455d-94bd-7c6d5310acaf' | DOWN |
| ea94b39f-7946-48e3-abff-fc33e2ca7c2f | | fa:16:3e:a8:c0:d2 | ip_address='192.168.1.20', subnet_id='9b379bc5-a4e9-455d-94bd-7c6d5310acaf' | ACTIVE |
+--------------------------------------+-------------------------------+-------------------+-----------------------------------------------------------------------------+--------+
(undercloud) [stack@hci-director ~]$
(undercloud) [stack@hci-director ~]$ openstack subnet list
+--------------------------------------+---------------------+--------------------------------------+----------------+
| ID | Name | Network | Subnet |
+--------------------------------------+---------------------+--------------------------------------+----------------+
| 14a16e1d-a7f0-4991-8213-f59486173c64 | internal_api_subnet | c47354ba-c09f-43bf-947c-9e5fc28d079c | 192.168.2.0/24 |
| 1d1b585b-7a43-4eac-9ce6-f0a63dbf1629 | external_subnet | c0c8d8dc-9749-466e-906e-a7d59f390504 | 10.19.136.0/21 |
| 28f22b72-bc57-45e9-bcf9-a54bc24a48cf | tenant_subnet | a56a99be-93be-4628-88bd-47c327aa4a6d | 192.168.3.0/24 |
| 7ee999f2-083a-4e13-8034-cdd5daaa458b | storage_mgmt_subnet | 2661fa57-a67a-437f-b270-3062787e8460 | 172.16.2.0/24 |
| 96ab02ce-18f3-4657-9e21-3007721b721a | storage_subnet | 9cd719de-f030-43f0-85a3-0b5e4af3357c | 172.16.1.0/24 |
| 9b379bc5-a4e9-455d-94bd-7c6d5310acaf | ctlplane-subnet | 7a18418a-3482-41a6-891b-2c3a6e595116 | 192.168.1.0/24 |
| bb3403ea-740f-47cd-8657-ef3a6b475088 | management_subnet | f9e7d258-e0d8-4b14-9f4d-ad0feb6928ed | 10.0.1.0/24 |
+--------------------------------------+---------------------+--------------------------------------+----------------+
(undercloud) [stack@hci-director ~]$

Tags: ui
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Revision history for this message
John Fulton (jfulton-org) wrote :

Switched this to "won't fix" given deprecation of UI.

Changed in tripleo:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.