Bug 2008601
| Summary: | WMCO ignores delete events for machines with invalid IP addresses | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | jvaldes | ||||
| Component: | Windows Containers | Assignee: | jvaldes | ||||
| Status: | CLOSED ERRATA | QA Contact: | Ronnie Rasouli <rrasouli> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.10 | CC: | aos-bugs, rrasouli, team-winc | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 4.10.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Cause: windows-exporter metrics endpoint object contains a reference to deleted machine
Consequence: WMCO ignores delete events for machines with invalid IP addresses
Fix: Remove the validation of the machine object from the event filtering
Result: windows-exporter metrics endpoint object is correctly updated even when the machine is still in Deleting phase.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 2008992 (view as bug list) | Environment: | |||||
| Last Closed: | 2022-03-28 09:36:28 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: | |||||||
| Bug Blocks: | 2008992 | ||||||
| Attachments: |
|
||||||
|
Description
jvaldes
2021-09-28 16:16:53 UTC
Marking as VERIFIED to allow the release-4.8/4.9 PRs to merge. Will update it to ON_QA once that PR merges. The IP of the previous machine hasn't been deleted since config-map still retain the machine endpoint.
oc describe configmaps windows-instances
Name: windows-instances
Namespace: openshift-windows-machine-config-operator
Labels: <none>
Annotations: <none>
Data
====
10.0.136.148:
----
username=Administrator
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning InstanceSetupFailure 11m (x10 over 160m) configmap error configuring host with address 10.0.136.148: failed to create new nodeconfig: error instantiating Windows instance from VM: unable to setup VM 10.0.136.148 sshConnectivity: error instantiating SSH client: unable to connect to Windows VM 10.0.136.148: timed out waiting for the condition
c describe endpoints -n openshift-windows-machine-config-operator
Name: windows-exporter
Namespace: openshift-windows-machine-config-operator
Labels: name=windows-exporter
Annotations: <none>
Subsets:
Addresses: 10.0.131.216,10.0.136.148,10.0.158.108
NotReadyAddresses: <none>
Ports:
Name Port Protocol
---- ---- --------
metrics 9182 TCP
Created attachment 1829808 [details]
WMCO log
Testing deletion of a non BYOH node is successful.
Verified on {"version": "4.0.0+7cdce8b"}
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 (Moderate: Windows Container Support for Red Hat OpenShift 5.0.0 [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:0577 |