Re: [ClusterLabs] Adding HAProxy as a Resource
On Tue, 2019-07-30 at 09:39 +, Somanath Jeeva wrote: > Hi , > > I am compiling and installing the server on EL 7 server. Also I tried > once again with systemd-devel and dbus-devel installed , but still I > am unable to use system resources. > > Is there any other dependency that I have to install. > > > > With Regards > Somanath Thilak J Check your config.log for messages starting at "systemd version query". On EL7 though, I'd recommend using pre-built packages, whether the supported ones or from EPEL. If you really want to compile your own, I'd go with the latest 1.1 or 2.0 version (currently 1.1.21 or 2.0.2). > > -Original Message- > From: Ken Gaillot > Sent: Tuesday, July 30, 2019 12:53 AM > To: Somanath Jeeva ; Cluster Labs - All > topics related to open-source clustering welcomed < > users@clusterlabs.org>; Tomas Jelinek > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > On Fri, 2019-07-26 at 04:46 +, Somanath Jeeva wrote: > > Hi Ken, > > > > I am using the below versions > > > > Pacemaker - 1.1.16 > > Corosync - 2.4.3 > > PCS - 0.9 > > Resource agents - 3.9.6 > > > > During running configure I didn’t give any options. I just ran > > configure.sh and then did a make install. > > In that case, it will check whether the build machine has everything > needed to support systemd. The main requirement is that the systemd > and dbus development libraries (systemd-devel and dbus-devel) are > available. > > > > > With Regards > > Somanath Thilak J > > > > -Original Message- > > From: Ken Gaillot > > Sent: Thursday, July 25, 2019 7:22 PM > > To: Cluster Labs - All topics related to open-source clustering > > welcomed ; Tomas Jelinek < > > tojel...@redhat.com> > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > On Thu, 2019-07-25 at 07:23 +, Somanath Jeeva wrote: > > > Hi > > > > > > Systemd unit file is available for haproxy but the pcs resource > > > standard command does not list systemd standard . > > > > > > Also I am not using the pacemaker packages from redhat. I am > > > using > > > the packages downloaded from clusterlabs. > > > > Hi Somanath, > > > > Which version of pacemaker are you using? > > > > If you built it from source, did you give any options to the > > configure > > command? > > > > > > > > > > > > > > With Regards > > > Somanath Thilak J > > > > > > -Original Message- > > > From: Tomas Jelinek > > > Sent: Monday, July 15, 2019 5:58 PM > > > To: users@clusterlabs.org > > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > > > Hi, > > > > > > Do you have a systemd unit file for haproxy installed? > > > Does 'crm_resource --list-standards' print 'systemd'? > > > Does 'crm_resource --list-agents systemd' print 'haproxy'? > > > Note that when you use full agent name (that is including : ) it > > > is > > > case sensitive in pcs. > > > > > > Regards, > > > Tomas > > > > > > > > > Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > > > > Hi > > > > > > > > I am using the resource agents built from clusterlabs and when > > > > I > > > > add the systemd resource I am getting the below error . > > > > > > > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > > > > interval=2s > > > > Error: Agent 'systemd:haproxy' is not installed or does not > > > > provide valid metadata: Metadata query for systemd:haproxy > > > > failed: > > > > -22, use --force to override > > > > > > > > > > > > > > > > With Regards > > > > Somanath Thilak J > > > > > > > > -Original Message- > > > > From: Kristoffer Grönlund > > > > Sent: Thursday, July 11, 2019 1:22 PM > > > > To: Cluster Labs - All topics related to open-source > > > > clustering > > > > welcomed > > > > Cc: Somanath Jeeva > > > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > > > > > On 2019-07-11 09:31, Somanath Jeeva wrote: > > > > > Hi All, > > > > > > > > > > I am using HAProxy in my environment which I
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi , I am compiling and installing the server on EL 7 server. Also I tried once again with systemd-devel and dbus-devel installed , but still I am unable to use system resources. Is there any other dependency that I have to install. With Regards Somanath Thilak J -Original Message- From: Ken Gaillot Sent: Tuesday, July 30, 2019 12:53 AM To: Somanath Jeeva ; Cluster Labs - All topics related to open-source clustering welcomed ; Tomas Jelinek Subject: Re: [ClusterLabs] Adding HAProxy as a Resource On Fri, 2019-07-26 at 04:46 +, Somanath Jeeva wrote: > Hi Ken, > > I am using the below versions > > Pacemaker - 1.1.16 > Corosync - 2.4.3 > PCS - 0.9 > Resource agents - 3.9.6 > > During running configure I didn’t give any options. I just ran > configure.sh and then did a make install. In that case, it will check whether the build machine has everything needed to support systemd. The main requirement is that the systemd and dbus development libraries (systemd-devel and dbus-devel) are available. > > With Regards > Somanath Thilak J > > -Original Message- > From: Ken Gaillot > Sent: Thursday, July 25, 2019 7:22 PM > To: Cluster Labs - All topics related to open-source clustering > welcomed ; Tomas Jelinek > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > On Thu, 2019-07-25 at 07:23 +, Somanath Jeeva wrote: > > Hi > > > > Systemd unit file is available for haproxy but the pcs resource > > standard command does not list systemd standard . > > > > Also I am not using the pacemaker packages from redhat. I am using > > the packages downloaded from clusterlabs. > > Hi Somanath, > > Which version of pacemaker are you using? > > If you built it from source, did you give any options to the configure > command? > > > > > > > > > With Regards > > Somanath Thilak J > > > > -Original Message- > > From: Tomas Jelinek > > Sent: Monday, July 15, 2019 5:58 PM > > To: users@clusterlabs.org > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > Hi, > > > > Do you have a systemd unit file for haproxy installed? > > Does 'crm_resource --list-standards' print 'systemd'? > > Does 'crm_resource --list-agents systemd' print 'haproxy'? > > Note that when you use full agent name (that is including : ) it is > > case sensitive in pcs. > > > > Regards, > > Tomas > > > > > > Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > > > Hi > > > > > > I am using the resource agents built from clusterlabs and when I > > > add the systemd resource I am getting the below error . > > > > > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > > > interval=2s > > > Error: Agent 'systemd:haproxy' is not installed or does not > > > provide valid metadata: Metadata query for systemd:haproxy failed: > > > -22, use --force to override > > > > > > > > > > > > With Regards > > > Somanath Thilak J > > > > > > -Original Message- > > > From: Kristoffer Grönlund > > > Sent: Thursday, July 11, 2019 1:22 PM > > > To: Cluster Labs - All topics related to open-source clustering > > > welcomed > > > Cc: Somanath Jeeva > > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > > > On 2019-07-11 09:31, Somanath Jeeva wrote: > > > > Hi All, > > > > > > > > I am using HAProxy in my environment which I plan to add to > > > > pacemaker as resource. I see no RA available for that in > > > > resource agent. > > > > > > > > Should I write a new RA or is there any way to add it to > > > > pacemaker as a systemd service. > > > > > > Hello, > > > > > > haproxy works well as a plain systemd service, so you can add it > > > as systemd:haproxy - that is, instead of an ocf: prefix, just put > > > systemd:. > > > > > > If you want the cluster to manage multiple, differently configured > > > instances of haproxy, you might have to either create custom > > > systemd service scripts for each one, or create an agent with > > > parameters. > > > > > > Cheers, > > > Kristoffer > > > > > > > > > > > > > > > > > > > With Regards > > > > Somanath Thilak J > > > > > > > > > > > >
Re: [ClusterLabs] Adding HAProxy as a Resource
On Fri, 2019-07-26 at 04:46 +, Somanath Jeeva wrote: > Hi Ken, > > I am using the below versions > > Pacemaker - 1.1.16 > Corosync - 2.4.3 > PCS - 0.9 > Resource agents - 3.9.6 > > During running configure I didn’t give any options. I just ran > configure.sh and then did a make install. In that case, it will check whether the build machine has everything needed to support systemd. The main requirement is that the systemd and dbus development libraries (systemd-devel and dbus-devel) are available. > > With Regards > Somanath Thilak J > > -Original Message- > From: Ken Gaillot > Sent: Thursday, July 25, 2019 7:22 PM > To: Cluster Labs - All topics related to open-source clustering > welcomed ; Tomas Jelinek > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > On Thu, 2019-07-25 at 07:23 +, Somanath Jeeva wrote: > > Hi > > > > Systemd unit file is available for haproxy but the pcs resource > > standard command does not list systemd standard . > > > > Also I am not using the pacemaker packages from redhat. I am using > > the > > packages downloaded from clusterlabs. > > Hi Somanath, > > Which version of pacemaker are you using? > > If you built it from source, did you give any options to the > configure command? > > > > > > > > > With Regards > > Somanath Thilak J > > > > -Original Message- > > From: Tomas Jelinek > > Sent: Monday, July 15, 2019 5:58 PM > > To: users@clusterlabs.org > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > Hi, > > > > Do you have a systemd unit file for haproxy installed? > > Does 'crm_resource --list-standards' print 'systemd'? > > Does 'crm_resource --list-agents systemd' print 'haproxy'? > > Note that when you use full agent name (that is including : ) it > > is > > case sensitive in pcs. > > > > Regards, > > Tomas > > > > > > Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > > > Hi > > > > > > I am using the resource agents built from clusterlabs and when I > > > add > > > the systemd resource I am getting the below error . > > > > > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > > > interval=2s > > > Error: Agent 'systemd:haproxy' is not installed or does not > > > provide > > > valid metadata: Metadata query for systemd:haproxy failed: -22, > > > use > > > --force to override > > > > > > > > > > > > With Regards > > > Somanath Thilak J > > > > > > -Original Message- > > > From: Kristoffer Grönlund > > > Sent: Thursday, July 11, 2019 1:22 PM > > > To: Cluster Labs - All topics related to open-source clustering > > > welcomed > > > Cc: Somanath Jeeva > > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > > > On 2019-07-11 09:31, Somanath Jeeva wrote: > > > > Hi All, > > > > > > > > I am using HAProxy in my environment which I plan to add to > > > > pacemaker as resource. I see no RA available for that in > > > > resource > > > > agent. > > > > > > > > Should I write a new RA or is there any way to add it to > > > > pacemaker > > > > as a systemd service. > > > > > > Hello, > > > > > > haproxy works well as a plain systemd service, so you can add it > > > as > > > systemd:haproxy - that is, instead of an ocf: prefix, just put > > > systemd:. > > > > > > If you want the cluster to manage multiple, differently > > > configured > > > instances of haproxy, you might have to either create custom > > > systemd > > > service scripts for each one, or create an agent with parameters. > > > > > > Cheers, > > > Kristoffer > > > > > > > > > > > > > > > > > > > With Regards > > > > Somanath Thilak J > > > > > > > > > > > > ___ > > > > Manage your subscription: > > > > > > https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150 > > > > b > > > > c3ba- > > > > bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fma > > > > i > > > > l > > > > man%2Flistinfo%2Fusers > > > > > > > > ClusterLabs home: > > > > > > https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150 > > > > b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2F > > > > www.clusterlabs.org%2F > > > > > > ___ > > > Manage your subscription: > > > https://lists.clusterlabs.org/mailman/listinfo/users > > > > > > ClusterLabs home: https://www.clusterlabs.org/ > > > > > > > ___ > > Manage your subscription: > > https://lists.clusterlabs.org/mailman/listinfo/users > > > > ClusterLabs home: https://www.clusterlabs.org/ > > -- > Ken Gaillot > > -- Ken Gaillot ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi Ken, I am using the below versions Pacemaker - 1.1.16 Corosync - 2.4.3 PCS - 0.9 Resource agents - 3.9.6 During running configure I didn’t give any options. I just ran configure.sh and then did a make install. With Regards Somanath Thilak J -Original Message- From: Ken Gaillot Sent: Thursday, July 25, 2019 7:22 PM To: Cluster Labs - All topics related to open-source clustering welcomed ; Tomas Jelinek Subject: Re: [ClusterLabs] Adding HAProxy as a Resource On Thu, 2019-07-25 at 07:23 +, Somanath Jeeva wrote: > Hi > > Systemd unit file is available for haproxy but the pcs resource > standard command does not list systemd standard . > > Also I am not using the pacemaker packages from redhat. I am using the > packages downloaded from clusterlabs. Hi Somanath, Which version of pacemaker are you using? If you built it from source, did you give any options to the configure command? > > > > With Regards > Somanath Thilak J > > -Original Message- > From: Tomas Jelinek > Sent: Monday, July 15, 2019 5:58 PM > To: users@clusterlabs.org > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > Hi, > > Do you have a systemd unit file for haproxy installed? > Does 'crm_resource --list-standards' print 'systemd'? > Does 'crm_resource --list-agents systemd' print 'haproxy'? > Note that when you use full agent name (that is including : ) it is > case sensitive in pcs. > > Regards, > Tomas > > > Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > > Hi > > > > I am using the resource agents built from clusterlabs and when I add > > the systemd resource I am getting the below error . > > > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > > interval=2s > > Error: Agent 'systemd:haproxy' is not installed or does not provide > > valid metadata: Metadata query for systemd:haproxy failed: -22, use > > --force to override > > > > > > > > With Regards > > Somanath Thilak J > > > > -Original Message----- > > From: Kristoffer Grönlund > > Sent: Thursday, July 11, 2019 1:22 PM > > To: Cluster Labs - All topics related to open-source clustering > > welcomed > > Cc: Somanath Jeeva > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > On 2019-07-11 09:31, Somanath Jeeva wrote: > > > Hi All, > > > > > > I am using HAProxy in my environment which I plan to add to > > > pacemaker as resource. I see no RA available for that in resource > > > agent. > > > > > > Should I write a new RA or is there any way to add it to pacemaker > > > as a systemd service. > > > > Hello, > > > > haproxy works well as a plain systemd service, so you can add it as > > systemd:haproxy - that is, instead of an ocf: prefix, just put > > systemd:. > > > > If you want the cluster to manage multiple, differently configured > > instances of haproxy, you might have to either create custom systemd > > service scripts for each one, or create an agent with parameters. > > > > Cheers, > > Kristoffer > > > > > > > > > > > > > > With Regards > > > Somanath Thilak J > > > > > > > > > ___ > > > Manage your subscription: > > > https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150 > > > b > > > c3ba- > > > bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmai > > > l > > > man%2Flistinfo%2Fusers > > > > > > ClusterLabs home: > > > https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150 > > > b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2F > > > www.clusterlabs.org%2F > > > > ___ > > Manage your subscription: > > https://lists.clusterlabs.org/mailman/listinfo/users > > > > ClusterLabs home: https://www.clusterlabs.org/ > > > > ___ > Manage your subscription: > https://lists.clusterlabs.org/mailman/listinfo/users > > ClusterLabs home: https://www.clusterlabs.org/ -- Ken Gaillot ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
On Thu, 2019-07-25 at 07:23 +, Somanath Jeeva wrote: > Hi > > Systemd unit file is available for haproxy but the pcs resource > standard command does not list systemd standard . > > Also I am not using the pacemaker packages from redhat. I am using > the packages downloaded from clusterlabs. Hi Somanath, Which version of pacemaker are you using? If you built it from source, did you give any options to the configure command? > > > > With Regards > Somanath Thilak J > > -Original Message- > From: Tomas Jelinek > Sent: Monday, July 15, 2019 5:58 PM > To: users@clusterlabs.org > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > Hi, > > Do you have a systemd unit file for haproxy installed? > Does 'crm_resource --list-standards' print 'systemd'? > Does 'crm_resource --list-agents systemd' print 'haproxy'? > Note that when you use full agent name (that is including : ) it is > case sensitive in pcs. > > Regards, > Tomas > > > Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > > Hi > > > > I am using the resource agents built from clusterlabs and when I > > add the systemd resource I am getting the below error . > > > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > > interval=2s > > Error: Agent 'systemd:haproxy' is not installed or does not > > provide > > valid metadata: Metadata query for systemd:haproxy failed: -22, > > use > > --force to override > > > > > > > > With Regards > > Somanath Thilak J > > > > -Original Message- > > From: Kristoffer Grönlund > > Sent: Thursday, July 11, 2019 1:22 PM > > To: Cluster Labs - All topics related to open-source clustering > > welcomed > > Cc: Somanath Jeeva > > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > > > On 2019-07-11 09:31, Somanath Jeeva wrote: > > > Hi All, > > > > > > I am using HAProxy in my environment which I plan to add to > > > pacemaker as resource. I see no RA available for that in resource > > > agent. > > > > > > Should I write a new RA or is there any way to add it to > > > pacemaker as > > > a systemd service. > > > > Hello, > > > > haproxy works well as a plain systemd service, so you can add it as > > systemd:haproxy - that is, instead of an ocf: prefix, just put > > systemd:. > > > > If you want the cluster to manage multiple, differently configured > > instances of haproxy, you might have to either create custom > > systemd service scripts for each one, or create an agent with > > parameters. > > > > Cheers, > > Kristoffer > > > > > > > > > > > > > > With Regards > > > Somanath Thilak J > > > > > > > > > ___ > > > Manage your subscription: > > > https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150 > > > b > > > c3ba- > > > bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmai > > > l > > > man%2Flistinfo%2Fusers > > > > > > ClusterLabs home: > > > https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150 > > > b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2F > > > www.clusterlabs.org%2F > > > > ___ > > Manage your subscription: > > https://lists.clusterlabs.org/mailman/listinfo/users > > > > ClusterLabs home: https://www.clusterlabs.org/ > > > > ___ > Manage your subscription: > https://lists.clusterlabs.org/mailman/listinfo/users > > ClusterLabs home: https://www.clusterlabs.org/ -- Ken Gaillot ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi, It looks like your pacemaker binaries do not support systemd resources. If that is the case then there is nothing pcs can do about that. Pacemaker experts should be able to shed some light on this. Regards, Tomas Dne 25. 07. 19 v 9:23 Somanath Jeeva napsal(a): Hi Systemd unit file is available for haproxy but the pcs resource standard command does not list systemd standard . Also I am not using the pacemaker packages from redhat. I am using the packages downloaded from clusterlabs. With Regards Somanath Thilak J -Original Message- From: Tomas Jelinek Sent: Monday, July 15, 2019 5:58 PM To: users@clusterlabs.org Subject: Re: [ClusterLabs] Adding HAProxy as a Resource Hi, Do you have a systemd unit file for haproxy installed? Does 'crm_resource --list-standards' print 'systemd'? Does 'crm_resource --list-agents systemd' print 'haproxy'? Note that when you use full agent name (that is including : ) it is case sensitive in pcs. Regards, Tomas Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): Hi I am using the resource agents built from clusterlabs and when I add the systemd resource I am getting the below error . $ sudo pcs resource create HAPROXY systemd:haproxy op monitor interval=2s Error: Agent 'systemd:haproxy' is not installed or does not provide valid metadata: Metadata query for systemd:haproxy failed: -22, use --force to override With Regards Somanath Thilak J -Original Message- From: Kristoffer Grönlund Sent: Thursday, July 11, 2019 1:22 PM To: Cluster Labs - All topics related to open-source clustering welcomed Cc: Somanath Jeeva Subject: Re: [ClusterLabs] Adding HAProxy as a Resource On 2019-07-11 09:31, Somanath Jeeva wrote: Hi All, I am using HAProxy in my environment which I plan to add to pacemaker as resource. I see no RA available for that in resource agent. Should I write a new RA or is there any way to add it to pacemaker as a systemd service. Hello, haproxy works well as a plain systemd service, so you can add it as systemd:haproxy - that is, instead of an ocf: prefix, just put systemd:. If you want the cluster to manage multiple, differently configured instances of haproxy, you might have to either create custom systemd service scripts for each one, or create an agent with parameters. Cheers, Kristoffer With Regards Somanath Thilak J ___ Manage your subscription: https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150 b c3ba-bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmai l man%2Flistinfo%2Fusers ClusterLabs home: https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150 b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2Fwww.clusterlabs.org%2F ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/ ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi Systemd unit file is available for haproxy but the pcs resource standard command does not list systemd standard . Also I am not using the pacemaker packages from redhat. I am using the packages downloaded from clusterlabs. With Regards Somanath Thilak J -Original Message- From: Tomas Jelinek Sent: Monday, July 15, 2019 5:58 PM To: users@clusterlabs.org Subject: Re: [ClusterLabs] Adding HAProxy as a Resource Hi, Do you have a systemd unit file for haproxy installed? Does 'crm_resource --list-standards' print 'systemd'? Does 'crm_resource --list-agents systemd' print 'haproxy'? Note that when you use full agent name (that is including : ) it is case sensitive in pcs. Regards, Tomas Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): > Hi > > I am using the resource agents built from clusterlabs and when I add the > systemd resource I am getting the below error . > > $ sudo pcs resource create HAPROXY systemd:haproxy op monitor > interval=2s > Error: Agent 'systemd:haproxy' is not installed or does not provide > valid metadata: Metadata query for systemd:haproxy failed: -22, use > --force to override > > > > With Regards > Somanath Thilak J > > -Original Message- > From: Kristoffer Grönlund > Sent: Thursday, July 11, 2019 1:22 PM > To: Cluster Labs - All topics related to open-source clustering > welcomed > Cc: Somanath Jeeva > Subject: Re: [ClusterLabs] Adding HAProxy as a Resource > > On 2019-07-11 09:31, Somanath Jeeva wrote: >> Hi All, >> >> I am using HAProxy in my environment which I plan to add to >> pacemaker as resource. I see no RA available for that in resource agent. >> >> Should I write a new RA or is there any way to add it to pacemaker as >> a systemd service. > > Hello, > > haproxy works well as a plain systemd service, so you can add it as > systemd:haproxy - that is, instead of an ocf: prefix, just put systemd:. > > If you want the cluster to manage multiple, differently configured instances > of haproxy, you might have to either create custom systemd service scripts > for each one, or create an agent with parameters. > > Cheers, > Kristoffer > >> >> >> >> With Regards >> Somanath Thilak J >> >> >> ___ >> Manage your subscription: >> https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150 >> b >> c3ba-bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmai >> l >> man%2Flistinfo%2Fusers >> >> ClusterLabs home: >> https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150 >> b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2Fwww.clusterlabs.org%2F > > ___ > Manage your subscription: > https://lists.clusterlabs.org/mailman/listinfo/users > > ClusterLabs home: https://www.clusterlabs.org/ > ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi, Do you have a systemd unit file for haproxy installed? Does 'crm_resource --list-standards' print 'systemd'? Does 'crm_resource --list-agents systemd' print 'haproxy'? Note that when you use full agent name (that is including : ) it is case sensitive in pcs. Regards, Tomas Dne 11. 07. 19 v 10:14 Somanath Jeeva napsal(a): Hi I am using the resource agents built from clusterlabs and when I add the systemd resource I am getting the below error . $ sudo pcs resource create HAPROXY systemd:haproxy op monitor interval=2s Error: Agent 'systemd:haproxy' is not installed or does not provide valid metadata: Metadata query for systemd:haproxy failed: -22, use --force to override With Regards Somanath Thilak J -Original Message- From: Kristoffer Grönlund Sent: Thursday, July 11, 2019 1:22 PM To: Cluster Labs - All topics related to open-source clustering welcomed Cc: Somanath Jeeva Subject: Re: [ClusterLabs] Adding HAProxy as a Resource On 2019-07-11 09:31, Somanath Jeeva wrote: Hi All, I am using HAProxy in my environment which I plan to add to pacemaker as resource. I see no RA available for that in resource agent. Should I write a new RA or is there any way to add it to pacemaker as a systemd service. Hello, haproxy works well as a plain systemd service, so you can add it as systemd:haproxy - that is, instead of an ocf: prefix, just put systemd:. If you want the cluster to manage multiple, differently configured instances of haproxy, you might have to either create custom systemd service scripts for each one, or create an agent with parameters. Cheers, Kristoffer With Regards Somanath Thilak J ___ Manage your subscription: https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150b c3ba-bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmail man%2Flistinfo%2Fusers ClusterLabs home: https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150b c3ba-5da4e39ebe912cdf=1=https%3A%2F%2Fwww.clusterlabs.org%2F ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/ ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
Hi I am using the resource agents built from clusterlabs and when I add the systemd resource I am getting the below error . $ sudo pcs resource create HAPROXY systemd:haproxy op monitor interval=2s Error: Agent 'systemd:haproxy' is not installed or does not provide valid metadata: Metadata query for systemd:haproxy failed: -22, use --force to override With Regards Somanath Thilak J -Original Message- From: Kristoffer Grönlund Sent: Thursday, July 11, 2019 1:22 PM To: Cluster Labs - All topics related to open-source clustering welcomed Cc: Somanath Jeeva Subject: Re: [ClusterLabs] Adding HAProxy as a Resource On 2019-07-11 09:31, Somanath Jeeva wrote: > Hi All, > > I am using HAProxy in my environment which I plan to add to pacemaker > as resource. I see no RA available for that in resource agent. > > Should I write a new RA or is there any way to add it to pacemaker as > a systemd service. Hello, haproxy works well as a plain systemd service, so you can add it as systemd:haproxy - that is, instead of an ocf: prefix, just put systemd:. If you want the cluster to manage multiple, differently configured instances of haproxy, you might have to either create custom systemd service scripts for each one, or create an agent with parameters. Cheers, Kristoffer > > > > With Regards > Somanath Thilak J > > > ___ > Manage your subscription: > https://protect2.fireeye.com/url?k=28466b53-74926310-28462bc8-86a1150b > c3ba-bb674f3a9b557cbd=1=https%3A%2F%2Flists.clusterlabs.org%2Fmail > man%2Flistinfo%2Fusers > > ClusterLabs home: > https://protect2.fireeye.com/url?k=4c5edd73-108ad530-4c5e9de8-86a1150b > c3ba-5da4e39ebe912cdf=1=https%3A%2F%2Fwww.clusterlabs.org%2F ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
Re: [ClusterLabs] Adding HAProxy as a Resource
On 2019-07-11 09:31, Somanath Jeeva wrote: Hi All, I am using HAProxy in my environment which I plan to add to pacemaker as resource. I see no RA available for that in resource agent. Should I write a new RA or is there any way to add it to pacemaker as a systemd service. Hello, haproxy works well as a plain systemd service, so you can add it as systemd:haproxy - that is, instead of an ocf: prefix, just put systemd:. If you want the cluster to manage multiple, differently configured instances of haproxy, you might have to either create custom systemd service scripts for each one, or create an agent with parameters. Cheers, Kristoffer With Regards Somanath Thilak J ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/ ___ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/