In the gate, it is possible for /etc/hostname to not have a valid
SELinux security conext. So, reset them to default before we update
the hostname to avoid:
TASK: [Assign hostname]
failed: [node1] => {"failed": true}
msg: Command failed rc=1, out=, err=Could not set property: Access
denied
Reviewed: https:/ /review. openstack. org/304948 /git.openstack. org/cgit/ openstack/ kolla/commit/ ?id=cbe3a15a8e5 3f600d519a17d7e abab1f7d96e2ab
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit cbe3a15a8e53f60 0d519a17d7eabab 1f7d96e2ab
Author: Paul Belanger <email address hidden>
Date: Fri Apr 8 09:13:52 2016 -0400
Make sure /etc/hostname is valid for SELinux
In the gate, it is possible for /etc/hostname to not have a valid
SELinux security conext. So, reset them to default before we update
the hostname to avoid:
TASK: [Assign hostname]
failed: [node1] => {"failed": true}
msg: Command failed rc=1, out=, err=Could not set property: Access
denied
Closes-Bug: #1568047 ea5bc75307375c2 55131dfe934 8cf07c93d0dd0cd aacd958631e cae92c172fcf1bc 42d266ec5c)
Change-Id: Ie30c8437b310d1
Needed-By: I2ff5fbb315832b
(cherry picked from commit 84a0f2dd5bb537b