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

Bug 1579319

Summary: etcd certificate re-deploy during Red Hat OpenShift Container Platform 3.10 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.10.0CC: aos-bugs, jialiu, jokerman, mmccomas, sreber
Target Milestone: ---   
Target Release: 3.10.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Hardlinks and softlinks were not upgrade during certificate redeploy Consequence: upgrade fails Fix: hardlinks are forced to be updated to render new certificate contents Result: upgrade proceeds
Story Points: ---
Clone Of: 1578934 Environment:
Last Closed: 2018-12-20 21:42:25 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, 1579320, 1579321    
Bug Blocks:    

Comment 1 Vadim Rutkovsky 2018-05-17 11:14:27 UTC
Created https://github.com/openshift/openshift-ansible/pull/8402

Comment 2 Vadim Rutkovsky 2018-05-21 08:23:01 UTC
Fix is available in openshift-ansible-3.10.0-0.48.0

Comment 3 Gaoyun Pei 2018-06-08 08:50:30 UTC
Verify this bug with openshift-ansible-3.10.0-0.64.0.git.20.48df973.el7.noarch.

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

Copy file step:

TASK [etcd : file] **********************************************************************************************************************************************************
changed: [qe-gpei-392master-etcd-1.0606-5u6.qe.rhcloud.com -> qe-gpei-392master-etcd-1.0606-5u6.qe.rhcloud.com] => {"changed": true, "dest": "/etc/etcd/generated_certs/openshift-master-qe-gpei-392master-etcd-1/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}
...
TASK [etcd : file] **********************************************************************************************************************************************************
changed: [qe-gpei-392master-etcd-1.0606-5u6.qe.rhcloud.com -> qe-gpei-392master-etcd-1.0606-5u6.qe.rhcloud.com] => {"changed": true, "dest": "/etc/etcd/generated_certs/etcd-qe-gpei-392master-etcd-1/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}