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

2022-08-13 Thread Reid Wahl
On Sat, Aug 13, 2022 at 6:38 AM Social Boh  wrote:
>
> remove and install newly cryptography package resolve the issue.
>
> Thank you for your help.
>
> Regards

Glad to hear it!

>
> ---
> I'm SoCIaL, MayBe
>
> El 12/08/2022 a las 2:58 p. m., Reid Wahl escribió:
>
> On Fri, Aug 12, 2022 at 12:50 PM Social Boh  wrote:
>
>   dnf install python3-cryptography
> Last metadata expiration check: 4:10:13 ago on Fri 12 Aug 2022 09:58:02
> AM -05.
> Package python3-cryptography-3.2.1-5.el8.x86_64 is already installed.
> Dependencies resolved.
> Nothing to do.
> Complete!
>
> Hmm, strange. Maybe something is messed up in the Python module search
> path so that it's not finding
> /usr/lib64/python3.6/site-packages/cryptography.
>
> It's also possible that the pip install or a virtualenv is interfering
> -- but I would still expect pcs to be able to the cryptography module
> from the RPM package if it exists.
>
> Maybe try reinstalling python3-cryptography? `dnf reinstall
> python3-cryptography`
>
> If that doesn't fix it, then I'll defer to anyone else who has ideas.
>
> ---
> I'm SoCIaL, MayBe
>
> El 12/08/2022 a las 1:57 p. m., Reid Wahl escribió:
>
> rpm -q --requires pcs | grep crypto
>


-- 
Regards,

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

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2022-08-13 Thread Social Boh

remove and install newly cryptography package resolve the issue.

Thank you for your help.

Regards

---
I'm SoCIaL, MayBe

El 12/08/2022 a las 2:58 p. m., Reid Wahl escribió:

On Fri, Aug 12, 2022 at 12:50 PM Social Boh  wrote:

   dnf install python3-cryptography
Last metadata expiration check: 4:10:13 ago on Fri 12 Aug 2022 09:58:02
AM -05.
Package python3-cryptography-3.2.1-5.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Hmm, strange. Maybe something is messed up in the Python module search
path so that it's not finding
/usr/lib64/python3.6/site-packages/cryptography.

It's also possible that the pip install or a virtualenv is interfering
-- but I would still expect pcs to be able to the cryptography module
from the RPM package if it exists.

Maybe try reinstalling python3-cryptography? `dnf reinstall
python3-cryptography`

If that doesn't fix it, then I'll defer to anyone else who has ideas.


---
I'm SoCIaL, MayBe

El 12/08/2022 a las 1:57 p. m., Reid Wahl escribió:

rpm -q --requires pcs | grep crypto
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2022-08-12 Thread Reid Wahl
On Fri, Aug 12, 2022 at 12:50 PM Social Boh  wrote:
>
>   dnf install python3-cryptography
> Last metadata expiration check: 4:10:13 ago on Fri 12 Aug 2022 09:58:02
> AM -05.
> Package python3-cryptography-3.2.1-5.el8.x86_64 is already installed.
> Dependencies resolved.
> Nothing to do.
> Complete!

Hmm, strange. Maybe something is messed up in the Python module search
path so that it's not finding
/usr/lib64/python3.6/site-packages/cryptography.

It's also possible that the pip install or a virtualenv is interfering
-- but I would still expect pcs to be able to the cryptography module
from the RPM package if it exists.

Maybe try reinstalling python3-cryptography? `dnf reinstall
python3-cryptography`

If that doesn't fix it, then I'll defer to anyone else who has ideas.

>
> ---
> I'm SoCIaL, MayBe
>
> El 12/08/2022 a las 1:57 p. m., Reid Wahl escribió:
> > rpm -q --requires pcs | grep crypto
>


-- 
Regards,

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

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2022-08-12 Thread Social Boh

 dnf install python3-cryptography
Last metadata expiration check: 4:10:13 ago on Fri 12 Aug 2022 09:58:02 
AM -05.

Package python3-cryptography-3.2.1-5.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

---
I'm SoCIaL, MayBe

El 12/08/2022 a las 1:57 p. m., Reid Wahl escribió:

rpm -q --requires pcs | grep crypto

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2022-08-12 Thread Reid Wahl
On Fri, Aug 12, 2022 at 11:50 AM Social Boh  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 
> 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 
> 
> from pcs.app import main
>   File "/usr/lib/python3.6/site-packages/pcs/app.py", line 6, in 
> from pcs import (
>   File "/usr/lib/python3.6/site-packages/pcs/utils.py", line 55, in 
> from pcs.cli.common.lib_wrapper import Library
>   File "/usr/lib/python3.6/site-packages/pcs/cli/common/lib_wrapper.py", line 
> 6, in 
> from pcs.lib.commands import (
>   File "/usr/lib/python3.6/site-packages/pcs/lib/commands/cluster.py", line 
> 15, in 
> from pcs.common import (
>   File "/usr/lib/python3.6/site-packages/pcs/common/ssl.py", line 5, in 
> 
> 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@fastvm-rhel-8-0-23 ~]# rpm -q --requires pcs | grep crypto
python3-cryptography
[root@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

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


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

2022-08-12 Thread Social Boh

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 
    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 

    from pcs.app import main
  File "/usr/lib/python3.6/site-packages/pcs/app.py", line 6, in 
    from pcs import (
  File "/usr/lib/python3.6/site-packages/pcs/utils.py", line 55, in 


    from pcs.cli.common.lib_wrapper import Library
  File 
"/usr/lib/python3.6/site-packages/pcs/cli/common/lib_wrapper.py", line 
6, in 

    from pcs.lib.commands import (
  File "/usr/lib/python3.6/site-packages/pcs/lib/commands/cluster.py", 
line 15, in 

    from pcs.common import (
  File "/usr/lib/python3.6/site-packages/pcs/common/ssl.py", line 5, in 


    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?

Regards

--
---
I'm SoCIaL, MayBe
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/