Bug 1773266
Summary: | [Bug] `oc set resources` returns "error: info:" when no changes are applied | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Priyanka Kanthale <pkanthal> | |
Component: | oc | Assignee: | Sally <somalley> | |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.11.0 | CC: | aos-bugs, jokerman, maszulik, mfojtik, yuxzhu | |
Target Milestone: | --- | |||
Target Release: | 4.4.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1818763 (view as bug list) | Environment: | ||
Last Closed: | 2020-05-04 11:15:36 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1818763 |
Description
Priyanka Kanthale
2019-11-17 04:01:53 UTC
Sally pls double check this works fine in the latest release and change target to 4.3 if it doesn't work still and you'll need to clone back if this requires backports. If 3.11 only is affected fix there. I see this is affecting latest release as well, will get a fix for this for 4.3. Changing target to 4.3 Maciej, this is from upstream. The output is consistent with kubectl (https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/set/set_resources.go#L268-#L272) Should I submit an upstream PR or is there any reason you know of that this should be an error not just INFO? I've opened an upstream PR for this: https://github.com/kubernetes/kubernetes/pull/85490 Re: https://coreos.slack.com/archives/CEKNRGF25/p1574339500253300 If the bug fix is not merged or not ready for QA, it should be changed back to ASSIGNED, not MODIFIED. According to the OpenShift Bugzilla Process (https://mojo.redhat.com/docs/DOC-1093603). This is going to merge to k8s 1.18 so ocp 4.4 is the soonest we'll get it. This was brought with k8s 1.17, moving to modified. Can't reproduce the issue now: [yinzhou@localhost ~]$ oc version -o yaml clientVersion: buildDate: "2020-02-21T10:22:28Z" compiler: gc gitCommit: 9353dc4631653a8de08d4b2508f1820a1fd0f15e gitTreeState: clean gitVersion: v4.4.0 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 [yinzhou@localhost ~]$ oc set resources dc/hello-openshift --limits=cpu=0,memory=100 --requests=cpu=0,memory=0 deploymentconfig.apps.openshift.io/hello-openshift resource requirements updated [yinzhou@localhost ~]$ oc set resources dc/hello-openshift --limits=cpu=0,memory=100 --requests=cpu=0,memory=0 [yinzhou@localhost ~]$ echo $? 0 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:0581 |