charm-hacluster/unit_tests
Billy Olsen 8d81e41576 Change MAAS DNS OCF to read IP from file
The MAAS DNS ocf resource is created specifying the IP address
from the leader node. When the resource is moved to another node
the IP address is not updated because the DNS record already
points to the leader's IP address. This means that the DNS record
will never be updated with any other unit's IP address when the
resource is moved around the cluster.

The IP address to use for the DNS record should be stored in the
pacemaker resource as the configuration is the same across the
entire cluster. This change makes it so that the IP address that
should be bound is written to a file in /etc/maas_dns/$resource_name
and used by the ocf:maas:dns resource when managing the DNS
resource records.

Migration is handled by checking the current version of the MAAS
OCF resource file and determining if the OCF_RESOURCE_INSTANCE
(the name of the resource) is present in the file.

Change-Id: If4e07079dd66dac51cd77c2600106b9b562c2483
Closes-Bug: #1711476
2017-09-20 17:08:44 -07:00
..
__init__.py Re-license charm as Apache-2.0 2016-06-28 12:12:40 +01:00
test_hacluster_hooks.py Change MAAS DNS OCF to read IP from file 2017-09-20 17:08:44 -07:00
test_hacluster_utils.py Change MAAS DNS OCF to read IP from file 2017-09-20 17:08:44 -07:00
test_pcmk.py Add maintenance-mode configuration option 2017-08-16 17:44:44 +00:00
test_utils.py Add maintenance-mode configuration option 2017-08-16 17:44:44 +00:00