The update_hosts_file function requires a full map of entries to
write into /etc/hosts; the previous use of this function tried
to write individual host entries only.
Ensure that a full map of self + peers is written at appropriate
points in a units lifecycle to ensure self and peer hostname
resolvability.
Reviewed: https:/ /review. openstack. org/339597 /git.openstack. org/cgit/ openstack/ charm-rabbitmq- server/ commit/ ?id=c200f4fd13a 141f79aef34c426 c1e7e2633766ce
Committed: https:/
Submitter: Jenkins
Branch: stable/16.04
commit c200f4fd13a141f 79aef34c426c1e7 e2633766ce
Author: James Page <email address hidden>
Date: Thu Jul 7 11:48:52 2016 +0100
Ensure rabbit hosts are resolvable
The update_hosts_file function requires a full map of entries to
write into /etc/hosts; the previous use of this function tried
to write individual host entries only.
Ensure that a full map of self + peers is written at appropriate
points in a units lifecycle to ensure self and peer hostname
resolvability.
(also fixed a typo in a status message)
Change-Id: If40b31a5564186 1a1e03985f318e0 12b545fcc25 baf7992cfc6999f 82e9996c1a)
Closes-Bug: 1592200
Closes-Bug: 1590085
(cherry picked from commit 0ded449e8d32428