Bug 1801430

Summary: oc rsh -n openshift-etcd etcd-member-pod should have working etcdctl
Product: OpenShift Container Platform Reporter: Suresh Kolichala <skolicha>
Component: EtcdAssignee: Suresh Kolichala <skolicha>
Status: CLOSED ERRATA QA Contact: ge liu <geliu>
Severity: low Docs Contact:
Priority: medium    
Version: 4.2.zCC: geliu, mfojtik, sdodson
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Provide environment variables for straightforward execution of etcdctl commands on pods. Reason: Currently the user has to set several env variables involving TLS certs and ETCDCTL API version to be able to successfully run etcdctl command. Result: With this feature, the environment variables needed for straightforward execution of etcdctl are written into /root/.profile. So, when the user performs oc rsh, the etcdctl commands should work right-off the bat!
Story Points: ---
Clone Of: 1795696 Environment:
Last Closed: 2020-05-27 17:00:45 UTC Type: ---
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: 1795696    
Bug Blocks: 1834823    

Comment 1 ge liu 2020-02-12 15:33:40 UTC
"etcdctl member list" should work on etcd pods without any env setting manually in 4.3

Comment 2 Michal Fojtik 2020-05-12 10:33:30 UTC
This bug hasn't had any activity in the last 30 days. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

As such, we're marking this bug as "LifecycleStale" and decreasing severity from "medium" to "low".

If you have further information on the current state of the bug, please update it, otherwise this bug will be automatically closed in 7 days. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

Comment 6 ge liu 2020-05-18 03:40:44 UTC
Verified with 4.3.21

# oc rsh etcd-member-control-plane-0
Defaulting container name to etcd-member.
Use 'oc describe pod/etcd-member-control-plane-0 -n openshift-etcd' to see all of the containers in this pod.
sh-4.2# etcdctl
NAME:
	etcdctl - A simple command line client for etcd3.

Comment 8 errata-xmlrpc 2020-05-27 17:00:45 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:2184