[ClusterLabs] I can't use pcs console on Rocky Linux 8

Reid Wahl nwahl at redhat.com
Fri Aug 12 14:57:23 EDT 2022


On Fri, Aug 12, 2022 at 11:50 AM Social Boh <social at bohboh.info> wrote:
>
> Hello list,
>
> i'm trying to create a cluster on Rocky Linux 8 and this is the result:
>
> pcs host auth open1 open2
>
> Traceback (most recent call last):
>   File "/usr/sbin/pcs", line 11, in <module>
>     load_entry_point('pcs==0.10.12', '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/utils.py", line 55, in <module>
>     from pcs.cli.common.lib_wrapper import Library
>   File "/usr/lib/python3.6/site-packages/pcs/cli/common/lib_wrapper.py", line 6, in <module>
>     from pcs.lib.commands import (
>   File "/usr/lib/python3.6/site-packages/pcs/lib/commands/cluster.py", line 15, in <module>
>     from pcs.common import (
>   File "/usr/lib/python3.6/site-packages/pcs/common/ssl.py", line 5, in <module>
>     from cryptography import x509
> ModuleNotFoundError: No module named 'cryptography'
>
> Python version: 3.6
>
> module cryptography is correctly installed from pip:
>
> Requirement already satisfied: cryptography in /usr/local/lib64/python3.6/site-packages (37.0.4)
>
> Any hint?

What happens when you install the python3-cryptography package?

[root at fastvm-rhel-8-0-23 ~]# rpm -q --requires pcs | grep crypto
python3-cryptography
[root at fastvm-rhel-8-0-23 ~]# rpm -q python3-cryptography
python3-cryptography-3.2.1-5.el8.x86_64


>
> Regards
>
> --
> ---
> I'm SoCIaL, MayBe
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/



-- 
Regards,

Reid Wahl (He/Him)
Senior Software Engineer, Red Hat
RHEL High Availability - Pacemaker



More information about the Users mailing list