[Bug 1687095] Re: crm cluster health: NameError: global name 'parallax' is not defined

Andreas Hasenack andreas at canonical.com
Tue Jul 24 14:10:45 UTC 2018

The change from pssh to parallax was done by upstream in Jan 2015:
* Fri Jan  9 2015 Kristoffer Grönlund <kgronlund at suse.com> and many others
- high: crm_pssh: Switch to python-parallax over pssh (bnc#905116)

This wasn't caught by the packager, nor by the automatic dependency
generator when building the package.

Starting with bionic, crmsh was demoted to Universe, and that version of
ubuntu has parallax, so it works there.

Even after parallax is installed (for example, via pip install parallax), it fails because it calls /bin/rpm (!):
root at xenial-crm:~# crm cluster health
INFO: Check the health of the cluster
INFO: Nodes: xenial-crm
Collect cluster information...ERROR: [xenial-crm]: Error (1): Traceback (most recent call last):
  File "./crm_rpmcheck.py", line 42, in <module>
  File "./crm_rpmcheck.py", line 39, in main
    data = [package_data(pkg) for pkg in sys.argv[1:]]
  File "./crm_rpmcheck.py", line 26, in package_data
    rc, out, err = run(['/bin/rpm', '-q', '--queryformat=' + _qfmt, pkg])
  File "./crm_rpmcheck.py", line 15, in run
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
ERROR: Collect cluster information (rc=False)

This package is very broken in xenial indeed, at least where clustering
support is concerned :(

You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.

  crm cluster health: NameError: global name 'parallax' is not defined

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list