Bug 1549873 - no n-1 compatibility for oc scale
Summary: no n-1 compatibility for oc scale
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.7.z
Assignee: Juan Vallejo
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-27 23:43 UTC by Candace Sheremeta
Modified: 2018-04-17 20:16 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-05 09:39:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0636 0 None None None 2018-04-05 09:40:24 UTC

Description Candace Sheremeta 2018-02-27 23:43:55 UTC
Description of problem:
Running the following command with oc-3.7.23 in OSCP 3.6 cluster gives the following error:

$ oc scale dc/app-cli --replicas=2
error: no kind "Scale" is registered for version "extensions/v1beta1"

but running the command with oc-3.6.173.0.96 gives:

$ ./oc scale dc/app-cli --replicas=2
deploymentconfig "app-cli" scaled

Version-Release number of selected component (if applicable):
oc-3.7.23

How reproducible:
100%

Steps to Reproduce:
1. Set up container app on OSCP 3.6 (I used PHP 7.0)
2. Install oc-3.7.23 on local machine and login to cluster
3. Try to scale with above command

Actual results:
error: no kind "Scale" is registered for version "extensions/v1beta1"

Expected results:
deploymentconfig "app-cli" scaled

Additional info:
@erich mentioned that he thought we were supposed to have n-1 compatibility for oc. I found https://docs.openshift.com/container-platform/3.7/release_notes/index.html which seems to agree (at least according to my interpretation). Setting needinfo on him to confirm.

Comment 2 Xingxing Xia 2018-02-28 02:59:45 UTC
Also double checked other oc versions (v3.7.23, v3.7.27) against server version v3.6.173.0.104. v3.7.23 indeed reproduces issue, while v3.7.27 works:
$ v3.7.27/oc scale dc/hello-openshift --replicas=2
deploymentconfig "hello-openshift" scaled

It is fixed in v3.7.27

Comment 3 Eric Rich 2018-02-28 14:17:47 UTC
(In reply to Xingxing Xia from comment #2)
> Also double checked other oc versions (v3.7.23, v3.7.27) against server
> version v3.6.173.0.104. v3.7.23 indeed reproduces issue, while v3.7.27 works:
> $ v3.7.27/oc scale dc/hello-openshift --replicas=2
> deploymentconfig "hello-openshift" scaled
> 
> It is fixed in v3.7.27

Based on this it should be save to say this is fixed in the current release! 
Candace if you can confirm, we can close this.

Comment 4 Eric Rich 2018-02-28 14:30:17 UTC
(In reply to Eric Rich from comment #3)
> (In reply to Xingxing Xia from comment #2)
> > Also double checked other oc versions (v3.7.23, v3.7.27) against server
> > version v3.6.173.0.104. v3.7.23 indeed reproduces issue, while v3.7.27 works:
> > $ v3.7.27/oc scale dc/hello-openshift --replicas=2
> > deploymentconfig "hello-openshift" scaled
> > 
> > It is fixed in v3.7.27
> 
> Based on this it should be save to say this is fixed in the current release! 
> Candace if you can confirm, we can close this.

According to https://access.redhat.com/downloads/content/290/ver=3.7/rhel---7/3.7.23/x86_64/product-software v3.7.23 is latest so this likely needs to be attached to the errata shipping v3.7.27 (moving to Modified).

Comment 7 Candace Sheremeta 2018-02-28 18:13:55 UTC
Can confirm issue fixed in oc-3.7.27

Comment 8 Eric Rich 2018-02-28 19:13:43 UTC
(In reply to Candace Sheremeta from comment #7)
> Can confirm issue fixed in oc-3.7.27

(In reply to Xingxing Xia from comment #2)
> Also double checked other oc versions (v3.7.23, v3.7.27) against server
> version v3.6.173.0.104. v3.7.23 indeed reproduces issue, while v3.7.27 works:
> $ v3.7.27/oc scale dc/hello-openshift --replicas=2
> deploymentconfig "hello-openshift" scaled
> 
> It is fixed in v3.7.27

Based on these moving to VERIFIED

Comment 12 errata-xmlrpc 2018-04-05 09:39:53 UTC
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-2018:0636


Note You need to log in before you can comment on or make changes to this bug.