From 44ee08c2d71937816d0029bb60c05a9d8b802655 Mon Sep 17 00:00:00 2001 From: Lenny Verkhovsky Date: Mon, 23 Jan 2017 09:00:12 +0000 Subject: [PATCH] Create mandatory /etc/nodepool for later use Since nodepool-base element is optional /etc/nodepool folder still must exist for node information. Change-Id: I838f4eb1ea260b1e2eed3c2768e955f34067dcc5 --- nodepool/nodepool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodepool/nodepool.py b/nodepool/nodepool.py index 04ed39a73..612c64ca7 100644 --- a/nodepool/nodepool.py +++ b/nodepool/nodepool.py @@ -625,7 +625,9 @@ class NodeLauncher(threading.Thread): if not host: raise Exception("Unable to log in via SSH") - host.ssh("test for config dir", "ls /etc/nodepool") + host.ssh("Create config dir", "sudo mkdir -p /etc/nodepool") + host.ssh("Change config dir owner", + "sudo chown %s -R /etc/nodepool" % self.image.username) ftp = host.client.open_sftp()