How to assign command 'pcs' privilege to sap user <SID>adm?
Issue
- Want to assign pcs command privilege to user
<sid>adm>
and running into issue. - We have pacemaker cluster configured for HANA. So
<sid>adm
should be able to keep cluster in maintenance mode and remove maintenance mode during activities - Getting python errors while
<sid>adm
user executing pacemaker commands
aduadm@hana28.example:/usr/sap/ADU/HDB27> pcs status
Traceback (most recent call last):
File "/usr/sbin/pcs", line 11, in <module>
load_entry_point('pcs==0.10.15', 'console_scripts', 'pcs')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.6/site-packages/pcs/entry_points/cli.py", line 9, in <module>
from pcs.app import main
File "/usr/lib/python3.6/site-packages/pcs/app.py", line 6, in <module>
from pcs import (
File "/usr/lib/python3.6/site-packages/pcs/usage.py", line 9, in <module>
from pcs.common.str_tools import (
File "/usr/lib/python3.6/site-packages/pcs/common/str_tools.py", line 14, in <module>
from pcs.common.types import StringSequence
File "/usr/lib/python3.6/site-packages/pcs/common/types.py", line 9, in <module>
from pcs.common.tools import AutoNameEnum
File "/usr/lib/python3.6/site-packages/pcs/common/tools.py", line 11, in <module>
from lxml import etree
ImportError: /lib64/libxslt.so.1: undefined symbol: xmlModuleSymbol, version LIBXML2_2.6.17
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 8
- Pacemaker cluster
- SAP HANA
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.