SUSE Support

Here When You Need Us

crm command not working on SLES15 SP4

This document (000021297) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server  for SAP Applications 15 SP4

Situation

On zypper update to SLES15_SP4 or SLES-SAP15_SP4 from an earlier service pack version any attempts to execute
crm commands fails with an update error or permission denied - See examples in the additional information section.

Resolution

Update to version 4.4.2-150400.3.28.1 or greater:

crmsh     4.4.2+20231010.03e9316f-150400.3.28.1
crmsh-scripts     4.4.2+20231010.03e9316f-150400.3.28.1

Cause

Upstream crmsh patch related to "Redirect debug messages into stderr (bsc#1208991)" and "crm cluster join ssh raises TypeError (bsc#1208327)" needed to be applied to SLES15_SP4 crmsh versions.

Fix: log: Redirect debug messages into stderr (bsc#1208991)
https://github.com/ClusterLabs/crmsh/pull/1271/commits/c645e522e898ffc823b96bdb658040fd0b0bc39f

Fix: bootstrap: crm cluster join ssh raises TypeError (bsc#1208327)
https://github.com/ClusterLabs/crmsh/pull/1128

Additional Information

Redirect debug messages into stderr applies to
crmsh versions

crmsh  4.4.0+20220321.8cf6a9d1-150400.1.12
crmsh  4.4.0+20220708.6ed6b56f-150400.3.3.1
crmsh  4.4.0+20220815.5bbf78a8-150400.3.6.3
crmsh  4.4.0+20221028.3e41444-150400.3.9.1
crmsh  4.4.0+20221209.64abfaca-150400.3.12.1

bootstrap: crm cluster join ssh raises TypeError applies to applies to all
crmsh versions prior to version
4.4.2+20231010.03e9316f-150400.3.28.1

 

Example error messages:

Version:
crmsh-4.4.0+20221209.64abfaca-150400.3.12.1

sidadm:~ # crm status

WARNING: Missing '}'.

Missing '}'.

Traceback (most recent call last):  
File "/usr/sbin/crm", line 52, in <module>    
rc = main.run()  
File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 375, in run    
upgradeutil.upgrade_if_needed()  
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 127, 
in upgrade_if_needed    if nodes and _is_upgrade_needed(nodes):  
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 70, 
in _is_upgrade_needed    os.stat(FORCE_UPGRADE_FILE_PATH)PermissionError: [Errno 13] Permission denied: 
'/var/lib/heartbeat/cores/hacluster/crmsh/upgrade_forced'`


Version:
crmsh-4.4.0+20221209.64abfaca-150400.3.12.1
# crm status

INFO: crmsh version is newer than its configuration. Configuration upgrade
is needed.
ERROR: Failed to initialize passwordless ssh authentication on node
ValueError: Failed on nodeName: Exited with error code 1, Error output:
ERROR: cluster.init: Failed to generate ssh key for hacluster:


Traceback (most recent call last):
File "/usr/sbin/crm", line 52, in <module>
rc = main.run()
File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 375, in run upgradeutil.upgrade_if_needed()
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 138, in
upgrade_if_needed
_upgrade(nodes, seq)
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 119, in
_upgrade
crmsh.healthcheck.feature_fix(feature, nodes, ask)
File "/usr/lib/python3.6/site-packages/crmsh/healthcheck.py", line 102, in
feature_fix
return feature.fix_cluster(nodes, ask)
File "/usr/lib/python3.6/site-packages/crmsh/healthcheck.py", line 176, in
fix_cluster

raise FixFailure from None
crmsh.healthcheck.FixFailure


Version
crmsh-4.4.0+20221209.64abfaca-150400.3.12.1
 # crm status
INFO: crmsh version is newer than its configuration. Configuration upgrade
is needed.
Traceback (most recent call last):
File "/usr/sbin/crm", line 52, in <module>
rc = main.run()
File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 375, in run
upgradeutil.upgrade_if_needed()
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 133, in
upgrade_if_needed
seq = _get_minimal_seq_in_cluster(nodes)
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 100, in
_get_minimal_seq_in_cluster
for rc, stdout, stderr in _parallax_run(nodes, 'cat
{}'.format(SEQ_FILE_PATH)).values()
File "/usr/lib/python3.6/site-packages/crmsh/upgradeutil.py", line 100, in
<genexpr>
for rc, stdout, stderr in _parallax_run(nodes, 'cat
{}'.format(SEQ_FILE_PATH)).values()
AttributeError: 'NoneType' object has no attribute 'strip'


Version
crmsh     4.4.2+20231010.03e9316f-150400.3.28.1 (has been back-patched)
#crm cluster stop
WARNING: crmsh configuration is inconsistent in cluster.
ERROR: cluster.stop: invalid literal for int() with base 10:  '\x1b[33mWARNING\1xb[0m: crmsh configuration is inconsistent in cluster. \n20

 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021297
  • Creation Date: 19-Dec-2023
  • Modified Date:20-Dec-2023
    • SUSE Linux Enterprise High Availability Extension
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.