Bug 1690900

Summary: etcd rpm is installed when etcd is co-located on a master
Product: OpenShift Container Platform Reporter: Pablo Alonso Rodriguez <palonsor>
Component: InstallerAssignee: Jeremiah Stuever <jstuever>
Installer sub component: openshift-ansible QA Contact: ge liu <geliu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: gpei
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.11.102-1.git.0.16a8aac.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-06 02:00:29 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 Pablo Alonso Rodriguez 2019-03-20 12:42:07 UTC
Description of problem:

When etcd runs co-located on a master, it is deployed as a static pod, so it should not be necessary to install etcd rpm. However it is installed.

Version-Release number of the following components:

$ rpm -q openshift-ansible
openshift-ansible-3.11.51-2.git.0.51c90a3.el7.noarch

$ rpm -q ansible
ansible-2.7.1-1.el7.noarch

$ ansible --version
ansible 2.7.1
  config file = /opt/mev/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

How reproducible:

Always

Steps to Reproduce:
1. Install a cluster with etcd co-located with masters

Actual results:
etcd rpm is installed, although etcd is correctly deployed as static pod

Expected results:
etcd rpm should not be installed

Additional info:

etcdctl2 and etcdctl3 functions are properly designed to use "/usr/local/bin/master-exec etcd etcd" when static pod is present, so it should not be necessary to have etcdctl binary on host for them to work.

Comment 3 ge liu 2019-04-23 09:19:59 UTC
Recreated and Verified:

# rpm -qa|grep etcd
etcd-3.2.22-1.el7.x86_64
# openshift version
openshift v3.11.51


# openshift version
openshift v3.11.109
# rpm -q etcd
package etcd is not installed
# etcdctl 
bash: etcdctl: command not found

Comment 5 errata-xmlrpc 2019-06-06 02:00:29 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-2019:0794