bugcrmsh - Bugs: bug #41410, issue with rsc_templates when used...

 
 

bug #41410: issue with rsc_templates when used for stonith resources

Submitted by:  Laurent <laurentt>
Submitted on:  Fri 31 Jan 2014 11:34:16 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Kristoffer Grönlund <krig>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 31 Jan 2014 03:36:47 PM UTC, comment #2:

confirmed.
Thanks to you for the super quick resolution :)

Laurent <laurentt>
Fri 31 Jan 2014 02:42:58 PM UTC, comment #1:

Fix submitted in changeset 230d61e48b99

Thank you!

Kristoffer Grönlund <krig>
Project AdministratorIn charge of this item.
Fri 31 Jan 2014 11:34:16 AM UTC, original submission:

tested with 1.2.6 hg1156 and hg1508

crm(live)configure# rsc_template tpl1 stonith:external/dummy params hostlist="1 2 3"
crm(live)configure# commit
crm(live)configure# primitive st1 @tpl1
crm(live)configure# commit
Traceback (most recent call last):
File "/usr/sbin/crm", line 44, in <module>
main.run()
File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 478, in run
do_work()
File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 405, in do_work
if not parse_line(levels, shlex.split(inp)):
File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 166, in parse_line
rv = d() # execute the command
File "/usr/lib/python2.7/dist-packages/crmsh/main.py", line 165, in <lambda>
d = lambda: cmd[0](*args)
File "/usr/lib/python2.7/dist-packages/crmsh/ui.py", line 1918, in commit
self._verify(mkset_obj("xml", "changed"), mkset_obj("xml"))
File "/usr/lib/python2.7/dist-packages/crmsh/ui.py", line 1777, in _verify
rc2 = set_obj_semantic.semantic_check(set_obj_all)
File "/usr/lib/python2.7/dist-packages/crmsh/cibconfig.py", line 367, in semantic_check
rc = self.__check_unique_clash(set_obj_all)
File "/usr/lib/python2.7/dist-packages/crmsh/cibconfig.py", line 351, in __check_unique_clash
process_primitive(node, clash_dict)
File "/usr/lib/python2.7/dist-packages/crmsh/cibconfig.py", line 314, in process_primitive
r_node = reduce_primitive(prim)
File "/usr/lib/python2.7/dist-packages/crmsh/cibconfig.py", line 1274, in reduce_primitive
return merge_tmpl_into_prim(node, template_obj.node)
File "/usr/lib/python2.7/dist-packages/crmsh/xmlutil.py", line 1341, in merge_tmpl_into_prim
dnode.set(a, tmpl_node.get(a))
File "lxml.etree.pyx", line 695, in lxml.etree._Element.set (src/lxml/lxml.etree.c:35440)
File "apihelpers.pxi", line 563, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:15471)
File "apihelpers.pxi", line 1364, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22039)
TypeError: Argument must be bytes or unicode, got 'NoneType'

Laurent <laurentt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by krig (Updated the item)
  • -unavailable- added by laurentt (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 31 Jan 2014 11:06:00 PM UTCkrigOpen/ClosedOpen=>Closed
    Fri 31 Jan 2014 02:42:58 PM UTCkrigStatusNone=>Fixed
    Fri 31 Jan 2014 12:12:50 PM UTCkrigAssigned toNone=>krig

    Back to the top


    Powered by Savane 3.1-cleanup1