Bug 2082428
| Summary: | oc patch healthCheckInterval with invalid "5 s" to the ingress-controller successfully | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Shudi Li <shudili> |
| Component: | Networking | Assignee: | Candace Holman <cholman> |
| Networking sub component: | router | QA Contact: | Shudi Li <shudili> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | low | ||
| Priority: | high | CC: | cholman, hongli, mmasters, wking |
| Version: | 4.11 | Keywords: | Reopened |
| 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:10:37 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
Shudi Li
2022-05-06 06:46:21 UTC
can patch it with "5 s", which having blank character and should be invalid.
1.
% oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec":{"tuningOptions": {"healthCheckInterval": "5 s"}}}'
ingresscontroller.operator.openshift.io/default patched
%
2.
%oc -n openshift-ingress-operator get ingresscontroller/default -o yaml | grep -A1 tuningOptions
tuningOptions:
healthCheckInterval: 5 s
%
3.
% oc -n openshift-ingress get pods
NAME READY STATUS RESTARTS AGE
router-default-6cfc84cd9f-689lw 1/1 Running 0 53m
router-default-6cfc84cd9f-w8qmc 1/1 Running 0 53m
%
*** Bug 2091551 has been marked as a duplicate of this bug. *** Verified it with 4.11.0-0.nightly-2022-06-15-222801
1.
% oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.11.0-0.nightly-2022-06-15-222801 True False 10h Cluster version is 4.11.0-0.nightly-2022-06-15-222801
%
2.
% oc -n openshift-ingress-operator get ingresscontroller/default -o yaml | grep -A1 tuningOptions
tuningOptions:
healthCheckInterval: 10s
%
3. Tried to patch it with "10 s" and "5 s"
% oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec": {"tuningOptions": {"healthCheckInterval": "10 s"}}}'
The IngressController "default" is invalid: spec.tuningOptions.healthCheckInterval: Invalid value: "10 s": spec.tuningOptions.healthCheckInterval in body should match '^0|([0-9]+(\.[0-9]+)?(ns|us|µs|μs|ms|s|m|h))+$'
% oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec": {"tuningOptions": {"healthCheckInterval": "5 s"}}}'
The IngressController "default" is invalid: spec.tuningOptions.healthCheckInterval: Invalid value: "5 s": spec.tuningOptions.healthCheckInterval in body should match '^0|([0-9]+(\.[0-9]+)?(ns|us|µs|μs|ms|s|m|h))+$'
%
4. Tried to patch it with "3d"
% oc -n openshift-ingress-operator patch ingresscontroller/default --type=merge -p '{"spec": {"tuningOptions": {"healthCheckInterval": "3d"}}}'
The IngressController "default" is invalid: spec.tuningOptions.healthCheckInterval: Invalid value: "3d": spec.tuningOptions.healthCheckInterval in body should match '^0|([0-9]+(\.[0-9]+)?(ns|us|µs|μs|ms|s|m|h))+$'
%
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 |