Bug 1579321

Summary: etcd certificate re-deploy during Red Hat OpenShift Container Platform 3.7 upgrade is failing
Product: OpenShift Container Platform Reporter: Vadim Rutkovsky <vrutkovs>
Component: InstallerAssignee: Vadim Rutkovsky <vrutkovs>
Status: CLOSED CURRENTRELEASE QA Contact: Gaoyun Pei <gpei>
Severity: high Docs Contact:
Priority: high    
Version: 3.7.1CC: aos-bugs, bleanhar, jialiu, jokerman, mmccomas, sreber, vlaad
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1578934 Environment:
Last Closed: 2018-10-08 11:47:57 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:
Bug Depends On: 1578934, 1583151, 1585657    
Bug Blocks: 1579319, 1579320    

Comment 1 Vadim Rutkovsky 2018-05-17 11:22:44 UTC
Created https://github.com/openshift/openshift-ansible/pull/8404

Comment 2 Vadim Rutkovsky 2018-05-24 07:39:13 UTC
Fix is available in openshift-ansible-3.7.49-1

Comment 3 Gaoyun Pei 2018-06-06 02:22:25 UTC
Upgrade ocp v3.6 to v3.7 blocked by BZ#1585657 now.

Comment 4 Gaoyun Pei 2018-06-25 08:59:05 UTC
BZ#1585657 should be fixed by PR https://github.com/openshift/openshift-ansible/pull/8547/ , so no longer blocking this.

Verify this bug with openshift-ansible-3.7.55-1.git.14.cfcf401.el7.noarch.

During 3.6 to 3.7 upgrade, when etcd redeploy-certificates.yml is called, it could backup etcd certs and generate new cert files correctly.

Copy file steps:

TASK [etcd : file] **********************************************************************************************************************************************************
ok: [ec2-52-91-74-161.compute-1.amazonaws.com -> ec2-52-91-74-161.compute-1.amazonaws.com] => {"changed": false, "dest": "/etc/etcd/generated_certs/etcd-ip-172-18-2-250.ec2.internal/ca.crt", "failed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 1895, "src": "/etc/etcd/ca/ca.crt", "state": "hard", "uid": 0}


TASK [etcd : file] **********************************************************************************************************************************************************
ok: [ec2-54-88-20-59.compute-1.amazonaws.com -> ec2-52-91-74-161.compute-1.amazonaws.com] => {"changed": false, "dest": "/etc/etcd/generated_certs/openshift-master-ip-172-18-0-236.ec2.internal/master.etcd-ca.crt", "failed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 1895, "src": "/etc/etcd/ca/ca.crt", "state": "hard", "uid": 0}