ClusterLabs/pcs

Failed to start on oi-20240426.

Opened this issue · 4 comments

Hi.
We're using OpenIndiana-20240426 for only reason that there's a pacemaker packages presented.
We're now strugging to start the pcsd.
The logs are the following:

[ May 16 19:43:40 Executing start method ("/lib/svc/method/svc-pcs start"). ]
[ May 16 19:43:40 Method "start" exited with status 0. ]
ruby: No such file or directory -- /usr/lib/pcsd/ssl.rb (LoadError)
[ May 16 19:43:40 Stopping because all processes in service exited. ]
[ May 16 19:43:40 Executing stop method ("/lib/svc/method/svc-pcs stop"). ]
/lib/svc/method/svc-pcs: line 33: kill: (1232) - No such process
[ May 16 19:43:40 Method "stop" exited with status 0. ]
[ May 16 19:43:41 Executing start method ("/lib/svc/method/svc-pcs start"). ]
[ May 16 19:43:41 Method "start" exited with status 0. ]
ruby: No such file or directory -- /usr/lib/pcsd/ssl.rb (LoadError)
[ May 16 19:43:41 Stopping because all processes in service exited. ]
[ May 16 19:43:41 Executing stop method ("/lib/svc/method/svc-pcs stop"). ]
/lib/svc/method/svc-pcs: line 33: kill: (1237) - No such process
[ May 16 19:43:41 Method "stop" exited with status 0. ]
[ May 16 19:43:41 Executing start method ("/lib/svc/method/svc-pcs start"). ]
[ May 16 19:43:41 Method "start" exited with status 0. ]
ruby: No such file or directory -- /usr/lib/pcsd/ssl.rb (LoadError)
[ May 16 19:43:42 Stopping because all processes in service exited. ]
[ May 16 19:43:42 Executing stop method ("/lib/svc/method/svc-pcs stop"). ]
/lib/svc/method/svc-pcs: line 33: kill: (1242) - No such process
[ May 16 19:43:42 Method "stop" exited with status 0. ]
[ May 16 19:43:42 Executing start method ("/lib/svc/method/svc-pcs start"). ]
[ May 16 19:43:42 Method "start" exited with status 0. ]
ruby: No such file or directory -- /usr/lib/pcsd/ssl.rb (LoadError)
[ May 16 19:43:42 Stopping because all processes in service exited. ]
[ May 16 19:43:42 Executing stop method ("/lib/svc/method/svc-pcs stop"). ]
/lib/svc/method/svc-pcs: line 33: kill: (1247) - No such process
[ May 16 19:43:42 Method "stop" exited with status 0. ]
[ May 16 19:43:42 Restarting too quickly, changing state to maintenance. ]

Is it looks familiar to anyone ? Any way to fix it ?

Hi @mkonnov,
what pcs version do you have on your system? The pcsd/ssl.rb file was removed in pcs-0.10.
It looks like that /lib/svc/method/svc-pcs script does not start pcsd correctly.

Hi @mirecheck. Thanks for quick reply.

what pcs version do you have on your system? The pcsd/ssl.rb file was removed in pcs-0.10.

Interesting then...
Version of pcs used is 0.10.1. From package manifest:

set name=info.source-url value=https://github.com/ClusterLabs/pcs/archive/0.10.1.tar.gz

It looks like that /lib/svc/method/svc-pcs script does not start pcsd correctly.
Really, Just found this string in /lib/svc/method/svc-pcs:

params=" -C${config} -I${binpath} -- ${binpath}/ssl.rb"

My first idea what it might be is the careless pcs packet update - the pcs version has been updated without of updating the caller. Now investigating.

@mirecheck If you'd share any clues (if so), I'd appreciate.

Try to remove '-- ${binpath}/ssl.rb'. Pcsd should be started without any arguments. I can't suggest you more because i couldn't find the sources of /lib/svc/method/svc-pcs script.

You can also try to file an issue in some openindiana tracker.

Thanks @mirecheck !