Bug 2073398
| Summary: | machine-api-provider-openstack does not clean up OSP ports after failed server provisioning | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Bram Verschueren <bverschu> |
| Component: | Cloud Compute | Assignee: | Emilien Macchi <emacchi> |
| Cloud Compute sub component: | OpenStack Provider | QA Contact: | Itzik Brown <itbrown> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, gellner, itbrown, m.andre, mbooth, mfedosin, pprinett |
| Version: | 4.9 | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 11:05:18 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: | 2077380 | ||
|
Description
Bram Verschueren
2022-04-08 12:00:38 UTC
Note that this is a legacy CAPO bug, not a MAPO bug, because it's reported against 4.9. I would hope that this bug isn't present in MAPO, which uses upstream CAPO for server creation. Upstream CAPO has unit tests covering this exact scenario: https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/6ba04de45920c102886bdeeeb21bf1a1119c5967/pkg/cloud/services/compute/instance_test.go#L743-L783 This is a similar bug to https://bugzilla.redhat.com/show_bug.cgi?id=1943378 for Cinder volumes. I confirm that this bug won't be present in 4.11. We'll work on fixing it for 4.10 and 4.9 as requested. Verified based on the reproduction steps OCP 4.11.0-0.nightly-2022-04-25-220649 OSP RHOS-16.2-RHEL-8-20220311.n.1 $ oc get machines -A NAMESPACE NAME PHASE TYPE REGION ZONE AGE openshift-machine-api ostest-ngctf-master-0 Running m4.xlarge regionOne nova 25h openshift-machine-api ostest-ngctf-master-1 Running m4.xlarge regionOne nova 25h openshift-machine-api ostest-ngctf-master-2 Running m4.xlarge regionOne nova 25h openshift-machine-api ostest-ngctf-worker-0-2w89r Failed 14m $ oc describe machine/ostest-ngctf-worker-0-2w89r -n openshift-machine-api ... Error when looking up server group with ID foobar: Resource not found: [GET https://10.0.0.101:13774/v2.1/os-server-groups/foobar], error message: {"itemNotFound": {"code": 404, "message": "Instance group foobar could not be found."}} 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069 |