Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1522972

Summary: One or more additional pools are created when creating a load balancer with two pools. Error when trying to delete the loadbalancer
Product: Red Hat OpenStack Reporter: Siggy Sigwald <ssigwald>
Component: openstack-neutron-lbaasAssignee: Nir Magnezi <nmagnezi>
Status: CLOSED ERRATA QA Contact: Alexander Stafeyev <astafeye>
Severity: high Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: akaris, amuller, apevec, cgoncalves, lhh, mschuppe, nyechiel, pablo.iranzo, ssigwald
Target Milestone: z8Keywords: Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-neutron-lbaas-9.2.2-4.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-17 15:51:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Siggy Sigwald 2017-12-06 20:54:55 UTC
Description of problem:
One or more additional pools are created when creating a load balancer with two pools. Those pools don't have complete information but are linked to the loadblancer, which causes an error when deleting the loadbalancer.

As shown below, quite often some additional retries are needed to completely delete the stack after manually deleting the uncomplete and orphaned pools.

[stack@ospd-osp1-cs-01 ~]$ openstack stack list
+--------------------------------------+------------+-----------------+----------------------+--------------+
| ID                                   | Stack Name | Stack Status    | Creation Time        | Updated Time |
+--------------------------------------+------------+-----------------+----------------------+--------------+
| 5dece4b9-a26c-4bdc-b348-32ad8dfbf2bc | test4      | CREATE_COMPLETE | 2017-12-05T16:22:14Z | None         |
+--------------------------------------+------------+-----------------+----------------------+--------------+


[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-list
+--------------------------------------+-------------------------+----------+----------------+
| id                                   | name                    | protocol | admin_state_up |
+--------------------------------------+-------------------------+----------+----------------+
| 7fe92119-376d-4fe4-8e65-cc8984d45090 | test4-netflix-HTTPPool  | HTTP     | True           |
| 09d8f100-6033-4039-922b-7f03e7108f57 | test4-netflix-HTTPSPool | HTTPS    | True           |
| 29ee44fc-dec8-4e60-a0d7-e08db709129b | test4-netflix-HTTPSPool | HTTPS    | True           |
| 846b11f4-10ba-457b-88cc-1675459a89cb | test4-netflix-HTTPPool  | HTTP     | True           |
+--------------------------------------+-------------------------+----------+----------------+

[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-show 7fe92119-376d-4fe4-8e65-cc8984d45090
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    | 575c5a46-45a1-42d0-a228-815aa308917f           |
| id                  | 7fe92119-376d-4fe4-8e65-cc8984d45090           |
| lb_algorithm        | ROUND_ROBIN                                    |
| listeners           | {"id": "9d025952-b7d6-4188-977c-4cf95976cbd2"} |
| loadbalancers       | {"id": "2a00b8bb-064a-4b6c-851e-cdebb7f8109b"} |
| members             | 78174edf-2ce0-4a53-ba89-b443e74786da           |
|                     | e0ff0b42-dc58-4f5b-a35a-506f29f9811a           |
| name                | test4-netflix-HTTPPool                         |
| protocol            | HTTP                                           |
| session_persistence |                                                |
| tenant_id           | ac9f0e3ce0c145e6a36afbd6c9b70d73               |
+---------------------+------------------------------------------------+

[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-show 846b11f4-10ba-457b-88cc-1675459a89cb
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    |                                                |
| id                  | 846b11f4-10ba-457b-88cc-1675459a89cb           |
| lb_algorithm        | ROUND_ROBIN                                    |
| listeners           |                                                |
| loadbalancers       | {"id": "2a00b8bb-064a-4b6c-851e-cdebb7f8109b"} |
| members             |                                                |
| name                | test4-netflix-HTTPPool                         |
| protocol            | HTTP                                           |
| session_persistence |                                                |
| tenant_id           | ac9f0e3ce0c145e6a36afbd6c9b70d73               |
+---------------------+------------------------------------------------+


[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-show 09d8f100-6033-4039-922b-7f03e7108f57
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    |                                                |
| id                  | 09d8f100-6033-4039-922b-7f03e7108f57           |
| lb_algorithm        | ROUND_ROBIN                                    |
| listeners           |                                                |
| loadbalancers       | {"id": "2a00b8bb-064a-4b6c-851e-cdebb7f8109b"} |
| members             |                                                |
| name                | test4-netflix-HTTPSPool                        |
| protocol            | HTTPS                                          |
| session_persistence |                                                |
| tenant_id           | ac9f0e3ce0c145e6a36afbd6c9b70d73               |
+---------------------+------------------------------------------------+

[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-show 29ee44fc-dec8-4e60-a0d7-e08db709129b
+---------------------+------------------------------------------------+
| Field               | Value                                          |
+---------------------+------------------------------------------------+
| admin_state_up      | True                                           |
| description         |                                                |
| healthmonitor_id    | a5a2b5e9-4d2c-4e51-b60a-b773566195c8           |
| id                  | 29ee44fc-dec8-4e60-a0d7-e08db709129b           |
| lb_algorithm        | ROUND_ROBIN                                    |
| listeners           | {"id": "917a0169-921f-40db-a6e9-b01f07eeb182"} |
| loadbalancers       | {"id": "2a00b8bb-064a-4b6c-851e-cdebb7f8109b"} |
| members             |                                                |
| name                | test4-netflix-HTTPSPool                        |
| protocol            | HTTPS                                          |
| session_persistence |                                                |
| tenant_id           | ac9f0e3ce0c145e6a36afbd6c9b70d73               |
+---------------------+------------------------------------------------+



[stack@ospd-osp1-cs-01 ~]$ openstack stack delete --yes --wait test4
2017-12-05 16:33:08Z [test4]: DELETE_IN_PROGRESS  Stack DELETE started
2017-12-05 16:33:08Z [test4.vm_cloudconfigs]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:08Z [test4.vm_databases]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:08Z [test4.vm_microservices]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:08Z [test4.vm_netflixs]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:26Z [test4.vm_cloudconfigs]: DELETE_COMPLETE  state changed
2017-12-05 16:33:26Z [test4.vm_databases]: DELETE_COMPLETE  state changed
2017-12-05 16:33:27Z [test4.serviceDb_network]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:27Z [test4.sg_cloudconfig]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:27Z [test4.sg_database]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:27Z [test4.vm_microservices]: DELETE_COMPLETE  state changed
2017-12-05 16:33:27Z [test4.vm_netflixs]: DELETE_COMPLETE  state changed
2017-12-05 16:33:27Z [test4.sg_cloudconfig]: DELETE_COMPLETE  state changed
2017-12-05 16:33:27Z [test4.sg_database]: DELETE_COMPLETE  state changed
2017-12-05 16:33:28Z [test4.sg_microservice]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:28Z [test4.wait_handle]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:28Z [test4.management_network]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:28Z [test4.sg_management]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:28Z [test4.sg_microservice]: DELETE_COMPLETE  state changed
2017-12-05 16:33:28Z [test4.wait_handle]: DELETE_COMPLETE  state changed
2017-12-05 16:33:29Z [test4.sg_netflix]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:29Z [test4.sg_management]: DELETE_COMPLETE  state changed
2017-12-05 16:33:29Z [test4.sg_netflix]: DELETE_COMPLETE  state changed
2017-12-05 16:33:29Z [test4.lb_netflix]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:33:35Z [test4.management_network]: DELETE_COMPLETE  state changed
2017-12-05 16:33:38Z [test4.serviceDb_network]: DELETE_COMPLETE  state changed
2017-12-05 16:35:01Z [test4.lb_netflix]: DELETE_FAILED  Conflict: resources.lb_netflix.resources.loadbalancer: pool 09d8f100-6033-4039-922b-7f03e7108f57 is using this loadbalancer
Neutron server returns request_ids: ['req-e2bc2d4c-5b1a-49d3-b567-c6c5a88969d6']
2017-12-05 16:35:01Z [test4]: DELETE_FAILED  Resource DELETE failed: Conflict: resources.lb_netflix.resources.loadbalancer: pool 09d8f100-6033-4039-922b-7f03e7108f57 is using this loadbalancer
Neutron server returns request_ids: ['req-e2bc2d4c-5b1a-49d3-b567-c6c5a88969d6']

 Stack test4 DELETE_FAILED

Unable to delete 1 of the 1 stacks.


[stack@ospd-osp1-cs-01 ~]$ openstack stack resource list test4
+--------------------+--------------------------------------+---------------------------------------------+-----------------+----------------------+
| resource_name      | physical_resource_id                 | resource_type                               | resource_status | updated_time         |
+--------------------+--------------------------------------+---------------------------------------------+-----------------+----------------------+
| lb_netflix         | 36f0cae3-7440-4c68-8646-87f4d896d701 | http://10.1.0.167:8080/v1/AUTH_026fd683da5c | DELETE_FAILED   | 2017-12-05T16:22:14Z |
|                    |                                      | 41bb96ff82e52bbf54a1/heat-                  |                 |                      |
|                    |                                      | templates/lib/loadbalancer.yaml             |                 |                      |
| serviceApp_network | 4833f836-e213-4095-98cf-81ef01c06676 | http://10.1.0.167:8080/v1/AUTH_026fd683da5c | CREATE_COMPLETE | 2017-12-05T16:22:14Z |
|                    |                                      | 41bb96ff82e52bbf54a1/heat-                  |                 |                      |
|                    |                                      | templates/lib/tenantServiceNetwork.yaml     |                 |                      |
+--------------------+--------------------------------------+---------------------------------------------+-----------------+----------------------+

[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-list
+--------------------------------------+-------------------------+----------+----------------+
| id                                   | name                    | protocol | admin_state_up |
+--------------------------------------+-------------------------+----------+----------------+
| 09d8f100-6033-4039-922b-7f03e7108f57 | test4-netflix-HTTPSPool | HTTPS    | True           |
| 846b11f4-10ba-457b-88cc-1675459a89cb | test4-netflix-HTTPPool  | HTTP     | True           |
+--------------------------------------+-------------------------+----------+----------------+

[stack@ospd-osp1-cs-01 ~]$  neutron lbaas-pool-delete test4-netflix-HTTPSPool
Deleted lbaas_pool(s): test4-netflix-HTTPSPool
[stack@ospd-osp1-cs-01 ~]$  neutron lbaas-pool-delete test4-netflix-HTTPPool
Deleted lbaas_pool(s): test4-netflix-HTTPPool
[stack@ospd-osp1-cs-01 ~]$ neutron lbaas-pool-list

[stack@ospd-osp1-cs-01 ~]$ openstack stack delete --yes --wait test4
2017-12-05 16:36:55Z [test4]: DELETE_IN_PROGRESS  Stack DELETE started
2017-12-05 16:36:55Z [test4.lb_netflix]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:36:55Z [test4.lb_netflix]: DELETE_FAILED  Conflict: resources.lb_netflix.resources.loadbalancer: pool 09d8f100-6033-4039-922b-7f03e7108f57 is using this loadbalancer
Neutron server returns request_ids: ['req-e2bc2d4c-5b1a-49d3-b567-c6c5a88969d6']
2017-12-05 16:36:55Z [test4]: DELETE_FAILED  Resource DELETE failed: Conflict: resources.lb_netflix.resources.loadbalancer: pool 09d8f100-6033-4039-922b-7f03e7108f57 is using this loadbalancer
Neutron server returns request_ids: ['req-e2bc2d4c-5b1a-49d3-b567-c6c5a88969d6']

 Stack test4 DELETE_FAILED

Unable to delete 1 of the 1 stacks.
[stack@ospd-osp1-cs-01 ~]$ openstack stack delete --yes --wait test4
2017-12-05 16:37:08Z [test4]: DELETE_IN_PROGRESS  Stack DELETE started
2017-12-05 16:37:08Z [test4.lb_netflix]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:37:09Z [test4.lb_netflix]: DELETE_COMPLETE  state changed
2017-12-05 16:37:09Z [test4.serviceApp_network]: DELETE_IN_PROGRESS  state changed
2017-12-05 16:37:18Z [test4.serviceApp_network]: DELETE_COMPLETE  state changed
2017-12-05 16:37:18Z [test4]: DELETE_COMPLETE  Stack DELETE completed successfully

Comment 24 errata-xmlrpc 2018-05-17 15:51:29 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, 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-2018:1603

Comment 25 Red Hat Bugzilla 2023-09-15 00:05:36 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days