Discussion:
[Pacemaker] ocf:lvm2:clvmd resource agent
Andrew Daugherity
2014-02-12 22:56:18 UTC
Permalink
I noticed in recent discussions on this list that this RA is apparently a SUSE thing and not upstreamed into resource-agents. This was news to me, but apparently is indeed the case.

I guess it's SUSE's decision whether to push it upstream but IMO that would be the best way to go, so it could become the standard "by-the-book" way to use clvmd with pacemaker. Right now it lives in the lvm2-clvm RPM, which is in the SLES 11 HAE add-on and also in the standard OSS repo for openSUSE [1].

The rest of this message is directed more at the SUSE developers & engineers who read this list; hopefully this is a more eyeballs = bugs are shallow thing than an annoyance...


For now, is there a github repo or equivalent for this package, or do you just want people to file bugs with openSUSE/support requests with Novell? Reason I ask is, I noticed lots of log spamming by clvmd after upgrading from SLES 11 SP2 to SP3. Indeed clvmd is now running with the '-d2' option, which is the new default:
====
# Parameter defaults
: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
: ${OCF_RESKEY_daemon_timeout:="80"}
: ${OCF_RESKEY_daemon_options:="-d2"}
====
In SP2 it read ': ${OCF_RESKEY_daemon_options:="-d0"}'.

After adjusting my clvmd cluster resource to silence this, by adding daemon_options like so:
====
primitive clvm ocf:lvm2:clvmd \
params daemon_options="-d0" \
op start interval="0" timeout="90" \
op stop interval="0" timeout="100"
====
syslog is back to normal.

In the RPM changelog it looks like this was intentional, but the bug in question is marked private, so I have no idea why this was done:
====
* Tue Jan 15 2013 dmzhang at suse.com
- clvmd update to 2.20.98,fix colletive bugs.
- fate#314367, cLVM should support option "mirrored"
in a clustered environment
- Fix debugging level set in clvmd_set_debug by using the correct
variable (bnc#785467),change default -d0 to -d2
====
Can someone who has access explain why full -d2 debug mode is now the default? This doesn't seem like a sensible default.


Thanks,

Andrew Daugherity
Systems Analyst
Division of Research, Texas A&M University


[1] https://build.opensuse.org/package/show?project=openSUSE%3AFactory&package=lvm2
Specifically, see clvmd.ocf.
David Vossel
2014-02-12 23:52:14 UTC
Permalink
----- Original Message -----
From: "Andrew Daugherity" <adaugherity at tamu.edu>
To: "<pacemaker at oss.clusterlabs.org>" <pacemaker at oss.clusterlabs.org>
Sent: Wednesday, February 12, 2014 4:56:18 PM
Subject: [Pacemaker] ocf:lvm2:clvmd resource agent
I noticed in recent discussions on this list that this RA is apparently a
SUSE thing and not upstreamed into resource-agents. This was news to me,
but apparently is indeed the case.
I've just introduced (as of today) a clvmd agent for review upstream. It is not the SUSE agent. I would like to encourage SUSE to merge their features into this agent and support the upstream effort here.

https://github.com/ClusterLabs/resource-agents/pull/382
I guess it's SUSE's decision whether to push it upstream but IMO that would
be the best way to go, so it could become the standard "by-the-book" way to
use clvmd with pacemaker. Right now it lives in the lvm2-clvm RPM, which is
in the SLES 11 HAE add-on and also in the standard OSS repo for openSUSE
[1].
The rest of this message is directed more at the SUSE developers & engineers
who read this list; hopefully this is a more eyeballs = bugs are shallow
thing than an annoyance...
For now, is there a github repo or equivalent for this package, or do you
just want people to file bugs with openSUSE/support requests with Novell?
Reason I ask is, I noticed lots of log spamming by clvmd after upgrading
from SLES 11 SP2 to SP3. Indeed clvmd is now running with the '-d2' option,
====
# Parameter defaults
: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
: ${OCF_RESKEY_daemon_timeout:="80"}
: ${OCF_RESKEY_daemon_options:="-d2"}
====
In SP2 it read ': ${OCF_RESKEY_daemon_options:="-d0"}'.
After adjusting my clvmd cluster resource to silence this, by adding
====
primitive clvm ocf:lvm2:clvmd \
params daemon_options="-d0" \
op start interval="0" timeout="90" \
op stop interval="0" timeout="100"
====
syslog is back to normal.
In the RPM changelog it looks like this was intentional, but the bug in
====
* Tue Jan 15 2013 dmzhang at suse.com
- clvmd update to 2.20.98,fix colletive bugs.
- fate#314367, cLVM should support option "mirrored"
in a clustered environment
- Fix debugging level set in clvmd_set_debug by using the correct
variable (bnc#785467),change default -d0 to -d2
====
Can someone who has access explain why full -d2 debug mode is now the
default? This doesn't seem like a sensible default.
Thanks,
Andrew Daugherity
Systems Analyst
Division of Research, Texas A&M University
[1]
https://build.opensuse.org/package/show?project=openSUSE%3AFactory&package=lvm2
Specifically, see clvmd.ocf.
_______________________________________________
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://bugs.clusterlabs.org
Andrew Beekhof
2014-02-16 22:36:45 UTC
Permalink
Post by Andrew Daugherity
I noticed in recent discussions on this list that this RA is apparently a SUSE thing and not upstreamed into resource-agents. This was news to me, but apparently is indeed the case.
I guess it's SUSE's decision whether to push it upstream but IMO that would be the best way to go, so it could become the standard "by-the-book" way to use clvmd with pacemaker.
In SUSE's defence, there have occasionally been pushes for the package XYZ to ship an OCF agent for XYZ.
This is likely what happened here, nothing nefarious. So the agent is upstream, just in a different upstream.
Post by Andrew Daugherity
Right now it lives in the lvm2-clvm RPM, which is in the SLES 11 HAE add-on and also in the standard OSS repo for openSUSE [1].
The rest of this message is directed more at the SUSE developers & engineers who read this list; hopefully this is a more eyeballs = bugs are shallow thing than an annoyance...
====
# Parameter defaults
: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
: ${OCF_RESKEY_daemon_timeout:="80"}
: ${OCF_RESKEY_daemon_options:="-d2"}
====
In SP2 it read ': ${OCF_RESKEY_daemon_options:="-d0"}'.
====
primitive clvm ocf:lvm2:clvmd \
params daemon_options="-d0" \
op start interval="0" timeout="90" \
op stop interval="0" timeout="100"
====
syslog is back to normal.
====
* Tue Jan 15 2013 dmzhang at suse.com
- clvmd update to 2.20.98,fix colletive bugs.
- fate#314367, cLVM should support option "mirrored"
in a clustered environment
- Fix debugging level set in clvmd_set_debug by using the correct
variable (bnc#785467),change default -d0 to -d2
====
Can someone who has access explain why full -d2 debug mode is now the default? This doesn't seem like a sensible default.
Thanks,
Andrew Daugherity
Systems Analyst
Division of Research, Texas A&M University
[1] https://build.opensuse.org/package/show?project=openSUSE%3AFactory&package=lvm2
Specifically, see clvmd.ocf.
_______________________________________________
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://bugs.clusterlabs.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20140217/4bd84daf/attachment-0001.sig>
Loading...