Open samuelfusato opened 2 years ago
Hi @samuelfusato
I guess you've set core.user in crm.conf? see https://github.com/ClusterLabs/crmsh/blob/733357e29d921d33b67a4ac501ee5bceab241a53/crmsh/utils.py#L353
In above line, run su -E -u <user> pacemaker-controld
, got the above error
sudo: pacemaker-controld command not found
Dear @liangxin1300,
Thanks for your answer. This is the content of /etc/crm/crm.conf
:
[core]
debug = yes
[path]
crm_daemon_user = hacluster
ocf_root = /usr/lib/ocf
Could you please remove add_sudo
in this line?
https://github.com/ClusterLabs/crmsh/blob/733357e29d921d33b67a4ac501ee5bceab241a53/crmsh/utils.py#L819
Like rc, s = get_stdout(cmd, stderr_on=stderr_on, shell=shell)
If it works, please print config.core.user
in this function to see what value it is
Hi @liangxin1300,
Your suggestion fixed the issue. However, I could not obtain the print from my customer (I tried once but I preferred not to push them on this) and I hope you understand.
Thank you so much for your kind assistance.
Yeah, that is only a workaround, not fix the root cause yet
Hello,
TL;DR - SLES15-SP3, two-nodes cluster, same /etc/crm/crm.conf file on both nodes, when user invokes the "crm configure" shell, then type "property" the following error appears on the console:
The debug does not go too far, as per the above messages. The sudoers files are okay and user is logging into the system as root directly. The
env
variables are exactly the same on both nodes (the node01
has thiscrm
issue while the02
does not).Package version:
Could you kindly help on this? Thanks for any help you can provide.
Cheers.