[node-patches] Change in ovirt-node[ovirt-3.6]: defaults: unpersist /etc/hostname to change hostname

fabiand at redhat.com fabiand at redhat.com
Mon Nov 23 11:25:23 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: defaults: unpersist /etc/hostname to change hostname
......................................................................

defaults: unpersist /etc/hostname to change hostname

Systemd cannot change the hostname and complains about file being busy.
This patch unpersist /etc/hostname for systemd be able to complete the
hostname change.

Change-Id: Iaf37e97d3450ac60bfc1e2ee302b6ab728006973
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1270736
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
(cherry picked from commit 3046b64a278d1ae3270ea55c89e22bba6490353b)
---
M src/ovirt/node/config/defaults.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/76/48976/1

diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index 6e26faf..3a9bcbb 100755
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -737,6 +737,7 @@
                     p = "%s/alias[%s]" % (localhost_entry, idx)
                     aug.set(p, alias, False)
 
+                fs.Config().unpersist("/etc/hostname")
                 config.network.hostname(self.hostname)
 
                 fs.Config().persist("/etc/hosts")


-- 
To view, visit https://gerrit.ovirt.org/48976
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf37e97d3450ac60bfc1e2ee302b6ab728006973
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.6
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list