Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1549873 - no n-1 compatibility for oc scale
no n-1 compatibility for oc scale
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity low
: ---
: 3.7.z
Assigned To: Juan Vallejo
Xingxing Xia
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-27 18:43 EST by Candace Sheremeta
Modified: 2018-04-17 16:16 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-05 05:39:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0636 None None None 2018-04-05 05:40 EDT

  None (edit)
Description Candace Sheremeta 2018-02-27 18:43:55 EST
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-27 21:59:45 EST
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 09:17:47 EST
(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 09:30:17 EST
(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 13:13:55 EST
Can confirm issue fixed in oc-3.7.27
Comment 8 Eric Rich 2018-02-28 14:13:43 EST
(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 05:39:53 EDT
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.