In Eoan:

$ sudo crm cluster health
/usr/lib/python3/dist-packages/crmsh/ YAMLLoadWarning: calling 
yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. 
Please read for full details.
  data = yaml.load(f)
INFO: Verify health and configuration
INFO: Nodes: cluster01, cluster02, cluster03
OK: Collect information
Ctrl-C, leavinglth check...


It looks like, despite parallax, crm cluster health might need *a real*
fix in Eoan as well.

After the command is issued, it hangs and one of the nodes has:

root     14476  0.0  0.0   2864  2116 ?        Ss   21:46   0:00 /bin/sh
/usr/sbin/hb_report __slave DEST=health-report FROM_TIME=1567460760.0
TO_TIME=0 USER_NODES= NODES=cluster01 cluster02 cluster03
HA_LOG=/var/log/syslog SANITIZE=passw.* DO_SANITIZE=0 SKIP_LVL=False
EXTRA_LOGS=/var/log/syslog /var/log/pacemaker/pacemaker.log
/var/log/pacemaker.log /var/log/ha-cluster-bootstrap.log
PCMK_LOG=/var/log/pacemaker/pacemaker.log /var/log/pacemaker.log

And it is basically waiting on a read() - likely from "cat".

When issuing the hb_report by hand:

hb_report -n "cluster01 cluster02 cluster03" -f 10:00 -t 21:00

I'm able to get the report (important for a remote debug, for example).

For me, this is likely an issue in between crmsh <-> cluster-glue
compatibility due changes in one or another over time.

I'll review this later as crmsh is in -universe and this is not one of
its core functions to be cleaned up right now.

** Tags added: server-next

** Changed in: crmsh (Ubuntu)
       Status: Fix Released => Confirmed

** Changed in: crmsh (Ubuntu Xenial)
       Status: Triaged => Confirmed

** Summary changed:

- crm cluster health: NameError: global name 'parallax' is not defined
+ crm cluster health does not work: python3-parallax and cluster-glue 
(hb_report) dependencies

You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs

  crm cluster health does not work: python3-parallax and cluster-glue
  (hb_report) dependencies

Status in crmsh package in Ubuntu:
Status in crmsh source package in Xenial:
Status in crmsh package in Debian:
  Fix Released

Bug description:

  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 16.04.2 LTS
  Release:        16.04
  Codename:       xenial


  Running 'crm cluster health' raises the following exception:

  root@juju-niedbalski-xenial-machine-15:/home/ubuntu# crm cluster health
  INFO: Check the health of the cluster
  INFO: Nodes: juju-niedbalski-xenial-machine-13, 
juju-niedbalski-xenial-machine-14, juju-niedbalski-xenial-machine-15
  Traceback (most recent call last):
    File "/usr/sbin/crm", line 54, in <module>
      rc =
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 351, in run
      return main_input_loop(context, user_args)
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 240, in 
      rc = handle_noninteractive_use(context, user_args)
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 196, in 
      if' '.join(l)):
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 75, in run
      rv = self.execute_command() is not False
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 245, in 
      rv = self.command_info.function(*arglist)
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 158, in 
      return, script_args(params), script_printer())
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 2045, in run
      opts = _make_options(params)
    File "/usr/lib/python2.7/dist-packages/crmsh/", line 383, in 
      opts = parallax.Options()
  NameError: global name 'parallax' is not defined


  - Depends on python-parallax package.

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to