>>> Xin Liang <[email protected]> schrieb am 28.01.2021 um 14:46 in Nachricht <he1pr04mb32090fda48d1ae3d1ffc32deb0...@he1pr04mb3209.eurprd04.prod.outlook.com>
> Hi Ulrich, > > Cloud you please paste your whole output of "crm configure show"? Hi! The current configuration I have is working now. And even when sending you the configuration before the change also would not be very helpful. I'll try to sketch: I had a number of VMs named primitive prm_xen_test-jeosX (X is 1-4), and dependent resources named prm_cron_snap_test-jeosX that are colocated with theVMs and ordered after the VMs: colocation col_snap_test-jeos4__xen_test-jeosX inf: prm_cron_snap_test-jeosX prm_xen_test-jeosX order ord_xen_test-jeos4__snap_test-jeosX Mandatory: prm_xen_test-jeosX prm_cron_snap_test-jeosX I added another VM (X=5), but forgot to define the dependent resource, while adding the colocation and ordering for it (via "edit") Is that enough to understand? Regards, Ulrich > > Regards, > xin > ________________________________ > From: Users <users‑[email protected]> on behalf of Ulrich Windl > <[email protected]‑regensburg.de> > Sent: Thursday, January 28, 2021 4:46 PM > To: [email protected] <[email protected]> > 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/ _______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
