Prechecks fail on CentOS 7 if run as non-root user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Expired
|
Undecided
|
Unassigned |
Bug Description
If the prechecks are run as a non-root user (root isn't allowed to directly login via SSH in my environment), the `ip` command is not on the path during the ansible `command` invocation. `ip` is found in `/usr/sbin/ip`, but the command module doesn't specify a path. This causes the check "prechecks | Checking if kolla_internal_
Suggested fix:
1. Use absolute paths for commands (of course this could be sketchy depending on supported distros, though the Linux FHS should help?)
OR
2. Change this task to use the `shell` module. The command is on the path of the user when the shell is allocated (via /etc/profile).
Changed in kolla: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in kolla: | |
milestone: | none → ocata-3 |
Changed in kolla: | |
milestone: | ocata-3 → ocata-rc1 |
Changed in kolla: | |
milestone: | ocata-rc1 → pike-1 |
Changed in kolla: | |
assignee: | nobody → Surya Prakash Singh (confisurya) |
Changed in kolla: | |
milestone: | pike-2 → pike-3 |
Changed in kolla: | |
milestone: | pike-3 → pike-rc1 |
Changed in kolla: | |
milestone: | pike-rc1 → queens-1 |
Changed in kolla: | |
milestone: | queens-2 → queens-3 |
Changed in kolla: | |
milestone: | queens-3 → queens-rc1 |
Changed in kolla: | |
milestone: | queens-rc1 → queens-rc2 |
Changed in kolla: | |
milestone: | queens-rc2 → rocky-1 |
Just tried option #2 but it doesn't fix it for some reason. When I login as the user, `ip` is on my path, so I'm not sure why. I patched it with option #1 and fixes the issue. I just don't know how that applies on Debian-based systems (or others?). I would assume the `ip` command would always be in /usr/sbin/ip or /sbin/ip.