Bug 1644887
| Summary: | Adding CDS fails with fatal error due to not prompting for sudo password on yum install | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Paul Dudley <pdudley> |
| Component: | Documentation | Assignee: | Radek Bíba <rbiba> |
| Status: | CLOSED COMPLETED | QA Contact: | Radek Bíba <rbiba> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.10 | CC: | bkearney, gtanzill, jalviso, ktordeur, mkalyat, mminar, mshimura, syamamot |
| Target Milestone: | --- | Keywords: | PrioBumpField, Triaged |
| Target Release: | 4.x | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-22 07:19:20 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
Paul Dudley
2018-10-31 19:51:53 UTC
We can bypass this by setting passwordless login from the user which you are trying to add CDS. Also by adding the user and setting NOPASSWD. # ssh-copy-id user@CDS # ssh-keyscan -H user@CDS >> ~/.ssh/known_hosts ======> Adding CDS as trusted with RHUA. Then try adding the CDS again. The code that used to run "yum install -d 0 -e 0 -y nc" with sudo doesn't exist in RHUI 4.0+ because the use of paramiko/fabric was replaced with Ansible playbooks. That said, it is still necessary to use NOPASSWD in sudo configuration, or else node registration fails like this: May 25 15:08:58 ip-10-103-223-103 sudo[14890]: **USER** : a password is required ; TTY=pts/1 ; PWD=/home/**USER** ; USER=root ; COMMAND=/bin/sh -c echo BECOME-SUCCESS-asgxmjirqxhwlfimvzatjaxtnnzcvpwh ; /usr/libexec/platform-python /home/**USER**/.ansible/tmp/ansible-tmp-1653491338.2099364-43364-176605629361190/AnsiballZ_setup.py (this is from /var/log/secure on the CDS) Chapter 3. Technical configuration required for installing RHUI has been updated. *** Bug 2152719 has been marked as a duplicate of this bug. *** *** Bug 2322898 has been marked as a duplicate of this bug. *** |