Bug 2042906
Summary: | Edit machineset with same machine deletion hook name succeed | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Huali Liu <huliu> |
Component: | Cloud Compute | Assignee: | Joel Speed <jspeed> |
Cloud Compute sub component: | Other Providers | QA Contact: | Huali Liu <huliu> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | medium | ||
Version: | 4.10 | ||
Target Milestone: | --- | ||
Target Release: | 4.10.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: | 2022-03-10 16:40:58 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
Huali Liu
2022-01-20 10:44:57 UTC
We are already adding openapi validation for the duplicate names so this should be fixed by the PR I've attached The PR merged and is in the latest nightly Verified on 4.10.0-0.nightly-2022-01-21-074618, Edit machineset with same machine deletion hook name failed and give error message directly now. Steps: 1.Edit a machineset with same machine deletion hook name, for example lifecycleHooks: preDrain: - name: drain1 owner: drain-controller1 - name: drain1 owner: drain-controller2 liuhuali@Lius-MacBook-Pro huali-test % oc edit machineset huliu-045-nvsdk-invalid 2.save failed and get error message directly # machinesets.machine.openshift.io "huliu-045-nvsdk-invalid" was not valid: # * spec.template.spec.lifecycleHooks.preDrain[1]: Duplicate value: map[string]interface {}{"name":"drain1"} 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: OpenShift Container Platform 4.10.3 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:0056 |