[ClusterLabs] SLES15 SP2: crm shell crashed

Xin Liang XLiang at suse.com
Thu Jan 28 08:46:38 EST 2021


Hi Ulrich,

Cloud you please paste your whole output of "crm configure show"?

Regards,
xin
________________________________
From: Users <users-bounces at clusterlabs.org> on behalf of Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de>
Sent: Thursday, January 28, 2021 4:46 PM
To: users at clusterlabs.org <users at clusterlabs.org>
Subject: [ClusterLabs] SLES15 SP2: crm shell crashed

Hi!

Trying to add one resource to my cluster that is very similar to an existing one, I had forgotten to define one related resource.
When editing the config to "clone and adjust" constraints, crm shell crashed when saving:

crm(live/h16)configure# edit
ERROR: constraint col_snap_test-jeos5__xen_test-jeos5 references a resource prm_cron_snap_test-jeos5 which doesn't exist
ERROR: constraint ord_xen_test-jeos5__snap_test-jeos5 references a resource prm_cron_snap_test-jeos5 which doesn't exist
Traceback (most recent call last):
  File "/usr/sbin/crm", line 46, in <module>
    rc = main.run()
  File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 370, in run
    return main_input_loop(context, user_args)
  File "/usr/lib/python3.6/site-packages/crmsh/main.py", line 264, in main_input_loop
    if not context.run(inp):
  File "/usr/lib/python3.6/site-packages/crmsh/ui_context.py", line 89, in run
    rv = self.execute_command() is not False
  File "/usr/lib/python3.6/site-packages/crmsh/ui_context.py", line 279, in execute_command
    rv = self.command_info.function(*arglist)
  File "/usr/lib/python3.6/site-packages/crmsh/ui_configure.py", line 703, in do_edit
    return set_obj.edit()
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 324, in edit
    return self._edit_save(s)
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 300, in _edit_save
    ok = self.save(self._post_edit(s))
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 593, in save
    rc = diff.apply(cib_factory, mode='cli', remove=remove, method=method)
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 2375, in apply
    rc = cib_factory.set_update(e, mk, upd, rm, upd_type=mode, method=method)
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 3608, in set_update
    if not self._pop_state():
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 2847, in _pop_state
    obj.node = self.find_xml_node(obj.xml_obj_type, obj.obj_id)
  File "/usr/lib/python3.6/site-packages/crmsh/cibconfig.py", line 3005, in find_xml_node
    expr = '//fencing-topology' % tag
TypeError: not all arguments converted during string formatting

crmsh-4.2.0+git.1609987436.0d3a9bf5-5.35.1.noarch (latest)

Unfortunately that crash sent my changes to /dev/null 8-(

Regards,
Ulrich




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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20210128/15bf9b1c/attachment-0001.htm>


More information about the Users mailing list