bugcrmsh - Bugs: bug #41617, Colocation is held with crm shell...

 
 

bug #41617: Colocation is held with crm shell in xml.

Submitted by:  Hideo Yamauchi <renayama19661014>
Submitted on:  Mon 17 Feb 2014 12:24:46 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.

 

Thu 20 Feb 2014 12:14:29 AM UTC, comment #3:

Hi Kristoffer,

I confirmed that processing was improved by your correction.

Many Thanks!
Hideo Yamauchi.

Hideo Yamauchi <renayama19661014>
Wed 19 Feb 2014 09:23:46 AM UTC, comment #2:

This should be fixed with the latest version (changeset 6daeb2253a4a).

Thank you!

Kristoffer Grönlund <krig>
Project AdministratorIn charge of this item.
Tue 18 Feb 2014 11:33:32 PM UTC, comment #1:

Hello,

I have figured out what the problem is now.

The CRM shell does a roundtrip conversion to and from XML, and adding the sequential="true" attribute confuses it. I think the expectation has been that sequential="true" is the default for a resource set and does not need to be set explicitly, so in cases where sequential is true, no attribute has been added. When I changed the code to explicitly set sequential to true, I must have missed some location.

To see this clearer, run crm with the -d flag.

This gives me the following output:

I will dig into Pacemaker to see what the definition of sequential is, and try to make sure that crmsh does the right thing.

Thank you,
// Kristoffer

Kristoffer Grönlund <krig>
Project AdministratorIn charge of this item.
Mon 17 Feb 2014 12:24:46 AM UTC, original submission:

Hi Kristoffer,

It is the problem that a part of colocation is displayed in xml.

I attach the crm file which I used.

------------------------------------------
[root@srv01 ~]# crm --version
2.0 (Build 364c59ee0612e71579ffacbdf628022043e61ba6)

[root@srv01 ~]# crm configure load update db2-resource_set_0213.crm
WARNING: pgsql: action monitor not advertised in meta-data, it may not be supported by the RA
WARNING: pgsql: action notify not advertised in meta-data, it may not be supported by the RA
WARNING: pgsql: action demote not advertised in meta-data, it may not be supported by the RA
WARNING: pgsql: action promote not advertised in meta-data, it may not be supported by the RA
INFO: object rsc_colocation-master cannot be represented in the CLI notation

[root@srv01 ~]# crm configure show
INFO: object rsc_colocation-master cannot be represented in the CLI notation
WARNING: terminal is not fully functional
node $id="3232238180" srv01
primitive pgsql ocf:pacemaker:Stateful \
(snip)
#
clone clnPingd prmPingd
#
location rsc_location-msPostgresql-1 msPostgresql \
rule $id="rsc_location-msPostgresql-1-rule" -inf: not_defined default_ping_set or default_ping_set lt 100
xml <rsc_colocation id="rsc_colocation-master" score="INFINITY"> \
<resource_set id="rsc_colocation-master-0" require-all="false"> \
<resource_ref id="vip-master"/> \
<resource_ref id="vip-rep"/> \
</resource_set> \
<resource_set id="rsc_colocation-master-1" require-all="false" role="Master"> \
<resource_ref id="msPostgresql"/> \
</resource_set> \
</rsc_colocation>
#
#
colocation rsc_colocation-msPostgresql-clnPingd-1 inf: msPostgresql clnPingd
#
(snip)

------------------------------------------

Best Regards,
Hideo Yamauchi.

Hideo Yamauchi <renayama19661014>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #30582:  db2-resource_set_0213.crm added by renayama19661014 (3KiB - application/octet-stream)

 

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 renayama19661014 (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 28 Feb 2014 08:19:46 AM UTCkrigOpen/ClosedOpen=>Closed
    Wed 19 Feb 2014 09:23:46 AM UTCkrigStatusIn Progress=>Fixed
    Tue 18 Feb 2014 11:00:40 PM UTCkrigStatusNone=>In Progress
      Assigned toNone=>krig
    Mon 17 Feb 2014 12:24:46 AM UTCrenayama19661014Attached File-=>Added db2-resource_set_0213.crm, #30582

    Back to the top


    Powered by Savane 3.1-cleanup1