charm-percona-cluster/unit_tests
Felipe Reyes d18ba1cd6b Notify peers bootstrap-uuid during upgrade-charm hook
Since 17.02 the charm relies on the existence of bootstrap-uuid to
determine if pxc is bootstraped. The upgrade-charm hook handler uses
leader_node_is_ready() which calls cluster_ready(), this function will
evaluate to False when bootstrap-uuid is not defined

This patch drops leader_node_is_ready() from the upgrade-charm hook to
simply rely on is_leader(), for the non-leader unit
leader_get('bootstrap-uuid') and then notify_bootstrapped() if it's
set. For cases where the non-leader units are upgraded before
notify_bootstrapped() is called as part of the leader-settings-changed
hooks.

Change-Id: I621e23d7666920b91614491927711a85370310ad
Closes-Bug: 1674467
(cherry picked from commit af74254f20)
2017-04-06 12:12:22 -03:00
..
__init__.py Enhanced pause/resume for maintenance mode 2016-04-05 14:46:03 +00:00
test_actions.py Replace 'MagicMock' with 'Mock' 2016-10-11 09:45:12 +08:00
test_percona_hooks.py Notify peers bootstrap-uuid during upgrade-charm hook 2017-04-06 12:12:22 -03:00
test_percona_utils.py Notify peers bootstrap-uuid during upgrade-charm hook 2017-04-06 12:12:22 -03:00
test_utils.py Add hardening support 2016-03-24 18:40:04 +00:00