charm-hacluster/hooks
Felipe Reyes 4e53bea076 Fix 'crm node show' parsing to get list of nodes.
The command 'crm node show' is used on jammy to retrieve the list of
nodes defined in a cluster, although this command also includes the
properties set on a node (e.g. standby=off) which breaks the current
logic parsing.

This change uses a regular expresion to filter out all the lines from
the output that don't start with a non-white character (^\S+).

Change-Id: I3e00daa1b877a7faae1370f08b2d9c5bd7795c5f
Closes-Bug: #1987685
Related-Bug: #1972022
2022-08-25 12:13:33 -04:00
..
config-changed Initial release 2012-11-20 15:06:11 -05:00
ha-relation-changed Initial release 2012-11-20 15:06:11 -05:00
ha-relation-joined Initial release 2012-11-20 15:06:11 -05:00
hanode-relation-changed Refactoring to use openstack charm helpers. 2013-03-24 12:01:17 +00:00
hanode-relation-departed Adjust quorum after node removal 2021-03-11 17:24:01 +01:00
hanode-relation-joined HACluster refactoring 2012-12-11 07:54:36 -05:00
hooks.py Install resource-agents-extra on jammy. 2022-05-06 09:55:15 -04:00
install Convert charm to Python 3 2019-03-14 12:40:07 +00:00
install_deps Ensure we have python3-jinja2 2019-03-27 16:39:36 +01:00
install.real Ensure python2 is installed before hook execution 2017-08-24 14:19:04 +00:00
nrpe-external-master-relation-changed [bradm] Sync charmhelpers nrpe support, and add nrpe checks 2015-02-12 09:49:44 +10:00
nrpe-external-master-relation-joined [bradm] Sync charmhelpers nrpe support, and add nrpe checks 2015-02-12 09:49:44 +10:00
pacemaker-remote-relation-changed Add support for pacemaker-remotes 2019-04-03 10:50:58 +00:00
pacemaker-remote-relation-joined Add support for pacemaker-remotes 2019-04-03 10:50:58 +00:00
pcmk.py Fix 'crm node show' parsing to get list of nodes. 2022-08-25 12:13:33 -04:00
peer-availability-relation-changed Support hacluster using peer-availability relation 2019-04-03 10:48:40 +00:00
peer-availability-relation-joined Support hacluster using peer-availability relation 2019-04-03 10:48:40 +00:00
post-series-upgrade Series Upgrade 2018-09-14 20:56:34 -07:00
pre-series-upgrade Series Upgrade 2018-09-14 20:56:34 -07:00
start Add start stop hooks to shutup lint 2014-04-11 12:07:27 +01:00
stop Add start stop hooks to shutup lint 2014-04-11 12:07:27 +01:00
update-status Series Upgrade 2018-09-14 20:56:34 -07:00
upgrade-charm Convert charm to Python 3 2019-03-14 12:40:07 +00:00
upgrade-charm.real Convert charm to Python 3 2019-03-14 12:40:07 +00:00
utils.py Merge "Drop the use of 'crm node status' on jammy." 2022-06-23 20:58:16 +00:00