Add confd user to masterd group
authorMichele Tartara <mtartara@google.com>
Wed, 19 Jun 2013 14:51:57 +0000 (14:51 +0000)
committerMichele Tartara <mtartara@google.com>
Thu, 20 Jun 2013 07:33:57 +0000 (07:33 +0000)
The server.pem file is 0440 (materd_uid, masterd_gid) and cannot be
accessed by confd.

This patch contains a workaround for 2.8.0~beta1 (adding conf to the
masterd group in the user setup tool, and remembering the users to
actually execute that tool while upgrading).

This partially fixes Issue 292.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

UPGRADE
tools/users-setup.in

diff --git a/UPGRADE b/UPGRADE
index a769b92..0e26892 100644 (file)
--- a/UPGRADE
+++ b/UPGRADE
@@ -55,6 +55,11 @@ To run commands on all nodes, the `distributed shell (dsh)
 
     $ /usr/lib/ganeti/ensure-dirs --full-run
 
+#. Create the (missing) required users and make users part of the required
+groups on all nodes::
+
+    $ /usr/lib/ganeti/tools/users-setup
+
 #. Restart daemons on all nodes::
 
     $ /etc/init.d/ganeti restart
index c6ee5a4..f63765b 100644 (file)
@@ -29,3 +29,4 @@ done
 
 adduser @GNTMASTERUSER@ @GNTCONFDGROUP@
 adduser @GNTMONDUSER@ @GNTMASTERDGROUP@
+adduser @GNTCONFDUSER@ @GNTMASTERDGROUP@