Bug 1578934
| Summary: | etcd certificate re-deploy during Red Hat OpenShift Container Platform 3.6 upgrade is failing | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Simon Reber <sreber> | |
| Component: | Installer | Assignee: | Vadim Rutkovsky <vrutkovs> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Gaoyun Pei <gpei> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 3.6.1 | CC: | aos-bugs, jialiu, jokerman, mmccomas, vlaad | |
| Target Milestone: | --- | |||
| Target Release: | 3.6.z | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1579319 1579320 1579321 (view as bug list) | Environment: | ||
| Last Closed: | 2018-10-08 11:46:04 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: | ||||
| Bug Blocks: | 1579319, 1579320, 1579321 | |||
|
Description
Simon Reber
2018-05-16 16:03:40 UTC
Reported error is same as https://bugzilla.redhat.com/show_bug.cgi?id=1507123 TASK [etcd_server_certificates : file] ***************************************** fatal: [atom0011.example.com -> atom0010.example.com] FAILED! => { "changed": false, "dest": "/etc/etcd/generated_certs/etcd-atom0011.example.com/ca.crt", "failed": true, "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": "file", "uid": 0 } So either we, or the customer, has placed a real file where we're expecting a file not to be or to be a hardlink. Since we're starting to see more occurrences of this and using the force option fixes it we should address this. Problem still exists in 3.10 too though the code has been relocated to roles/etcd/tasks/certificates/fetch_server_certificates_from_ca.yml We should probably look for otherplaces where we're creating a symlink or hard link and see if we need to fix them as well. Need to clone the bug back to each release as we backport the fix. Created https://github.com/openshift/openshift-ansible/pull/8405 for 3.6 and cloned bugs to other releases Fix is available in openshift-ansible-3.6.173.0.120-1 Verify this bug with openshift-ansible-3.6.173.0.124-1.git.0.5f3f028.el7.noarch
Run 3.5 to 3.6 upgrade, etcd certificates redeploy playbook would be called for hostnames were missing from etcd serving certificate SANs. During cert redeployment, the related two "file" steps both passed.
TASK [etcd_server_certificates : file] **************************************************************************************************************************************
ok: [qe-gpei-rpm35-etcd-1.0615-3gs.qe.rhcloud.com -> qe-gpei-rpm35-etcd-1.0615-3gs.qe.rhcloud.com] => {
"changed": false,
"dest": "/etc/etcd/generated_certs/etcd-qe-gpei-rpm35-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
}
TASK [etcd_client_certificates : file] **************************************************************************************************************************************
ok: [qe-gpei-rpm35-master-1.0615-3gs.qe.rhcloud.com -> qe-gpei-rpm35-etcd-1.0615-3gs.qe.rhcloud.com] => {
"changed": false,
"dest": "/etc/etcd/generated_certs/openshift-master-qe-gpei-rpm35-master-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
}
|