Bug 1812950

Summary: [IPI][OSP] Ignition swift container not deleted when cluster installation fails
Product: OpenShift Container Platform Reporter: David Sanz <dsanzmor>
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: akaris, pprinett
Version: 4.3.z   
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: Environment:
Last Closed: 2020-08-04 18:05:07 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 David Sanz 2020-03-12 14:40:59 UTC
Description of problem:

When cluster failed to install, after ignition swift container is deleted, and before other objects are created, metadata.json is not created, and cluster deletion fails.

14:06:52 level=debug msg="Creating a Swift container for your bootstrap ignition..."
14:06:55 level=debug msg="Container mrnd-13-43-sk7x9 was created."
14:06:55 level=debug msg="Creating a Swift object in container mrnd-13-43-sk7x9 containing your bootstrap ignition..."
14:06:55 level=fatal msg="failed to fetch Terraform Variables: failed to generate asset \"Terraform Variables\": failed to get openstack Terraform variables: Expected HTTP response code [] when accessing [PUT https://rhos-d.infra.prod.upshift.rdu2.redhat.com:13808/v1/AUTH_542c6ebd48bf40fa857fc245c7572e30/mrnd-13-43-sk7x9/5hhxmbg82nw92n94], but got 413 instead\nUpload exceeds quota."

14:07:01 + ./openshift-install destroy cluster --log-level debug
14:07:01 level=debug msg="OpenShift Installer 4.3.0-0.nightly-2020-03-12-085147"
14:07:01 level=debug msg="Built from commit de0f2dff303805a3841c60faa8c74592ae4e20df"
14:07:01 level=fatal msg="Failed while preparing to destroy cluster: open metadata.json: no such file or directory"

Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:

Steps to Reproduce:
1.Install on OSP with Quota problems
2.Let cluster fails because of quota
3.Try to execute cluster deletion

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Pierre Prinetti 2020-03-17 15:28:46 UTC
Bug does not affect 4.4; retargeting to 4.5 to then backport to 4.3.

Not affecting functionality; severity reduced.

Comment 5 David Sanz 2020-04-02 14:49:03 UTC
Verified on 4.5.0-0.nightly-2020-04-01-235324

Comment 6 Mike Fedosin 2020-07-01 22:12:22 UTC
*** Bug 1814667 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2020-08-04 18:05:07 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