Re: [ClusterLabs] resource-agents v4.2.0

2018-10-24 Thread Kristoffer Grönlund
On Wed, 2018-10-24 at 10:21 +0200, Oyvind Albrigtsen wrote:
> ClusterLabs is happy to announce resource-agents v4.2.0.
> Source code is available at:
> https://github.com/ClusterLabs/resource-agents/releases/tag/v4.2.0
> 

[snip]

>   - ocf.py: new Python library and dev guide
> 

I just wanted to highlight the Python library since I think it can make
agent development a lot easier in the future, especially as we expand
the library with more utilities that are commonly needed when writing
agents.

Any agents written in Python should (for now at least) be compatible
both with Python 2.7+ and Python 3.3+. We still need to expand the CI
to actually verify that agents do support these versions, so anyone who
would like to help out improving the test setup is more than welcome to
do so :)

The biggest example of an agent using it that we have now is the azure-
events agent [1], so I would recommend anyone interested in working on
new agents to take a look at that. For a more compact example, I wrote
a version of the Dummy resource agent using the ocf.py library and put
it in a gist [2], and then there is a small example in the document
describing the library and how to use it [3].

[1]: https://github.com/ClusterLabs/resource-agents/blob/master/heartbe
at/azure-events.in
[2]: https://gist.github.com/krig/6676d0ae065fd852fac8b445410e1c95
[3]: https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev
-guides/writing-python-agents.md

Cheers,
Kristoffer

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] resource-agents v4.2.0

2018-10-24 Thread Oyvind Albrigtsen

ClusterLabs is happy to announce resource-agents v4.2.0.
Source code is available at:
https://github.com/ClusterLabs/resource-agents/releases/tag/v4.2.0

The most significant enhancements in this release are:
- new resource agents:
 - azure-events
 - aliyun-vpc-move-ip
 - gcp-pd-move
 - gcp-vpc-move-ip
 - gcp-vpc-move-route (improved Python version of gcp-vpc-move-ip)
 - gcp-vpc-move-vip
 - openstack-cinder-volume
 - openstack-floating-ip
 - openstack-info
 - podman
 - sybaseASE

- bugfixes and enhancements:
 - apache: fix return value for silent_status (introduced in the
   retry PID check mentioned below)
 - rabbitmq-cluster: fail monitor when node is in minority partition
 - ZFS: check status without locks when possible
 - pgsql: fix to avoid failing on masters re-promote
 - CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl
 - CTDB: fix "ctdb_recovery_lock" validation
 - CTDB: fix incorrect DB corruption reports (ensure health check is run)
 - Filesystem: support symlink as mountpoint directory
 - IPaddr2: return OCF_ERR_GENERIC when failing due to IPv4 address collision
 - LVM-activate: fix for dashes in volume group and logical volume names
 - LVM-activate: read parameters for stop-action
 - LVM-activate: return OCF_ERR_CONFIGURED for incorrect vg_access_mode
 - LVM: added missing dash for activation parameters
 - SAPDatabase: add info to meta-data
 - SAPInstance: add monitored services for ENSA2 (bsc#1092384)
 - SAPInstance: implement reload action to avoid resource restarts after a
   non-unique parameter has been changed
 - SAPInstance: improve SAP instance profile detection
 - SAPInstance: improve stop-action logging
 - Squid: use ss if netstat is not available
 - VirtualDomain: add stateless support
 - VirtualDomain: correctly create logfile and set permissions
 - Xen: add utilization support for cpu and hv_memory
 - apache: retry PID check
 - aws-vpc-move-ip: check routing table during monitor probe action
 - aws-vpc-move-ip: fix backward-compatibility
 - aws-vpc-move-ip: use ip utility to check address
 - awseip: fix allocation_id not found error
 - awseip: update required IAM role permissions
 - awsvip: get network-id from metadata
 - awsvip: improve secondary-private-ip query
 - configure: add Python path detection
 - exportfs: fix square bracket stripping in clientspec
 - findif: improve IPv6 NIC detection
 - findif: only match lines containing netmasks (for newer iputils)
 - garbd: support netstat and ss
 - iSCSITarget: support CHAP authentication for lio-t
 - ipsec: add tunnel fallback option
 - ldirectord: add manpage to systemd unit file
 - lvmlockd: add cmirrord support
 - mysql: remove obsolete DEBUG_LOG functionality (bsc#1021689)
 - nfsserver: fix rpcpipefs_dir and nfs_shared_infodir issues
 - ocf-binaries: use SSH-path detected by configure
 - ocf.py: new Python library and dev guide
 - oracle: improve dbopen error
 - pgsql: create replication slots after promoting master
 - pgsql: dont change ownership of /dev/null
 - pgsql: support PostgreSQL 11 or later
 - portblock: support ss and netstat (partial)
 - ra-dev-guide: update instructions for GitHub
 - rabbitmq-cluster: get cluster status from mnesia during monitor
 - rabbitmq-cluster: retry start when cluster join fails
 - redis: do not use absolute path in pidof calls
 - sg_persist: correctly pickup old keys
 - syslog-ng: add Premium Edition 6 and 7 support
 - systemd-tmpfiles: configure path with --with-rsctmpdir

The full list of changes for resource-agents is available at:
https://github.com/ClusterLabs/resource-agents/blob/v4.2.0/ChangeLog

Everyone is encouraged to download and test the new release candidate.
We do many regression tests and simulations, but we can't cover all
possible use cases, so your feedback is important and appreciated.

Many thanks to all the contributors to this release.


Best,
The resource-agents maintainers
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] resource-agents v4.2.0 rc1

2018-10-19 Thread Kristoffer Grönlund
On Fri, 2018-10-19 at 10:55 +0200, Oyvind Albrigtsen wrote:
> On 18/10/18 19:43 +0200, Valentin Vidic wrote:
> > On Wed, Oct 17, 2018 at 12:03:18PM +0200, Oyvind Albrigtsen wrote:
> > >  - apache: retry PID check.
> > 
> > I noticed that the ocft test started failing for apache in this
> > version. Not sure if the test is broken or the agent. Can you
> > check if the test still works for you? Restoring the previous
> > version of the agent fixes the problem for me.
> 
> It seems to work fine for me except for the that I had to change name
> from apache2 to httpd (which it's called on RHEL and Fedora) in the
> ocft-config, so I think we need some additional logic for that.

I wonder if perhaps there was a configuration change as well, since the
return code seems to be configuration related. Maybe something changed
in the build scripts that moved something around? Wild guess, but...

Cheers,
Kristoffer

> > 
> > # ocft test -v apache
> > Initializing 'apache' ...
> > Done.
> > 
> > Starting 'apache' case 0 'check base env':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 1 'check base env: set non-existing
> > OCF_RESKEY_statusurl':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 2 'check base env: set non-existing
> > OCF_RESKEY_configfile':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 3 'normal start':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 4 'normal stop':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 5 'double start':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 6 'double stop':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 7 'running monitor':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 8 'not running monitor':
> > ERROR: './apache monitor' failed, the return code is 2.
> > Starting 'apache' case 9 'unimplemented command':
> > ERROR: './apache monitor' failed, the return code is 2.
> > 
> > -- 
> > Valentin
> > ___
> > Users mailing list: Users@clusterlabs.org
> > https://lists.clusterlabs.org/mailman/listinfo/users
> > 
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratc
> > h.pdf
> > Bugs: http://bugs.clusterlabs.org
> 
> ___
> Users mailing list: Users@clusterlabs.org
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.
> pdf
> Bugs: http://bugs.clusterlabs.org
> 
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] resource-agents v4.2.0 rc1

2018-10-19 Thread Oyvind Albrigtsen

On 18/10/18 19:43 +0200, Valentin Vidic wrote:

On Wed, Oct 17, 2018 at 12:03:18PM +0200, Oyvind Albrigtsen wrote:

 - apache: retry PID check.


I noticed that the ocft test started failing for apache in this
version. Not sure if the test is broken or the agent. Can you
check if the test still works for you? Restoring the previous
version of the agent fixes the problem for me.

It seems to work fine for me except for the that I had to change name
from apache2 to httpd (which it's called on RHEL and Fedora) in the
ocft-config, so I think we need some additional logic for that.


# ocft test -v apache
Initializing 'apache' ...
Done.

Starting 'apache' case 0 'check base env':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 1 'check base env: set non-existing 
OCF_RESKEY_statusurl':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 2 'check base env: set non-existing 
OCF_RESKEY_configfile':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 3 'normal start':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 4 'normal stop':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 5 'double start':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 6 'double stop':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 7 'running monitor':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 8 'not running monitor':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 9 'unimplemented command':
ERROR: './apache monitor' failed, the return code is 2.

--
Valentin
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] resource-agents v4.2.0 rc1

2018-10-18 Thread Valentin Vidic
On Wed, Oct 17, 2018 at 12:03:18PM +0200, Oyvind Albrigtsen wrote:
>  - apache: retry PID check.

I noticed that the ocft test started failing for apache in this
version. Not sure if the test is broken or the agent. Can you
check if the test still works for you? Restoring the previous
version of the agent fixes the problem for me.

# ocft test -v apache
Initializing 'apache' ...
Done.

Starting 'apache' case 0 'check base env':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 1 'check base env: set non-existing 
OCF_RESKEY_statusurl':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 2 'check base env: set non-existing 
OCF_RESKEY_configfile':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 3 'normal start':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 4 'normal stop':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 5 'double start':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 6 'double stop':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 7 'running monitor':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 8 'not running monitor':
ERROR: './apache monitor' failed, the return code is 2.
Starting 'apache' case 9 'unimplemented command':
ERROR: './apache monitor' failed, the return code is 2.

-- 
Valentin
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] resource-agents v4.2.0 rc1

2018-10-17 Thread Oyvind Albrigtsen

ClusterLabs is happy to announce resource-agents v4.2.0 rc1.
Source code is available at:
https://github.com/ClusterLabs/resource-agents/releases/tag/v4.2.0rc1

The most significant enhancements in this release are:
- new resource agents:
 - aliyun-vpc-move-ip
 - gcp-pd-move
 - gcp-vpc-move-ip
 - gcp-vpc-move-route (improved Python version of gcp-vpc-move-ip)
 - gcp-vpc-move-vip
 - openstack-cinder-volume
 - openstack-floating-ip
 - openstack-info
 - podman
 - sybaseASE

- bugfixes and enhancements:
 - CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl
 - CTDB: fix "ctdb_recovery_lock" validation
 - CTDB: fix incorrect DB corruption reports (ensure health check is run)
 - Filesystem: support symlink as mountpoint directory
 - IPaddr2: return OCF_ERR_GENERIC when failing due to IPv4 address collision
 - LVM-activate: fix for dashes in volume group and logical volume names
 - LVM-activate: read parameters for stop-action
 - LVM-activate: return OCF_ERR_CONFIGURED for incorrect vg_access_mode
 - LVM: added missing dash for activation parameters
 - SAPDatabase: add info to meta-data
 - SAPInstance: add monitored services for ENSA2 (bsc#1092384)
 - SAPInstance: implement reload action to avoid resource restarts after a
   non-unique parameter has been changed
 - SAPInstance: improve SAP instance profile detection
 - SAPInstance: improve stop-action logging
 - Squid: use ss if netstat is not available
 - VirtualDomain: add stateless support
 - VirtualDomain: correctly create logfile and set permissions
 - Xen: add utilization support for cpu and hv_memory
 - apache: retry PID check.
 - aws-vpc-move-ip: check routing table during monitor probe action
 - aws-vpc-move-ip: fix backward-compatibility
 - aws-vpc-move-ip: use ip utility to check address
 - awseip: fix allocation_id not found error
 - awseip: update required IAM role permissions
 - awsvip: get network-id from metadata
 - awsvip: improve secondary-private-ip query
 - configure: add Python path detection
 - exportfs: fix square bracket stripping in clientspec
 - findif: improve IPv6 NIC detection
 - findif: only match lines containing netmasks (for newer iputils)
 - garbd: support netstat and ss
 - iSCSITarget: support CHAP authentication for lio-t
 - ipsec: add tunnel fallback option
 - ldirectord: add manpage to systemd unit file
 - lvmlockd: add cmirrord support
 - mysql: remove obsolete DEBUG_LOG functionality (bsc#1021689)
 - nfsserver: fix rpcpipefs_dir and nfs_shared_infodir issues
 - ocf-binaries: use SSH-path detected by configure
 - ocf.py: new Python library and dev guide
 - oracle: improve dbopen error
 - pgsql: create replication slots after promoting master
 - pgsql: dont change ownership of /dev/null
 - pgsql: support PostgreSQL 11 or later
 - portblock: support ss and netstat (partial)
 - ra-dev-guide: update instructions for GitHub
 - rabbitmq-cluster: get cluster status from mnesia during monitor
 - rabbitmq-cluster: retry start when cluster join fails
 - redis: do not use absolute path in pidof calls
 - sg_persist: correctly pickup old keys
 - syslog-ng: add Premium Edition 6 and 7 support
 - systemd-tmpfiles: configure path with --with-rsctmpdir

The full list of changes for resource-agents is available at:
https://github.com/ClusterLabs/resource-agents/blob/v4.2.0rc1/ChangeLog

Everyone is encouraged to download and test the new release candidate.
We do many regression tests and simulations, but we can't cover all
possible use cases, so your feedback is important and appreciated.

Many thanks to all the contributors to this release.


Best,
The resource-agents maintainers
___
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org