ClusterLabs / crmsh

Command-line interface for High-Availability cluster management on GNU/Linux systems.
GNU General Public License v2.0
131 stars 94 forks source link

Unable to start crmsh due to missing lxml module #281

Closed absen7 closed 1 year ago

absen7 commented 7 years ago

Would appreciate if I get genuine links to install the mandatory Py modules for crmsh ( excluding crmsh & setuptools ) / get the RPM links to resolve the lxml dependencies****

Hi there, I have configured 2 SLES VM's in a cluster using the SLES HA extension pack on an unicast mode. I am having trouble in starting the crm shell to manage the cluster from the CLI due to "missing lxml" module. FYI, i have already installed the CRMSH module in my library and also installed most of the packages that came with the SLES HA pack. I even tried building an entirely new crmsh package, and soft-linked the installed contents to one of the $PYTHONPATH directories. However, every time I start crmsh, I get

_absensles1:/etc/crmsh-3.0.1 # crm Fatal error: No module named lxml**

Failed to start crmsh! This is likely due to a broken
installation or a missing dependency.

If you are using a packaged version of crmsh, please try
reinstalling the package. Also check your PYTHONPATH and
make sure that the crmsh module is reachable.

Please file an issue describing your installation at
https://github.com/Clusterlabs/crmsh/issues/ .

absensles1:/etc/crmsh-3.0.1 #_**

When I try to install the python-lxml module ( which is not yet loaded into the RPM DB and exists as a srcpackage) ,

absensles1:/etc/crmsh-3.0.1 # zypper se python-lxml Loading repository data... Reading installed packages...

S | Name | Summary | Type
--+-------------+----------------------------------------------+----------- | python-lxml | Powerful and Pythonic XML processing library | srcpackage

absensles1:/etc/crmsh-3.0.1 # zypper source-install "python-lxml" Reading installed packages... Loading repository data... Resolving package dependencies...

Problem: nothing provides libxml2-devel needed by python-lxml-3.3.3-1.2.src Solution 1: do not ask to install a solvable providing python-lxml.src = 3.3.3-1.2 Solution 2: break python-lxml-3.3.3-1.2.src by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c):

krig commented 7 years ago

Which version of SLES is this?

absen7 commented 7 years ago

SLES11 SP4

krig commented 7 years ago

It's strange that you don't have the python-lxml package, it should be on the media as well as in the channel. Plus, the crmsh rpm has a Requires for it so it shouldn't even install if that package isn't available. How did you install the HA addon?

absen7 commented 7 years ago

Downloaded the HA extension ISO file from the SLES repo and then through the YAST Product Add+on+ Software manager. The cluster is built perfectly and I can monitor them on Hawk as well as Pacemaker UI ( does SLES provide pcs on the CLI?) although I haven't configured any resource yet

krig commented 7 years ago

If hawk is working you should already have crmsh installed on the cluster nodes as it's what hawk uses to talk to the cluster as well. There's no need to download or install crmsh separately.

absen7 commented 7 years ago

I know. But I have to get the crm running on the CLI. I'd prefer managing the cluster resources on the backend rather than firing up the HAWK UI always

krig commented 7 years ago

I mean that you already have it on the CLI :) You'll need to SSH to the nodes as the hacluster user or as root, crm is installed to /usr/sbin/crm.

absen7 commented 7 years ago

I agree with all of that Kris. I am calling the crm shell after root login on both the nodes. I also logged into Hawk and tried configuring the OCFS2 resource but it failed on HAWK UI as well flashing the same below error. As a workaround, I'm reinstalling SLES12 SP2 on two nodes along with the SLES 12SP2 Online SDK repo and the HA extension for the same version+SP

-----------++---------++------++-------------- No Module named lxml Failed to start crmsh! This is likely due to a broken installation or a missing dependency.

If you are using a packaged version of crmsh, please try reinstalling the package. Also check your PYTHONPATH and make sure that the crmsh module is reachable.

Please file an issue describing your installation at https://github.com/Clusterlabs/crmsh/issues/ . ------+++--------+++------------------++--------

krig commented 7 years ago

Well, that is really strange. It could be that they've messed up the repositories somehow. I'll investigate.

absen7 commented 7 years ago

Thanks. New installation works now ( at least crmsh :P ) I will keep you posted after I configure the 2 node cluster successfully. I have sent out a LinkedIN/Facebook connect req. to you, will be great to stay connected.

krig commented 7 years ago

Haha, I don't know how much you'll enjoy my Facebook feed, I mostly post music videos ;) But sure! Let me know how it goes.