Bug 1772503
| Summary: | oc edit clusterresourcequota can not save changes | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wolfgang Kulhanek <wkulhane> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED DUPLICATE | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.1.z | CC: | aos-bugs, jokerman, maszulik, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | 4.3.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: | 2019-11-25 19:23:44 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: | |||
This is because clusterquota is now CR resource. The 'oc patch --type=merge' should let you change fields. Maciej: I know we had other resources moved to CRD's, how did we handled oc edit? (In reply to Michal Fojtik from comment #1) > This is because clusterquota is now CR resource. The 'oc patch --type=merge' > should let you change fields. > > Maciej: I know we had other resources moved to CRD's, how did we handled oc > edit? We need to update the schema in oc, look in the duplicate bug for resolution. *** This bug has been marked as a duplicate of bug 1776100 *** |
Description of problem: I can no longer use oc edit to change a user's ClusterResourceQuota. Version-Release number of selected component (if applicable): Reproduced on 4.1.22 and 4.2.4, does work on 3.11(.43) How reproducible: Always Steps to Reproduce: 1. Create a ClusterResourceQuota: oc create clusterquota crq-opentlc-mgr \ --project-annotation-selector openshift.io/requester=opentlc-mgr \ --hard pods=10 \ --hard secrets=20 2. Edit the ClusterResourceQuota and change a value - e.g. pods to 11. Save the edited quota. oc edit clusterresourcequota crq-opentlc-mgr 3. Error: error: clusterresourcequotas.quota.openshift.io "crq-opentlc-mgr" could not be patched: the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json You can run `oc replace -f /tmp/oc-edit-23u4o.yaml` to try this update again.