{"action":"created","issue":{"url":"https://api.github.com/repos/crmsh/crmsh/issues/79","labels_url":"https://api.github.com/repos/crmsh/crmsh/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/crmsh/crmsh/issues/79/comments","events_url":"https://api.github.com/repos/crmsh/crmsh/issues/79/events","html_url":"https://github.com/crmsh/crmsh/issues/79","id":55096696,"number":79,"title":"The order of resources is changed.","user":{"login":"HideoYamauchi","id":946043,"avatar_url":"https://avatars.githubusercontent.com/u/946043?v=3","gravatar_id":"","url":"https://api.github.com/users/HideoYamauchi","html_url":"https://github.com/HideoYamauchi","followers_url":"https://api.github.com/users/HideoYamauchi/followers","following_url":"https://api.github.com/users/HideoYamauchi/following{/other_user}","gists_url":"https://api.github.com/users/HideoYamauchi/gists{/gist_id}","starred_url":"https://api.github.com/users/HideoYamauchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HideoYamauchi/subscriptions","organizations_url":"https://api.github.com/users/HideoYamauchi/orgs","repos_url":"https://api.github.com/users/HideoYamauchi/repos","events_url":"https://api.github.com/users/HideoYamauchi/events{/privacy}","received_events_url":"https://api.github.com/users/HideoYamauchi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crmsh/crmsh/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"krig","id":25527,"avatar_url":"https://avatars.githubusercontent.com/u/25527?v=3","gravatar_id":"","url":"https://api.github.com/users/krig","html_url":"https://github.com/krig","followers_url":"https://api.github.com/users/krig/followers","following_url":"https://api.github.com/users/krig/following{/other_user}","gists_url":"https://api.github.com/users/krig/gists{/gist_id}","starred_url":"https://api.github.com/users/krig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krig/subscriptions","organizations_url":"https://api.github.com/users/krig/orgs","repos_url":"https://api.github.com/users/krig/repos","events_url":"https://api.github.com/users/krig/events{/privacy}","received_events_url":"https://api.github.com/users/krig/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-01-22T00:09:32Z","updated_at":"2015-01-23T13:45:59Z","closed_at":null,"body":"We confirmed a function of crmsh by the next combination. \r\n * corosync-2.3.4 \r\n * pacemaker-Pacemaker-1.1.12 \r\n * crmsh-2.1.0\r\n\r\nWe prepared the following cli file. \r\n\r\n------\r\n```\r\n property no-quorum-policy=\"ignore\" \\ \r\n stonith-enabled=\"true\" \\ \r\n startup-fencing=\"false\" \r\n\r\n rsc_defaults resource-stickiness=\"INFINITY\" \\ \r\n migration-threshold=\"1\" \r\n\r\n group grpPostgreSQLDB \\ \r\n prmExPostgreSQLDB \\ \r\n prmApPostgreSQLDB \r\n\r\n group grpStonith1 \\ \r\n prmStonith1-2 \r\n\r\n group grpStonith2 \\ \r\n prmStonith2-2 \r\n\r\n fencing_topology \\ \r\n rh66-01: prmStonith1-2 \\ \r\n rh66-02: prmStonith2-2 \r\n\r\n primitive prmExPostgreSQLDB ocf:heartbeat:Dummy \\ \r\n op start interval=\"0s\" timeout=\"90s\" on-fail=\"restart\" \\ \r\n op monitor interval=\"10s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op stop interval=\"0s\" timeout=\"60s\" on-fail=\"fence\" \r\n\r\n primitive prmApPostgreSQLDB ocf:heartbeat:Dummy \\ \r\n op start interval=\"0s\" timeout=\"300s\" on-fail=\"restart\" \\ \r\n op monitor interval=\"10s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op stop interval=\"0s\" timeout=\"300s\" on-fail=\"fence\" \r\n\r\n primitive prmStonith1-2 stonith:external/ssh \\ \r\n params \\ \r\n hostlist=\"rh66-01\" \\ \r\n op start interval=\"0s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op monitor interval=\"3600s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op stop interval=\"0s\" timeout=\"60s\" on-fail=\"ignore\" \r\n\r\n primitive prmStonith2-2 stonith:external/ssh \\ \r\n params \\ \r\n hostlist=\"rh66-02\" \\ \r\n op start interval=\"0s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op monitor interval=\"3600s\" timeout=\"60s\" on-fail=\"restart\" \\ \r\n op stop interval=\"0s\" timeout=\"60s\" on-fail=\"ignore\" \r\n\r\n location rsc_location-grpPostgreSQLDB-1 grpPostgreSQLDB \\ \r\n rule 200: #uname eq rh66-01 \\ \r\n rule 100: #uname eq rh66-02 \r\n location rsc_location-grpStonith1-2 grpStonith1 \\ \r\n rule -INFINITY: #uname eq rh66-01 \r\n location rsc_location-grpStonith2-3 grpStonith2 \\ \r\n rule -INFINITY: #uname eq rh66-02 \r\n```\r\n---\r\n\r\n We set \"sort-elements no\" and read cli file in crm. \r\n\r\n---\r\n```\r\n [root [at] rh66-0 ~]# crm options sort-elements no \r\n [root [at] rh66-0 ~]# cat .config/crm/crm.conf\u001A \r\n [core] \r\n sort_elements = no \r\n```\r\n---\r\n We thought that a resource was sent to pacemaker in order of cli file. \r\n\r\n---\r\n```\r\n [root [at] rh66-0 ~]# crm configure load update trac2980.crm\u001A \r\n```\r\n---\r\n\r\n However, the order of resources seems to be changed by crm. \r\n (We thought that grpPostgreSQLDB was displayed by the top.) \r\n\r\n---\r\n```\r\n [root [at] rh66-0 ~]# crm_mon -1 -Af \r\n Last updated: Thu Jan 22 02:02:15 2015 \r\n Last change: Thu Jan 22 02:01:59 2015 \r\n Stack: corosync \r\n Current DC: rh66-01 (3232256178) - partition with quorum \r\n Version: 1.1.12-561c4cf \r\n 2 Nodes configured \r\n 4 Resources configured \r\n\r\n\r\n Online: [ rh66-01 rh66-02 ] \r\n\r\n\u001A Resource Group: grpStonith2 \r\n\u001A \u001A \u001A prmStonith2-2 \u001A \u001A \u001A(stonith:external/ssh): Started rh66-01\u001A \r\n \u001AResource Group: grpStonith1 \r\n\u001A \u001A \u001A prmStonith1-2 \u001A \u001A \u001A(stonith:external/ssh): Started rh66-02\u001A \r\n\u001A Resource Group: grpPostgreSQLDB \r\n\u001A  \u001A \u001AprmExPostgreSQLDB \u001A(ocf::heartbeat:Dummy): Started rh66-01\u001A \r\n\u001A \u001A  \u001AprmApPostgreSQLDB \u001A(ocf::heartbeat:Dummy): Started rh66-01\u001A \r\n```\r\n---\r\n\r\n We sent similar cli file in environment of pacemaker1.0, but the order of resources was not changed by crm. \r\n (The grpPostgreSQLDB is displayed by the top.) \r\n\r\n---\r\n```\r\n [root [at] rh64-heartbeat ~]# crm_mon -1 -Af \r\n ============ \r\n Last updated: Wed Jan 21 15:12:08 2015 \r\n Stack: Heartbeat \r\n Current DC: rh64-heartbeat2 (eac5dbcb-78ae-4450-8d44-b8175e5638dd) - partition with quorum  \r\n Version: 1.0.13-9227e89 \r\n 2 Nodes configured, unknown expected votes \r\n 6 Resources configured. \r\n ============ \r\n\r\nOnline: [ rh64-heartbeat1 rh64-heartbeat2 ] \r\n\r\n\u001AResource Group: grpPostgreSQLDB \r\n\u001A \u001A \u001AprmExPostgreSQLDB \u001A(ocf::heartbeat:Dummy): Started rh64-heartbeat1 \r\n\u001A \u001A \u001AprmFsPostgreSQLDB1 (ocf::heartbeat:Dummy): Started rh64-heartbeat1 \r\n\u001A \u001A \u001AprmIpPostgreSQLDB \u001A(ocf::heartbeat:Dummy): Started rh64-heartbeat1 \r\n\u001A \u001A \u001AprmApPostgreSQLDB \u001A(ocf::heartbeat:Dummy): Started rh64-heartbeat1 \r\n\u001AResource Group: grpStonith1 \r\n\u001A \u001A \u001AprmStonith1-1 \u001A \u001A \u001A(stonith:external/ssh): Started rh64-heartbeat2 \r\n\u001A \u001A \u001AprmStonith1-2 \u001A \u001A \u001A(stonith:external/ssh): Started rh64-heartbeat2 \r\n\u001AResource Group: grpStonith2 \r\n\u001A \u001A \u001AprmStonith2-1 \u001A \u001A \u001A(stonith:external/ssh): Started rh64-heartbeat1 \r\n\u001A \u001A \u001AprmStonith2-2 \u001A \u001A \u001A(stonith:external/ssh): Started rh64-heartbeat1 \r\n```\r\n---\r\n\r\nBy new crmsh, does \"options sort-elements no\" not work? \r\nIs there the option which does not change order elsewhere? \r\n\r\nBest Regards, \r\nHideo Yamauchi. \r\n"},"comment":{"url":"https://api.github.com/repos/crmsh/crmsh/issues/comments/71194728","html_url":"https://github.com/crmsh/crmsh/issues/79#issuecomment-71194728","issue_url":"https://api.github.com/repos/crmsh/crmsh/issues/79","id":71194728,"user":{"login":"krig","id":25527,"avatar_url":"https://avatars.githubusercontent.com/u/25527?v=3","gravatar_id":"","url":"https://api.github.com/users/krig","html_url":"https://github.com/krig","followers_url":"https://api.github.com/users/krig/followers","following_url":"https://api.github.com/users/krig/following{/other_user}","gists_url":"https://api.github.com/users/krig/gists{/gist_id}","starred_url":"https://api.github.com/users/krig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krig/subscriptions","organizations_url":"https://api.github.com/users/krig/orgs","repos_url":"https://api.github.com/users/krig/repos","events_url":"https://api.github.com/users/krig/events{/privacy}","received_events_url":"https://api.github.com/users/krig/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T13:45:59Z","updated_at":"2015-01-23T13:45:59Z","body":"Thank you!"}}