Bug 1794606

Summary: `oc rsh` fails with "error: remote shell for deployments.apps is not supported"
Product: OpenShift Container Platform Reporter: Miciah Dashiel Butler Masters <mmasters>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: Mike Fiedler <mifiedle>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, jokerman, mfojtik, mifiedle
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1802262 (view as bug list) Environment:
Last Closed: 2020-05-04 11:26:35 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:
Bug Depends On:    
Bug Blocks: 1802262    

Description Miciah Dashiel Butler Masters 2020-01-24 01:21:05 UTC
Description of problem:

When I try to use `oc rsh` to open a shell to a deployment, it fails and prints "error: remote shell for deployments.apps is not supported".


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

The failure can be reproduced on both 4.4.0-0.ci-2020-01-21-134224 and 4.4.0-0.ci-2020-01-23-204118.


How reproducible:

Consistently.


Steps to Reproduce:
1. Launch a 4.4 cluster.
2. Run `oc -n openshift-ingress rsh deploy/router-default`.


Actual results:

The `oc rsh` command fails on 4.4:

    % oc adm release extract --command=oc registry.svc.ci.openshift.org/ocp/release:4.4.0-0.ci-2020-01-23-204118
    oc adm release extract --command=oc   1.51s user 1.38s system 18% cpu 15.415 total
    % ./oc version
    Client Version: v4.2.0-alpha.0-386-g2dc71a4
    Server Version: 4.4.0-0.ci-2020-01-23-204118
    Kubernetes Version: v1.17.1
    % ./oc -n openshift-ingress rsh deploy/router-default
    error: remote shell for deployments.apps is not supported
    zsh: exit 1     ./oc -n openshift-ingress rsh deploy/router-default
    % 


Expected results:

The `oc rsh` command should succeed, as it does on a 4.3 cluster:

    % oc adm release extract --command=oc registry.svc.ci.openshift.org/ocp/release:4.3.0-0.ci-2020-01-21-121240
    oc adm release extract --command=oc   1.30s user 1.17s system 13% cpu 18.392 total
    % ./oc version
    Client Version: v4.2.0-alpha.0-295-g6a937df
    Server Version: 4.3.0-0.ci-2020-01-21-121240
    Kubernetes Version: v1.16.2
    % ./oc -n openshift-ingress rsh deploy/router-default
    sh-4.2$

Comment 2 Mike Fiedler 2020-01-31 20:45:51 UTC
Verified - oc rsh to deployment works fine:

[root@ip-172-31-53-199 tmp]# oc version
Client Version: 4.4.0-0.nightly-2020-01-31-190444
Server Version: 4.4.0-0.nightly-2020-01-31-190444
Kubernetes Version: v1.17.1


[root@ip-172-31-53-199 tmp]# oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-01-31-190444   True        False         2m39s   Cluster version is 4.4.0-0.nightly-2020-01-31-190444

[root@ip-172-31-53-199 tmp]# oc -n openshift-ingress rsh deploy/router-default
sh-4.2$

Comment 4 errata-xmlrpc 2020-05-04 11:26:35 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-2020:0581