bugcrmsh - Bugs: bug #40011, issue with rsc_templates

 
 

bug #40011: issue with rsc_templates

Submitted by:  Laurent <laurentt>
Submitted on:  Thu 12 Sep 2013 03:50:57 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue 08 Oct 2013 12:44:45 PM UTC, comment #7:

Thanks! Closing.

Dejan Muhamedagic <dejanm>
Project Administrator
Tue 08 Oct 2013 10:25:24 AM UTC, comment #6:

and it's ok with hg1156 (1.2.6) :-)

Laurent <laurentt>
Tue 08 Oct 2013 09:52:08 AM UTC, comment #5:

It was ok with hg1113, I've just tried hg1160,

for a cluster without any existing rsc_templates it says:
crm(live)configure# rsc_template dummy_tpl ocf:pacemaker:Dummy params op_sleep="15" op monitor timeout="20" interval="120"
ERROR: syntax in rsc_template: Unknown command near <rsc_template> parsing 'rsc_template dummy_tpl ocf:pacemaker:Dummy params op_sleep=15 op monitor timeout=20 interval=120'

for a cluster with existing rsc_templates it says:
dep-dom0:~# crm configure rsc_template dummy_tpl ocf:pacemaker:Dummy params op_sleep="15" op monitor timeout="20" interval="120"
ERROR: syntax in rsc_template: Unknown command near <rsc_template> parsing 'rsc_template vm_tpl ocf:laurent:Xen params shutdown_timeout=90 meta allow-migrate=true resource-stickiness=1000 op start interval=0 timeout=240 op stop interval=0 timeout=240 op monitor timeout=120 interval=90 depth=0 op migrate_from timeout=600 interval=0 op migrate_to timeout=600 interval=0'
INFO: object vm_tpl cannot be represented in the CLI notation
ERROR: syntax in rsc_template: Unknown command near <rsc_template> parsing 'rsc_template vnc_ip_tpl ocf:laurent:IPaddr2 op monitor interval=120 depth=0'
INFO: object vnc_ip_tpl cannot be represented in the CLI notation
ERROR: syntax in rsc_template: Unknown command near <rsc_template> parsing 'rsc_template dummy_tpl ocf:pacemaker:Dummy params op_sleep=15 op monitor timeout=20 interval=120'

with hg1113 "crm configure show" would the crmsh reprentation of rsc_templates, with hg1160 its shows its xml representation

Laurent <laurentt>
Tue 08 Oct 2013 09:17:01 AM UTC, comment #4:

Changing status to fixed. Laurent, can you please test again with 1.2.6? I'm sure that this is fine now, but still ... Thanks!

Dejan Muhamedagic <dejanm>
Project Administrator
Fri 13 Sep 2013 06:47:18 PM UTC, comment #3:

This should be fixed now. Do you mind testing again?

Dejan Muhamedagic <dejanm>
Project Administrator
Fri 13 Sep 2013 08:53:07 AM UTC, comment #2:

crmsh runs crm_resource in order to get the meta-data for the RA so that parameter existence and timeouts and so on can be verified. Apparently it stumbles when trying to get figure out which RA is referenced by the template. That's why there are so many Nones :)

Dejan Muhamedagic <dejanm>
Project Administrator
Thu 12 Sep 2013 04:09:23 PM UTC, comment #1:

s/and also try/and it also tries/

Laurent <laurentt>
Thu 12 Sep 2013 03:50:57 PM UTC, original submission:

running latest crmsh version from hg repository.

how to reproduce it:

1) define the rsc_template with crm configure rsc_template dummy_tpl ocf:pacemaker:Dummy params op_sleep="15" op monitor timeout="20" interval="120"

2) then the primitive : crm configure primitive d1 @dummy_tpl params op_sleep="14"

it then complains with:
ERROR: None
ERROR: None:None: meta-data contains no resource-agent element
ERROR: None
ERROR: None:None: meta-data contains no resource-agent element
ERROR: None:None: no such resource agent

and also try to run crm_resource for no apparent reason:
execve("/usr/sbin/crm_resource", ["crm_resource", "--show-metadata", "None:heartbeat:None"], [/* 20 vars */]) = 0

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 dejanm (Posted a comment)
  • -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
    Tue 08 Oct 2013 12:44:45 PM UTCdejanmOpen/ClosedOpen=>Closed
    Tue 08 Oct 2013 09:17:01 AM UTCdejanmStatusNeed Info=>Fixed
    Fri 13 Sep 2013 06:47:38 PM UTCdejanmStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1