Bug 1756417
Summary: | Schema change in ClusterResourceQuota from 4.1 to 4.2 results in breakage | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Greg Blomquist <gblomqui> |
Component: | openshift-apiserver | Assignee: | Stefan Schimanski <sttts> |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.2.0 | CC: | aos-bugs, eparis, lseelye, mfojtik, sttts |
Target Milestone: | --- | ||
Target Release: | 4.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: ClusterResourceQuota in 4.2 and 4.3 do not allow non-strings as limit values because the OpenAPI schema is wrong.
Consequence: Integer quota values cannot be set in ClusterResourceQuota objects although that was possible in 4.1.
Fix: The OpenAPI schema for ClusterResourceQuota was fixed to allow integers.
Result: Integers can be used as quota values in ClusterResourceQuota again.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-13 21:25:44 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: | 1755125 |
Description
Greg Blomquist
2019-09-27 15:07:42 UTC
Was on other work, sorry delayed on this bug. Tested in 4.3.0-0.nightly-2019-10-24-004924 env, still meet error: $ oc create -f - << EOF kind: ClusterResourceQuota apiVersion: quota.openshift.io/v1 metadata: name: loadbalancer-quota spec: selector: annotations: null labels: matchExpressions: - key: managed.openshift.io/service-lb-quota-exempt operator: DoesNotExist quota: hard: services.loadbalancers: 2 EOF The ClusterResourceQuota "loadbalancer-quota" is invalid: spec.quota.hard.services.loadbalancers: Invalid value: "integer": spec.quota.hard.services.loadbalancers in body must be of type string: "integer" [xxia@fedora29 my]$ oc version Client Version: v4.3.0 Server Version: 4.3.0-0.nightly-2019-10-24-004924 Kubernetes Version: v1.16.0-beta.2+d34dc8a In above env checked below, not sure why still having "additionalProperties.type: string": $ oc rsh -n openshift-cluster-version deployments/cluster-version-operator sh-4.2# ls /release-manifests ... 0000_03_quota-openshift_01_clusterresourcequota.crd.yaml ... sh-4.2# cat /release-manifests/0000_03_quota-openshift_01_clusterresourcequota.crd.yaml properties: quota: description: Quota defines the desired quota properties: hard: additionalProperties: anyOf: - type: string - type: integer type: string description: 'hard is the set of desired hard limits for each named Stefan, ping. Verified in 4.3.0-0.nightly-2019-11-24-183610 env with above steps, the issue is fixed. 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, 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/RHBA-2020:0062 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |