[Pacemaker] Pacemaker and LDAP (389 Directory Service)
Serge Dubrouski
sergeyfd at gmail.com
Mon Jun 27 21:42:02 UTC 2011
On Mon, Jun 27, 2011 at 3:33 PM, veghead <sean at studyblue.com> wrote:
> Sorry for the questions. Some days my brain is just slow. :)
>
> Serge Dubrouski <sergeyfd at ...> writes:
> > If you want to make your LDAP independent from IP just remove your
> > collocation:colocation ldap-with-eip inf: elastic_ip ldap-clone
>
> Is that really what I want to do? I mean, I need the elastic ip assigned to
> ~one~ of the machines... And if LDAP fails on that machine, I need
> Pacemaker to
> start the Elastic IP on the other machine.
>
> If I remove the co-location, won't the elastic_ip resource just stay where
> it
> is? Regardless of what happens to LDAP?
>
Right. That's why I think that you don't really want to do it. You have to
make sure that your IP is up where you LDAP is up.
>
> > But I'd rather try to find out why monitoring for IP fails. May bet
> > it just needs an increased timeout on monitor operation, though it
> > looks like you've already increased it. What's in your log files
> > when that monitor fails?
>
> Originally, I had the monitor on the elastic_ip resource set to 10 seconds.
> The
> error in the logs was:
>
> ---snip---
> pengine: [16980]: notice: unpack_rsc_op: Operation elastic_ip_monitor_0
> found
> resource elastic_ip active on ldap1.example.ec2
> pengine: [16980]: WARN: unpack_rsc_op: Processing failed op
> elastic_ip_monitor_10000 on ldap1.example.ec2: unknown exec error (-2)
> pengine: [16980]: WARN: unpack_rsc_op: Processing failed op
> elastic_ip_stop_0 on
> ldap1.example.ec2: unknown exec error (-2)
> pengine: [16980]: info: native_add_running: resource elastic_ip isnt
> managed
>
Why it's "unmanaged"?
> pengine: [16980]: notice: unpack_rsc_op: Operation ldap:1_monitor_0 found
> resource ldap:1 active on ldap2.example.ec2
> pengine: [16980]: WARN: unpack_rsc_op: Processing failed op
> elastic_ip_start_0
> on ldap2.example.ec2: unknown exec error (-2)
> pengine: [16980]: notice: native_print: elastic_ip (lsb:elastic-ip):
> Started ldap1.example.ec2 (unmanaged) FAILED
> pengine: [16980]: notice: clone_print: Clone Set: ldap-clone
> pengine: [16980]: notice: short_print: Stopped: [ ldap:0 ldap:1 ]
> pengine: [16980]: info: get_failcount: elastic_ip has failed INFINITY times
> on
> ldap1.example.ec2
> pengine: [16980]: WARN: common_apply_stickiness: Forcing elastic_ip away
> from
> ldap1.example.ec2 after 1000000 failures (max=1000000)
> pengine: [16980]: info: get_failcount: elastic_ip has failed INFINITY times
> on
> ldap2.example.ec2
> pengine: [16980]: WARN: common_apply_stickiness: Forcing elastic_ip away
> from
> ldap2.example.ec2 after 1000000 failures (max=1000000)
> pengine: [16980]: info: native_color: Unmanaged resource elastic_ip
> allocated to
> 'nowhere': failed
> pengine: [16980]: notice: RecurringOp: Start recurring monitor (15s) for
> ldap:0
> on ldap1.example.ec2
> pengine: [16980]: notice: RecurringOp: Start recurring monitor (15s) for
> ldap:1
> on ldap2.example.ec2
> pengine: [16980]: notice: LogActions: Leave resource elastic_ip
> (Started unmanaged)
> pengine: [16980]: notice: LogActions: Start ldap:0
> (ldap1.example.ec2)
> pengine: [16980]: notice: LogActions: Start ldap:1
> (ldap2.example.ec2)
> ---snip---
>
> Now that I have set the monitor interval for the elastic_ip resource to
> "0", it
> keeps thinking everything is either stopped or should be stopped:
>
You can't have monitoring interval set to 0. It makes no sense and actually
reserved for probs AFAIK.
>
> ---snip---
> pengine: [7287]: notice: unpack_rsc_op: Operation elastic_ip_monitor_0
> found
> resource elastic_ip active on ldap1.example.ec2
> pengine: [7287]: notice: unpack_rsc_op: Operation ldap:0_monitor_0 found
> resource ldap:0 active on ldap2.example.ec2
> pengine: [7287]: notice: native_print: elastic_ip (lsb:elastic-ip):
> Stopped
> pengine: [7287]: notice: clone_print: Clone Set: ldap-clone
> pengine: [7287]: notice: short_print: Stopped: [ ldap:0 ldap:1 ]
> pengine: [7287]: notice: LogActions: Leave resource elastic_ip (Stopped)
> pengine: [7287]: notice: LogActions: Leave resource ldap:0 (Stopped)
> pengine: [7287]: notice: LogActions: Leave resource ldap:1 (Stopped)
> ---snip---
>
> Very strange.
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
--
Serge Dubrouski.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110627/5a8ae2bb/attachment.htm>
More information about the Pacemaker
mailing list