Bug 1572131
Summary: | Service deletion fails when deleting the load balancer | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Jon Uriarte <juriarte> |
Component: | openstack-kuryr-kubernetes | Assignee: | Yossi Boaron <yboaron> |
Status: | CLOSED ERRATA | QA Contact: | Jon Uriarte <juriarte> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 13.0 (Queens) | CC: | asegurap, jschluet, nmanos |
Target Milestone: | beta | Keywords: | Rebase, Triaged |
Target Release: | 13.0 (Queens) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-kuryr-kubernetes-0.4.3-1.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-27 13:53:50 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
Jon Uriarte
2018-04-26 09:07:37 UTC
Upstream bug: https://bugs.launchpad.net/bugs/1767074 Seems to be fixed on OSP 13, puddle 2018-04-10.2. (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB Validation failure: Cannot delete Load Balancer a1256223-6e9c-4b27-9e4c-a5580029c3b2 - it has children (HTTP 400) (Request-ID: req-8864c5ce-82b2-4afd-aaea-7bbccb01b927) (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB -h usage: openstack loadbalancer delete [-h] [--cascade] <load_balancer> Delete a load balancer positional arguments: <load_balancer> Load balancers to delete (name or ID) optional arguments: -h, --help show this help message and exit --cascade Cascade the delete to all child elements of the load balancer. This command is provided by the python-octaviaclient plugin. (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB --cascade (PASSED) Looks like this patch comes in with upstream tag 0.4.3 on stable/queens branch Verified in version openstack-kuryr-kubernetes-controller-0.4.3-1.el7ost.noarch from puddle 20180502.1. 1.- oc new-project test 2.- oc run --image kuryr/demo demo 3.- oc expose dc/demo --port 80 --target-port 8080 4.- Wait until octavia LBaaS is up and running (overcloud) [root@undercloud stack]# openstack loadbalancer list +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ | id | name | project_id | vip_address | provisioning_status | provider | +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ | a5f0e380-7f17-4665-baa7-b291601742ff | openshift-ansible-openshift.example.com-api-lb | 6c07532860e641989bacc5583275080a | 172.30.0.1 | ACTIVE | octavia | | 23439f39-5b2a-4c4b-9fb1-451fddedde86 | test/demo | 6c07532860e641989bacc5583275080a | 172.30.37.254 | ACTIVE | octavia | +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ 5.- oc delete project test 6.- Checked the test/demo load balancer is removed (overcloud) [root@undercloud stack]# openstack loadbalancer list +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ | id | name | project_id | vip_address | provisioning_status | provider | +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ | a5f0e380-7f17-4665-baa7-b291601742ff | openshift-ansible-openshift.example.com-api-lb | 6c07532860e641989bacc5583275080a | 172.30.0.1 | ACTIVE | octavia | +--------------------------------------+------------------------------------------------+----------------------------------+---------------+---------------------+----------+ And no errors are shown in kuryr log. (In reply to Noam Manos from comment #2) > Seems to be fixed on OSP 13, puddle 2018-04-10.2. > > > (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB > Validation failure: Cannot delete Load Balancer > a1256223-6e9c-4b27-9e4c-a5580029c3b2 - it has children (HTTP 400) > (Request-ID: req-8864c5ce-82b2-4afd-aaea-7bbccb01b927) > > > (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB -h > usage: openstack loadbalancer delete [-h] [--cascade] <load_balancer> > > Delete a load balancer > > positional arguments: > <load_balancer> Load balancers to delete (name or ID) > > optional arguments: > -h, --help show this help message and exit > --cascade Cascade the delete to all child elements of the load > balancer. > > This command is provided by the python-octaviaclient plugin. > > (tester) [stack@undercloud-0 ~]$ openstack loadbalancer delete LB --cascade > > (PASSED) Thanks for the info Noam! 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/RHEA-2018:2086 |