Re: [ClusterLabs] SLES12 SP4: Same error logged in two different formats

2019-08-26 Thread Jan Pokorný
On 26/08/19 08:16 +0200, Ulrich Windl wrote:
> While inspecting the logs to improve my own RA, I noticed that one
> error is logged with two different formats: With literal "\n" nd
> with a space:
> lrmd[7278]:   notice: prm_isr_ds3_monitor_0:108007:stderr [ mkdir: cannot 
> create directory '/run/isredir': File exists ]
> crmd[7281]:   notice: h11-prm_isr_ds3_monitor_0:964 [ mkdir: cannot create 
> directory '/run/isredir': File exists\n ]
> 
> (The RA suffers from a race condition when multiple monitors are
> launched in parallel, and each one tries to create the missing
> directory; only the first one succeeds)

/me acting as a bot adding synapses would they be helpful:
https://lists.clusterlabs.org/pipermail/users/2019-February/025454.html
[never codified reentrancy of the agent-instances]

> The log message in question is created automatically from a failed
> mkdir in the shell script.
> 
> My guess is that the trailing "\n" should be removed from the
> message.
> 
> As the pacemaker on the machine is a bit outdated
> (pacemaker-1.1.19+20180928.0d2680780-1.8.x86_64), the problem might
> have been fixed already.

-- 
Jan (Poki)


pgp_27uo5NLke.pgp
Description: PGP signature
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

[ClusterLabs] SLES12 SP4: Same error logged in two different formats

2019-08-26 Thread Ulrich Windl
Hi!

While inspecting the logs to improve my own RA, I noticed that one error is 
logged with two different formats: With literal "\n" nd with a space:
lrmd[7278]:   notice: prm_isr_ds3_monitor_0:108007:stderr [ mkdir: cannot 
create directory '/run/isredir': File exists ]
crmd[7281]:   notice: h11-prm_isr_ds3_monitor_0:964 [ mkdir: cannot create 
directory '/run/isredir': File exists\n ]

(The RA suffers from a race condition when multiple monitors are launched in 
parallel, and each one tries to create the missing directory; only the first 
one succeeds)

The loig message in question is created automatically from a failed mkdir in 
the shell script.

My guess is that the trailing "\n" should be removed from the message.

As the pacemaker on the machine is a bit outdated 
(pacemaker-1.1.19+20180928.0d2680780-1.8.x86_64), the problem might have been 
fixed already.

Regards,
Ulrich



___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/