Bug 1464010
| Summary: | etcd migrate fail on atomic hosts when access by cloud-user | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Anping Li <anli> |
| Component: | Cluster Version Operator | Assignee: | Steve Milner <smilner> |
| Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6.0 | CC: | aos-bugs, jokerman, mmccomas, smilner, walters |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-10 05:28:56 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: | |||
need to either just alter the command for atomic host or alter the path environment to include /usr/local/bin Hmm, shouldn't /usr/local/bin be in the path by default? Is ansible doing some filtering? Possible fix: https://github.com/openshift/openshift-ansible/pull/4633 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/RHEA-2017:1716 |
Description of problem: On atomic hosts, the oadm pathis /var/usrlocal/bin/oadm and /usr/local/bin/oadm. But the path /usr/local/bin isn't in Environment PATH of root. so we must use absolute path "/usr/local/bin/oadm" with root On atomic, the oadm path is /var/usrlocal/bin/oadm or /usr/local/bin/oadm On containerized Env on RHEL, the oadm path is /usr/local/bin/oadm On rpm Env on RHEL, the oadm path is /usr/bin/oadm Version-Release number of selected component (if applicable): openshift/openshift-ansible: Pull Request 4492. How reproducible: always Steps to Reproduce: 1. install OCP v3.5 on atomic. and use cloud-user to access instances. ansible_user=cloud-user ansible_become=true 2. upgrade to v3.6 3. migrate etcd from v2 to v3 anible-playbook openshift-ansible/playbooks/byo/openshift-etcd/migrate.yml Actual results: TASK [etcd_migrate : Enable etcd member] *************************************** changed: [openshift-225.lab.eng.nay.redhat.com] TASK [etcd_migrate : Re-introduce leases (as a replacement for key TTLs)] ****** failed: [openshift-225.lab.eng.nay.redhat.com] (item=/kubernetes.io/events) => { "cmd": "oadm migrate etcd-ttl --cert /etc/etcd/peer.crt --key /etc/etcd/peer.key --cacert /etc/etcd/ca.crt --etcd-address https://192.168.1.185:2379 --ttl-keys-prefix /kubernetes.io/events --lease-duration 1h", "failed": true, "item": "/kubernetes.io/events", "rc": 2 } MSG: [Errno 2] No such file or directory failed: [openshift-225.lab.eng.nay.redhat.com] (item=/kubernetes.io/masterleases) => { "cmd": "oadm migrate etcd-ttl --cert /etc/etcd/peer.crt --key /etc/etcd/peer.key --cacert /etc/etcd/ca.crt --etcd-address https://192.168.1.185:2379 --ttl-keys-prefix /kubernetes.io/masterleases --lease-duration 1h", "failed": true, "item": "/kubernetes.io/masterleases", "rc": 2 } MSG: [Errno 2] No such file or directory to retry, use: --limit @/root/openshift-ansible/playbooks/byo/openshift-etcd/migrate.retry PLAY RECAP ********************************************************************* localhost : ok=22 changed=0 unreachable=0 failed=0 openshift-208.lab.eng.nay.redhat.com : ok=65 changed=1 unreachable=0 failed=0 openshift-225.lab.eng.nay.redhat.com : ok=116 changed=9 unreachable=0 failed=1 Expected results: Additional info: