Bug 1985015 - OpenStack machine_controller does not remove boot volumes when reconciler errors
Summary: OpenStack machine_controller does not remove boot volumes when reconciler errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.6.z
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.8.z
Assignee: Pierre Prinetti
QA Contact: Itzik Brown
URL:
Whiteboard:
Depends On: 1943378
Blocks: 1989041
TreeView+ depends on / blocked
 
Reported: 2021-07-22 16:03 UTC by Pierre Prinetti
Modified: 2021-09-16 08:13 UTC (History)
10 users (show)

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.
Clone Of: 1943378
Environment:
Last Closed: 2021-08-31 16:17:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-api-provider-openstack pull 192 0 None open Bug 1985015: Eliminate instanceCreate volume leak 2021-07-29 14:39:46 UTC
Red Hat Product Errata RHBA-2021:3247 0 None None None 2021-08-31 16:17:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.