Bug 2034879
Summary: | Lifecycle hook's name and owner shouldn't be allowed to be empty | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | sunzhaohua <zhsun> |
Component: | Cloud Compute | Assignee: | Joel Speed <jspeed> |
Cloud Compute sub component: | Other Providers | QA Contact: | sunzhaohua <zhsun> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | ||
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-12 04:39:45 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
sunzhaohua
2021-12-22 11:18:20 UTC
Verified Clusterversion: 4.10.0-0.nightly-2021-12-24-011849 set lifecycle hook name as empty # * spec.lifecycleHooks.preDrain.name: Required value set lifecycle hook owner as empty # * spec.lifecycleHooks.preDrain.owner: Required value Set lifecycle hook names as same lifecycleHooks: preDrain: - name: drain1 ---->>names are same owner: drain-controller1 - name: drain1 owner: drain-controller2 $ oc edit machine zhsun24-6vt7l-worker-us-east-2c-kwnt4 error: machines.machine.openshift.io "zhsun24-6vt7l-worker-us-east-2c-kwnt4" could not be patched: admission webhook "validation.machine.machine.openshift.io" denied the request: spec.lifecycleHooks.preDrain[1].name: Forbidden: hook names must be unique within a lifecycle stage, the following hook name is already set: 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 |