Cluster verify checks server.pem permissions
authorMichele Tartara <mtartara@google.com>
Tue, 9 Jul 2013 16:05:00 +0000 (18:05 +0200)
committerMichele Tartara <mtartara@google.com>
Tue, 9 Jul 2013 16:41:01 +0000 (16:41 +0000)
commit69ac3b7470962df05f6ff4f196fbf1d86fb198ac
tree63c2917ddabebdb38f03447200c39334add575c2
parentfc84ef94ed5085df72dbd20c6e3d311aad483f9a
Cluster verify checks server.pem permissions

Currently, ConfD must be able to access server.pem (though this is likely to
change in the future). If this is not true, all sorts of weird things happen,
such as "gnt-node list" printing lots of question marks instead of actual
data, with no meaningful error.

This patch adds a check for the proper access permission to
"gnt-cluster verify".

Fixes Issue 518.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/cmdlib/cluster.py