Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1985015

Summary: OpenStack machine_controller does not remove boot volumes when reconciler errors
Product: OpenShift Container Platform Reporter: Pierre Prinetti <pprinett>
Component: Cloud ComputeAssignee: Pierre Prinetti <pprinett>
Cloud Compute sub component: OpenStack Provider QA Contact: Itzik Brown <itbrown>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: adduarte, ancollin, egarcia, emacchi, hfukumot, juriarte, m.andre, mbooth, mfedosin, pprinett
Version: 4.6.zKeywords: Triaged
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: When a server is set to boot from volume, and an image ID is passed, CAPO creates the root volume prior to creating the server. The root volume is set to be destroyed when the associated server is destroyed. However, if the server fails to create (notably because of quota limits), the volume is never associated to a server and the automatic deletion is never triggered. Consequence: When Server quota limit is hit, at every round of server creation retry, a new volume is created, possibly until volume quota is reached (or server creation is successful). This results in a leakage of unused volumes. Fix: With this fix, a newly created root volume is explicitly deleted as soon as the server creation call fails. Result: When server creation fails (notably because of quota limits), the pre-created root volume is deleted before the next retry.
Story Points: ---
Clone Of: 1943378 Environment:
Last Closed: 2021-08-31 16:17:10 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: 1943378    
Bug Blocks: 1989041    

Comment 5 Itzik Brown 2021-08-19 06:17:09 UTC
Verified with:
4.8.0-0.nightly-2021-08-17-004424
Followed the steps in https://bugzilla.redhat.com/show_bug.cgi?id=1943378#c20

Comment 6 ximhan 2021-08-20 07:26:57 UTC
OpenShift engineering has decided to NOT ship 4.8.6 on 8/23 due to the following issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1995785
All the fixes part will be now included in 4.8.7 on 8/30.

Comment 10 errata-xmlrpc 2021-08-31 16:17:10 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.8.9 bug fix), 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-2021:3247