[Pacemaker] CRM and openAIS

Andrew Beekhof beekhof at gmail.com
Thu Jan 17 13:41:39 EST 2008


On Jan 17, 2008, at 6:40 PM, Serge Dubrouski wrote:

> On Jan 17, 2008 10:14 AM, Andrew Beekhof <beekhof at gmail.com> wrote:
>>
>> On Jan 17, 2008, at 5:07 PM, Serge Dubrouski wrote:
>>
>>> I've got it starting all right,. now it complains on permissions:
>>>
>>> Jan 17 11:00:16 fc-node1 crmd: [32197]: ERROR: socket_wait_conn_new:
>>> unlink failure(/var/run/heartbeat/crm/crmd): Permission denied
>>> Jan 17 11:00:16 fc-node1 cib: [32196]: ERROR: Could not open config
>>> file /var/lib/heartbeat/crm/cib.xml.last for reading: Permission
>>> denied
>>> Jan 17 11:00:16 fc-node1 crmd: [32197]: ERROR: socket_wait_conn_new:
>>> trying to create in /var/run/heartbeat/crm/crmd bind:: Address  
>>> already
>>> in use
>>
>> already in use?
>> you dont have heartbeat running too do you?
>>
>>>
>>>
>>> ...................
>>>
>>> All those files belong to hacluser:hacluster Do they need to  
>>> belong to
>>> the other user?
>>
>> assuming you're using the packages from the build service (and that
>> hacluser is missing a 't'), that should be right.
>>
>> maybe delete /var/run/heartbeat/crm/crmd and see what perms it gets
>> recreated with?
>>
>
> Looks like you built Fedora packages for particular UID or so:

correct - the heartbeat package uses 24 (and pacemaker inherits that)  
which is what the fedora guys use (apparently)

> Jan 17 12:27:21 fc-node1 crmd: [323]: info: crmd_init: Starting crmd
> Jan 17 12:27:21 fc-node1 attrd: [324]: ERROR: Cannot get name for uid
> [24]: Success
> Jan 17 12:27:21 fc-node1 cib: [322]: ERROR: Cannot get name for uid
> [24]: Success
>
> Then:
>
> Jan 17 12:30:32 fc-node1 cib: [773]: info: retrieveCib: Reading
> cluster configuration from: /var/lib/heartbeat/crm/cib.xml (digest:
> /var/lib/heartbeat/crm/cib.xml.sig)
> Jan 17 12:30:32 fc-node1 cib: [773]: ERROR: Could not open config file
> /var/lib/heartbeat/crm/cib.xml for reading: Permission denied
> Jan 17 12:30:32 fc-node1 cib: [773]: ERROR: retrieveCib:
> /var/lib/heartbeat/crm/cib.xml exists but does NOT contain valid XML.
>
>
> But:
>
> # ls -l /var/lib/heartbeat/crm/cib.xml
> -rw------- 1 hacluster hacluster 3158 Jan 10 16:08
> /var/lib/heartbeat/crm/cib.xml
>
> And crmd doesn't get created with the same error: permissions denied.
>
> Changind uid for hacluster from 501 to 24 fixed the problem.
>
> BTW: Stopping openais service leaves lrmd up:
>
> [root at fc-node1 log]# service openais stop
> Stopping OpenAIS daemon (aisexec):                         [  OK  ]
> [root at fc-node1 log]# ps -ef | grep heart
> root      3444     1  0 12:37 pts/0    00:00:00 /usr/lib/heartbeat/ 
> lrmd
> root      3483 32732  0 12:39 pts/0    00:00:00 grep heart
>
> Is it supposed to be like that?

no

logs?





More information about the Pacemaker mailing list