Bug 1736286

Summary: error dialing backend: remote error: tls: internal error
Product: OpenShift Container Platform Reporter: Nicholas Nachefski <nnachefski>
Component: NodeAssignee: Seth Jennings <sjenning>
Status: CLOSED NOTABUG QA Contact: Sunil Choudhary <schoudha>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.1.zCC: aos-bugs, dwalsh, jokerman, stwalter
Target Milestone: ---   
Target Release: ---   
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-08-01 17:11: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:
Embargoed:

Description Nicholas Nachefski 2019-08-01 16:41:19 UTC
Error when attempting to 'rsh' to a running container (either via 'oc' or web UI)

# oc get pods
pydemo-4-2nb5f       1/1     Running     0          21h

# oc rsh pydemo-4-2nb5f
Error from server: error dialing backend: remote error: tls: internal error


The container is running properly and serving my content, however, any remote connection attempt to it fails.

Comment 1 Seth Jennings 2019-08-01 17:03:45 UTC
Very little information here but, most likely, the kubelet serving CSRs are not being approved.

`oc get csr` and you'll likely see some in Pending.  Those need to be approved with `oc adm certificate approve` in a UPI installation. 

For IPI installs, the machine-approver does this automatically.

Comment 2 Nicholas Nachefski 2019-08-01 17:11:35 UTC
Thanks was it.   Thanks Seth!

for i in `oc get csr |grep Pending |awk '{print $1}'`; do oc adm certificate approve $i; done

'oc rsh' working fine now.

Comment 3 Steven Walter 2019-08-09 17:53:14 UTC
Note: this is currently covered in knowledgebase solution: https://access.redhat.com/solutions/4307511