Bug 1809206

Summary: [ocp on osp hackfest] installer fails to destroy OCP 4.4 cluster with Octavia in a failed state
Product: OpenShift Container Platform Reporter: Mike Fedosin <mfedosin>
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: cjanisze, dsanzmor, pprinett
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1809187 Environment:
Last Closed: 2020-05-04 11:43:52 UTC Type: ---
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: 1809187, 1809922    
Bug Blocks:    

Description Mike Fedosin 2020-03-02 15:14:26 UTC
+++ This bug was initially created as a clone of Bug #1809187 +++

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 4 David Sanz 2020-03-05 16:24:00 UTC
Verified on 4.4.0-0.nightly-2020-03-05-142733

Comment 7 errata-xmlrpc 2020-05-04 11:43:52 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-2020:0581