← Back to team overview

group.of.nepali.translators team mailing list archive

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

 

In Eoan:

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

<hangs>

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
VERBOSITY=0

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
https://bugs.launchpad.net/bugs/1687095

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

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

Bug description:
  [Environment]

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

  [Description]

  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 = main.run()
    File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 351, in run
      return main_input_loop(context, user_args)
    File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 240, in main_input_loop
      rc = handle_noninteractive_use(context, user_args)
    File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 196, in handle_noninteractive_use
      if context.run(' '.join(l)):
    File "/usr/lib/python2.7/dist-packages/crmsh/ui_context.py", line 75, in run
      rv = self.execute_command() is not False
    File "/usr/lib/python2.7/dist-packages/crmsh/ui_context.py", line 245, in execute_command
      rv = self.command_info.function(*arglist)
    File "/usr/lib/python2.7/dist-packages/crmsh/ui_cluster.py", line 158, in do_health
      return scripts.run(script, script_args(params), script_printer())
    File "/usr/lib/python2.7/dist-packages/crmsh/scripts.py", line 2045, in run
      opts = _make_options(params)
    File "/usr/lib/python2.7/dist-packages/crmsh/scripts.py", line 383, in _make_options
      opts = parallax.Options()
  NameError: global name 'parallax' is not defined

  [Solution]

  - Depends on python-parallax package.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crmsh/+bug/1687095/+subscriptions