Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1546260

Summary: The "v3_6 upgrade_control_plane" playbook leaves etcd leader reporting older version (3.0.15)
Product: OpenShift Container Platform Reporter: DAVID F WATSON <dwatson>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: liujia <jiajliu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6.1CC: aos-bugs, dwatson, jokerman, mmccomas, mwitzenm, rspazzol, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-20 14:55:08 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 DAVID F WATSON 2018-02-16 18:36:24 UTC
Description of problem:
After running "v3_6 upgrade_control_plane" playbook, "etcdctl endpoint status" reports older version (3.0.15) on the etcd leader, instead of the new, actual version (3.1.9), like other members show.


Version-Release number of the following components:
rpm -q openshift-ansible
openshift-ansible-3.6.173.0.48-1.git.0.1609d30.el7.noarch

rpm -q ansible
ansible-2.2.3.0-1.el7.noarch

ansible --version
ansible 2.2.3.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides

How reproducible:
Repeatedly, and the version is always fixed by restarting etcd service on leader node.

Steps to Reproduce:
1. ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_6/upgrade_control_plane.yml 

2. ansible masters -l masters[0] -m shell -a "ETCDCTL_API=3 /bin/etcdctl ${cert_keys_opts} --endpoints=[${etcd_endpts}] --write-out=table endpoint status"


Actual results:
ansible masters -l masters[0] -m shell -a "ETCDCTL_API=3 /bin/etcdctl ${cert_keys_opts} --endpoints=[${etcd_endpts}] --write-out=table endpoint status"
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+
|               ENDPOINT                |        ID        | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX |
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+
| ocp-master01.example.com:2379         | 45e34f18d0be692e | 3.0.15  | 33 kB   | true      |     81817 |  280358922 |
| ocp-master02.example.com:2379         | 8e7cde14a3444a46 | 3.1.9   | 25 kB   | false     |     81817 |  280358922 |
| ocp-master03.example.com:2379         | 959a143b541d5c8  | 3.1.9   | 25 kB   | false     |     81817 |  280358922 |
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+

Expected results:
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+
|               ENDPOINT                |        ID        | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX |
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+
| ocp-master01.example.com:2379         | 45e34f18d0be692e | 3.1.9   | 33 kB   | true      |     81817 |  280358922 |
| ocp-master02.example.com:2379         | 8e7cde14a3444a46 | 3.1.9   | 25 kB   | false     |     81817 |  280358922 |
| ocp-master03.example.com:2379         | 959a143b541d5c8  | 3.1.9   | 25 kB   | false     |     81817 |  280358922 |
+---------------------------------------+------------------+---------+---------+-----------+-----------+------------+


Additional info:
See customer Support Case https://access.redhat.com/support/cases/#/case/02037077 for logs, ansible.cfg & hosts inventory file

Comment 1 Scott Dodson 2018-02-20 14:55:08 UTC
Assuming this is the same root cause as the bug i've duped this as.

*** This bug has been marked as a duplicate of bug 1546873 ***