Discussion:
[Linux-ha-dev] resource-agents 3.9.6 released
Dejan Muhamedagic
2015-01-30 20:52:49 UTC
Permalink
Hello,

We've tagged today (Jan 30) a new stable resource-agents release
(3.9.6) in the upstream repository.

Big thanks go to all contributors! Needless to say, without you
this release would not be possible.

It has been almost two years since the release v3.9.5, hence the
number of changes is quite big. Still, every precaution has been
taken not to introduce regressions.

These are the most significant new features in the linux-ha set:

- new resource agents:

clvm
dnsupdate
docker
galera
iface-bridge
iface-vlan
kamailio
nfsnotify
sg_persist
vsftpd
zabbixserver

- the drbd agent was removed (it has been deprecated since quite
some time in favour of ocf:linbit:drbd)

The full list of changes for the linux-ha RA set is available in
ChangeLog
(https://github.com/ClusterLabs/resource-agents/blob/v3.9.6/ChangeLog)

Use the agents introduced with this release with due care: they
probably haven't got a lot of field testing.

Please upgrade at the earliest opportunity.

Best,

The resource-agents maintainers
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Krzysztof Gajdemski
2015-02-06 13:10:57 UTC
Permalink
Hello,
Post by Dejan Muhamedagic
We've tagged today (Jan 30) a new stable resource-agents release
(3.9.6) in the upstream repository.
[ ... ]
Post by Dejan Muhamedagic
clvm
dnsupdate
docker
galera
iface-bridge
iface-vlan
kamailio
nfsnotify
sg_persist
vsftpd
zabbixserver
Just a small correction, zabbixserver (written by me in 2012) was
introduced in release 3.9.4, and has remained virtually unchanged since
then.

Regards,

k.
--
Krzysztof Gajdemski | songo (at) debian.org.pl | KG4751-RIPE
Registered Linux User #133457 | BLUG Registered Member #0005
PGP key at: http://s.debian.org.pl/gpg/gpgkey * ID: 3C38979D
Szanuję was wszystkich, którzy pozostajecie w cieniu - Snerg
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Dejan Muhamedagic
2015-02-06 15:12:26 UTC
Permalink
Hi Krzysztof,
Post by Dejan Muhamedagic
Hello,
Post by Dejan Muhamedagic
We've tagged today (Jan 30) a new stable resource-agents release
(3.9.6) in the upstream repository.
[ ... ]
Post by Dejan Muhamedagic
clvm
dnsupdate
docker
galera
iface-bridge
iface-vlan
kamailio
nfsnotify
sg_persist
vsftpd
zabbixserver
Just a small correction, zabbixserver (written by me in 2012) was
introduced in release 3.9.4, and has remained virtually unchanged since
then.
Oh, I think I noticed that too, but then failed to remove it from
the list. Thanks for the correction.

Cheers,

Dejan
Post by Dejan Muhamedagic
Regards,
k.
--
Krzysztof Gajdemski | songo (at) debian.org.pl | KG4751-RIPE
Registered Linux User #133457 | BLUG Registered Member #0005
PGP key at: http://s.debian.org.pl/gpg/gpgkey * ID: 3C38979D
Szanuję was wszystkich, którzy pozostajecie w cieniu - Snerg
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
Lars Ellenberg
2015-02-12 00:29:35 UTC
Permalink
Post by Dejan Muhamedagic
Hello,
We've tagged today (Jan 30) a new stable resource-agents release
(3.9.6) in the upstream repository.
Big thanks go to all contributors! Needless to say, without you
this release would not be possible.
Big thanks to Dejan.
Who once again finally did,
what I meant to do in late 2013 already, but simply pushed off
for over a year (and no-one else stepped up, either...)

So: Thank You.

I just today noticed that apparently some resource agents
accept and use parameters that are not documented in their meta data.

I now came up with a bash two-liner,
which likely still produces a lot of noise,
because it does not take into account that some agents
"source" additional helper files.

But here is the list:

--- used, but not described
+++ described, but apparently not used.

EvmsSCC +OCF_RESKEY_ignore_deprecation
Evmsd +OCF_RESKEY_ignore_deprecation

?? intentionally undocumented ??

IPaddr +OCF_RESKEY_iflabel
IPaddr -OCF_RESKEY_netmask

Not sure.


IPaddr2 -OCF_RESKEY_netmask

intentional, backward compat, quoting the agent:
# Note: We had a version out there for a while which used
# netmask instead of cidr_netmask. Don't remove this aliasing code!


Please help review these:

IPsrcaddr -OCF_RESKEY_ip
IPsrcaddr +OCF_RESKEY_cidr_netmask
IPv6addr.c -OCF_RESKEY_cidr_netmask
IPv6addr.c -OCF_RESKEY_ipv6addr
IPv6addr.c -OCF_RESKEY_nic
LinuxSCSI +OCF_RESKEY_ignore_deprecation
Squid -OCF_RESKEY_squid_confirm_trialcount
Squid -OCF_RESKEY_squid_opts
Squid -OCF_RESKEY_squid_suspend_trialcount
SysInfo -OCF_RESKEY_clone
WAS6 -OCF_RESKEY_profileName
apache +OCF_RESKEY_use_ipv6
conntrackd -OCF_RESKEY_conntrackd
dnsupdate -OCF_RESKEY_opts
dnsupdate +OCF_RESKEY_nsupdate_opts
docker -OCF_RESKEY_container
ethmonitor -OCF_RESKEY_check_level
ethmonitor -OCF_RESKEY_multiplicator

galera +OCF_RESKEY_additional_parameters
galera +OCF_RESKEY_binary
galera +OCF_RESKEY_client_binary
galera +OCF_RESKEY_config
galera +OCF_RESKEY_datadir
galera +OCF_RESKEY_enable_creation
galera +OCF_RESKEY_group
galera +OCF_RESKEY_log
galera +OCF_RESKEY_pid
galera +OCF_RESKEY_socket
galera +OCF_RESKEY_user

Probably all bogus, it source "mysql-common.sh".
Someone please have a more detailed look.


iSCSILogicalUnit +OCF_RESKEY_product_id
iSCSILogicalUnit +OCF_RESKEY_vendor_id

false positive

surprise: florian learned some wizardry back then ;-)
for var in scsi_id scsi_sn vendor_id product_id; do
envar="OCF_RESKEY_${var}"
if [ -n "${!envar}" ]; then
params="${params} ${var}=${!envar}"
fi
done

If such magic is used elsewhere,
that could mask "Used but not documented" cases.


iface-bridge -OCF_RESKEY_multicast_querier

!! Yep, that needs to be documented!

mysql-proxy -OCF_RESKEY_group
mysql-proxy -OCF_RESKEY_user

Oops, apparently my magic scriptlet below needs to learn to
ignore script comments...

named -OCF_RESKEY_rootdir

!! Probably a bug:
named_rootdir is documented.


nfsserver -OCF_RESKEY_nfs_notify_cmd

!! Yep, that needs to be documented!


nginx -OCF_RESKEY_client
nginx +OCF_RESKEY_testclient
!! client is used, but not documented,
!! testclient is documented, but unused...
Bug?

nginx -OCF_RESKEY_nginx

Bogus. Needs to be dropped from leading comment block.

oracle -OCF_RESKEY_tns_admin

!! Yep, that needs to be documented!

pingd +OCF_RESKEY_ignore_deprecation

?? intentionally undocumented ??

pingd -OCF_RESKEY_update

!! Yep, is undocumented.

sg_persist +OCF_RESKEY_binary
sg_persist -OCF_RESKEY_sg_persist_binary

!! BUG? binary vs sg_persist_binary

varnish -OCF_RESKEY_binary

!! Yep, is undocumented.


Please someone find the time to prepare pull requests
to fix these...

Thanks,

Lars

-----------------------------------------
List was generated by below scriptlet,
which can be improved. The improved version should probably be part of
a "unit test" check, when building resource-agents.

# In the git checkout of the resource agents,
# get a list of files that look like actual agent scripts.
cd heartbeat
A=$(git ls-files | xargs grep -s -l '<resource-agent ')

# and for each of these files,
# diff the list of OCF_RESKEY_* occurrences
# with the list of <parameter name="*" ones.
for a in $A; do
diff -U0 \
<( grep -h -o 'OCF_RESKEY_[[:alnum:]_]*' $a |
sort -u |
grep -v -e '_default$' -e 'OCF_RESKEY_$' -e 'OCF_RESKEY_CRM_meta' ) \
<( grep -h '<parameter ' $a |
sed -ne 's/^.*name="\([^"]*\)".*$/OCF_RESKEY_\1/p' |
sort -u) |
sed -e "/^@@\|^---\|^[+][+][+]/d;s#^#$a\t#";
done | column -t
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
Dejan Muhamedagic
2015-02-16 15:02:47 UTC
Permalink
Hi Lars,
Post by Lars Ellenberg
Post by Dejan Muhamedagic
Hello,
We've tagged today (Jan 30) a new stable resource-agents release
(3.9.6) in the upstream repository.
Big thanks go to all contributors! Needless to say, without you
this release would not be possible.
Big thanks to Dejan.
Who once again finally did,
what I meant to do in late 2013 already, but simply pushed off
for over a year (and no-one else stepped up, either...)
So: Thank You.
Thanks. But your contributions, which were numerous, are
certainly appreciated.
Post by Lars Ellenberg
I just today noticed that apparently some resource agents
accept and use parameters that are not documented in their meta data.
I now came up with a bash two-liner,
which likely still produces a lot of noise,
because it does not take into account that some agents
"source" additional helper files.
--- used, but not described
This is bad and needs to be fixed.
Post by Lars Ellenberg
+++ described, but apparently not used.
Just drop?
Post by Lars Ellenberg
EvmsSCC +OCF_RESKEY_ignore_deprecation
Evmsd +OCF_RESKEY_ignore_deprecation
?? intentionally undocumented ??
No idea, but I doubt that anybody out there is using evms.
Post by Lars Ellenberg
IPaddr +OCF_RESKEY_iflabel
According to the history, this was never used.
Post by Lars Ellenberg
IPaddr -OCF_RESKEY_netmask
This got renamed to cidr_netmask, in an effort to make it more
consistent with IPaddr2 :) The same as what you found below.
Post by Lars Ellenberg
Not sure.
IPaddr2 -OCF_RESKEY_netmask
# Note: We had a version out there for a while which used
# netmask instead of cidr_netmask. Don't remove this aliasing code!
IPsrcaddr -OCF_RESKEY_ip
IPsrcaddr +OCF_RESKEY_cidr_netmask
IPv6addr.c -OCF_RESKEY_cidr_netmask
IPv6addr.c -OCF_RESKEY_ipv6addr
IPv6addr.c -OCF_RESKEY_nic
LinuxSCSI +OCF_RESKEY_ignore_deprecation
Squid -OCF_RESKEY_squid_confirm_trialcount
Squid -OCF_RESKEY_squid_opts
Squid -OCF_RESKEY_squid_suspend_trialcount
SysInfo -OCF_RESKEY_clone
WAS6 -OCF_RESKEY_profileName
apache +OCF_RESKEY_use_ipv6
This is used in http-mon.sh, sourced by apache.
Post by Lars Ellenberg
conntrackd -OCF_RESKEY_conntrackd
This one got renamed to binary, so it's OK. I can still recall
the discussion--IMO not a biggie to have various RA differently
named parameters for the program (but at the time the other party
prevailed :)
Post by Lars Ellenberg
dnsupdate -OCF_RESKEY_opts
dnsupdate +OCF_RESKEY_nsupdate_opts
Bug? lmb? OK, just fixed it. It should be only the latter.
Post by Lars Ellenberg
docker -OCF_RESKEY_container
ethmonitor -OCF_RESKEY_check_level
ethmonitor -OCF_RESKEY_multiplicator
galera +OCF_RESKEY_additional_parameters
galera +OCF_RESKEY_binary
galera +OCF_RESKEY_client_binary
galera +OCF_RESKEY_config
galera +OCF_RESKEY_datadir
galera +OCF_RESKEY_enable_creation
galera +OCF_RESKEY_group
galera +OCF_RESKEY_log
galera +OCF_RESKEY_pid
galera +OCF_RESKEY_socket
galera +OCF_RESKEY_user
Probably all bogus, it source "mysql-common.sh".
Someone please have a more detailed look.
iSCSILogicalUnit +OCF_RESKEY_product_id
iSCSILogicalUnit +OCF_RESKEY_vendor_id
false positive
surprise: florian learned some wizardry back then ;-)
for var in scsi_id scsi_sn vendor_id product_id; do
envar="OCF_RESKEY_${var}"
if [ -n "${!envar}" ]; then
params="${params} ${var}=${!envar}"
fi
done
If such magic is used elsewhere,
that could mask "Used but not documented" cases.
iface-bridge -OCF_RESKEY_multicast_querier
!! Yep, that needs to be documented!
mysql-proxy -OCF_RESKEY_group
mysql-proxy -OCF_RESKEY_user
Oops, apparently my magic scriptlet below needs to learn to
ignore script comments...
named -OCF_RESKEY_rootdir
named_rootdir is documented.
nfsserver -OCF_RESKEY_nfs_notify_cmd
!! Yep, that needs to be documented!
nginx -OCF_RESKEY_client
nginx +OCF_RESKEY_testclient
!! client is used, but not documented,
!! testclient is documented, but unused...
Bug?
Yeah. Yet another one of the kind.
Post by Lars Ellenberg
nginx -OCF_RESKEY_nginx
Bogus. Needs to be dropped from leading comment block.
oracle -OCF_RESKEY_tns_admin
!! Yep, that needs to be documented!
Nope. tns_admin is not used in oracle but in oralsnr, but the
two share some initialization stuff. Copy&paste issue. Will fix
that too.
Post by Lars Ellenberg
pingd +OCF_RESKEY_ignore_deprecation
?? intentionally undocumented ??
This deprecation thing seems to be some kind of standard thingie
and it is perused in ocf_deprecated(), looks like Florian's thing
too :)
Post by Lars Ellenberg
pingd -OCF_RESKEY_update
!! Yep, is undocumented.
sg_persist +OCF_RESKEY_binary
sg_persist -OCF_RESKEY_sg_persist_binary
!! BUG? binary vs sg_persist_binary
Fixed.
Post by Lars Ellenberg
varnish -OCF_RESKEY_binary
!! Yep, is undocumented.
Please someone find the time to prepare pull requests
to fix these...
This would probably get more attention if posted as an issue at
github with a title "Please help improve RA meta data".
Otherwise, I doubt that we're going to get volunteers here to
write documentation ;-)

Cheers,

Dejan
Post by Lars Ellenberg
Thanks,
Lars
-----------------------------------------
List was generated by below scriptlet,
which can be improved. The improved version should probably be part of
a "unit test" check, when building resource-agents.
# In the git checkout of the resource agents,
# get a list of files that look like actual agent scripts.
cd heartbeat
A=$(git ls-files | xargs grep -s -l '<resource-agent ')
# and for each of these files,
# diff the list of OCF_RESKEY_* occurrences
# with the list of <parameter name="*" ones.
for a in $A; do
diff -U0 \
<( grep -h -o 'OCF_RESKEY_[[:alnum:]_]*' $a |
sort -u |
grep -v -e '_default$' -e 'OCF_RESKEY_$' -e 'OCF_RESKEY_CRM_meta' ) \
<( grep -h '<parameter ' $a |
sed -ne 's/^.*name="\([^"]*\)".*$/OCF_RESKEY_\1/p' |
sort -u) |
done | column -t
_______________________________________________________
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-***@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Loading...