[ClusterLabs] how does the VirtualDomain RA know with which options it's called ?

Andrei Borzenkov arvidjaar at gmail.com
Thu May 12 14:56:16 EDT 2022


On 12.05.2022 21:03, Lentes, Bernd wrote:
> Hi,
> 
> from my understanding the resource agents in /usr/lib/ocf/resource.d/heartbeat are quite similar
> to the old scripts in /etc/init.d started by init.
> Init starts these scripts with "script [start|stop|reload|restart|status]".
> Inside the script there is a case construct which checks the options the script is started with, and calls the appropriate function.
> 
> Similar to the init scripts the cluster calls the RA with "script [start|stop|monitor ...]"
> But i'm missing this construct in the VirtualDomain RA. From where does it know how it is invoked ?
> I don't see any logic which checks the options the script is called with.
> 

It's function ocf_rarun() that does it.


More information about the Users mailing list