Can not delete listener from a loadbalancer in ERROR status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Invalid
|
High
|
Unassigned |
Bug Description
For some reason, the loadbalancer is in ACTIVE in neutron database, but ERROR in Octavia database.
neutron lbaas-loadbalan
+------
| id | name | vip_address | provisioning_status | provider |
+------
| 65b0e95d-
| -33e31e76eaf6 | 8-15-02-02-04 | | | |
+------
MariaDB [octavia]> select * from load_balancer;
+------
| project_id | id | name | description | provisioning_status | operating_status | enabled | topology | server_group_id | created_at | updated_at |
+------
| 438c5c3a8080482
+------
1 row in set (0.00 sec)
Then we try to delete the loadbalancer:
neutron lbaas-loadbalan
listener d22f4df4-
Neutron server returns request_ids: ['req-c2379ee1-
Then we try to delete the listener:
neutron lbaas-listener-
Deleted listener: d22f4df4-
List the listener again, the listener is still there:
neutron lbaas-listener-list
+------
| id | default_pool_id | name | protocol | protocol_port | admin_state_up |
+------
| d22f4df4-785f-4f5 | 1cb324d1-6fe4-4c2 | bdd_listener_2016 | TCP | 80 | True |
| 9-9e66-c57cc08f5a | c-8146-6c3bf926b9 | -08-15-02-04-48 | | | |
| bc | 1d | | | | |
+------
In octavia-api log, we get:
2016-08-17 00:03:12.383 18654 INFO octavia.
2016-08-17 00:03:12.419 18654 DEBUG wsme.api [req-08d794cf-
127.0.0.1 - - [17/Aug/2016 00:03:12] "DELETE /v1/loadbalance
127.0.0.1 - - [17/Aug/2016 00:03:12] "GET /v1/loadbalance
Changed in octavia: | |
status: | Triaged → Incomplete |
Changed in octavia: | |
status: | Incomplete → Triaged |
I don't think this is duplicate of Bug #1496646.
Because:
When we try to delete a listener, it will try to change the loadbalancer status to 'PENDING_UPDATE'.
An 'ERROR' loadbalancer can not be updated to 'PENDING_UPDATE'.
So, the listener can not be deleted.
This is not related to the db mismatch between neutron and octavia.