Bug 1809187

Summary: [ocp on osp hackfest] installer fails to destroy OCP 4.4 cluster with Octavia in a failed state
Product: OpenShift Container Platform Reporter: Chris Janiszewski <cjanisze>
Component: InstallerAssignee: Mike Fedosin <mfedosin>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: eduen, mfedosin, pprinett, racedoro
Version: 4.4   
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1809206 1809922 (view as bug list) Environment:
Last Closed: 2020-08-04 18:03:15 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:
Bug Depends On:    
Bug Blocks: 1809206, 1809922    

Description Chris Janiszewski 2020-03-02 14:50:30 UTC
Description of problem:
Installer fails to destroy OCP 4.4 cluster with Octavia in a failed state


DEBUG Unable to list api versions: %vThe service is currently unable to handle the request due to a temporary overloading or maintenance. This is a temporary condition. Try again later. 
DEBUG Exiting deleting openstack load balancers    
panic: interface conversion: pagination.Page is nil, not apiversions.APIVersionPage

goroutine 82 [running]:
github.com/openshift/installer/vendor/github.com/gophercloud/gophercloud/openstack/loadbalancer/v2/apiversions.ExtractAPIVersions(...)
        /go/src/github.com/openshift/installer/vendor/github.com/gophercloud/gophercloud/openstack/loadbalancer/v2/apiversions/results.go:30
github.com/openshift/installer/pkg/destroy/openstack.deleteLoadBalancers(0xc000eac000, 0xc00052b350, 0xd556f80, 0xc00012a000, 0x0, 0x0, 0x0)
        /go/src/github.com/openshift/installer/pkg/destroy/openstack/openstack.go:677 +0x1424
github.com/openshift/installer/pkg/destroy/openstack.deleteRunner.func1(0x0, 0x0, 0x0)
        /go/src/github.com/openshift/installer/pkg/destroy/openstack/openstack.go:108 +0x49
github.com/openshift/installer/vendor/k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff(0x37e11d600, 0x3ff4cccccccccccd, 0x0, 0x19, 0x0, 0xc000ee3f60, 0x0, 0x0)
        /go/src/github.com/openshift/installer/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:292 +0x51
github.com/openshift/installer/pkg/destroy/openstack.deleteRunner(0xbfc47d7, 0x13, 0xc29a188, 0xc000eac000, 0xc00052b350, 0xd556f80, 0xc00012a000, 0xc00010e480)
        /go/src/github.com/openshift/installer/pkg/destroy/openstack/openstack.go:107 +0x111
created by github.com/openshift/installer/pkg/destroy/openstack.(*ClusterUninstaller).Run
        /go/src/github.com/openshift/installer/pkg/destroy/openstack/openstack.go:86 +0x5bd


Version-Release number of the following components:
OCP 4.4.0-0.nightly-2020-03-01-212047

How reproducible:
every time

Steps to Reproduce:
1. Deploy OSP16 with (not working) octavia
2. Deploy OCP 4.4 on top of openstack
3. Attempt to destroy OCP

Actual results:
Destroy failed

Expected results:
Installer should avoid failing the destroy if octavia has not been used for deployment and octavia is not in working state. Instead warning could be displayed

Additional info:

Comment 5 David Sanz 2020-03-05 16:23:07 UTC
Verified on 4.5.0-0.nightly-2020-03-04-100655

Comment 6 David Sanz 2020-03-11 16:36:48 UTC
Delete command keeps working for more than an hour without finishing.

Moving back to assigned, keep working for 2 days without finishing is a failure

Comment 12 errata-xmlrpc 2020-08-04 18:03:15 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.5 image release 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-2020:2409