Bug 1673825
Summary: | CommandRunner.run() does not prepend pacemaker_binaries directory [RHEL 8] | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Jelinek <tojeline> | ||||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 8.0 | CC: | cfeist, cluster-maint, idevat, mlisik, mmazoure, nwahl, omular, tojeline | ||||||
Target Milestone: | rc | ||||||||
Target Release: | 8.0 | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | pcs-0.10.1-6.el8 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause:
User runs pcs in an environment with PATH variable empty or not set.
Consequence:
Some pcs commands fail as they are unable to run pacemaker tools.
Fix:
Always specify a full path to external executables when running them from pcs.
Result:
Pcs works even if environment variable PATH is empty or not set.
|
Story Points: | --- | ||||||
Clone Of: | 1671174 | Environment: | |||||||
Last Closed: | 2019-11-05 20:39:40 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: | 1682129 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Tomas Jelinek
2019-02-08 09:01:47 UTC
Created attachment 1546506 [details]
proposed fix
Test:
pcs should work even if environment variable PATH is empty / not set
Commands fixed by the patch:
* pcs cluster cib push diff-against=
* pcs cluster destroy
* pcs cluster kill
* pcs config restore --local
* pcs status
* pcs stonith fence
'pcs stonith confirm' is also fixed by the patch. 'pcs qdevice kill net' is also fixed by the patch. Created attachment 1546623 [details]
additional fix
After fix: [root@rhel81-node1 ~]# rpm -q pcs pcs-0.10.1-6.el8.x86_64 [root@rhel81-node1 ~]# PATH="" /usr/sbin/pcs cluster destroy Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... [root@rhel81-node1 ~]# pcs status Error: cluster is not currently running on this node 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-2019:3311 |