Commit 8925faaa authored by Iustin Pop's avatar Iustin Pop
Browse files

Some small fixes.

It fixes the main to create $localstatedir/{lib,log}/ganeti.
It fixes the testing after the rename ->  It strips the output of "ip link show" to have a nicer output
if the master netdev does not exist.
parent a7a19281
...@@ -15,3 +15,6 @@ ...@@ -15,3 +15,6 @@ ganeti/*.py ganeti/*.py
pylint.python2.4 --indent-string ' ' --rcfile=/dev/null \ pylint.python2.4 --indent-string ' ' --rcfile=/dev/null \
--reports y --int-import-graph $@ --persistent n ganeti >/dev/null --reports y --int-import-graph $@ --persistent n ganeti >/dev/null
@mkdir_p@ ${localstatedir}/lib/ganeti ${localstatedir}/log/ganeti
...@@ -580,7 +580,8 @@ class LUInitCluster(LogicalUnit): ...@@ -580,7 +580,8 @@ class LUInitCluster(LogicalUnit):
result = utils.RunCmd(["ip", "link", "show", "dev", self.op.master_netdev]) result = utils.RunCmd(["ip", "link", "show", "dev", self.op.master_netdev])
if result.failed: if result.failed:
raise errors.OpPrereqError("Invalid master netdev given (%s): '%s'" % raise errors.OpPrereqError("Invalid master netdev given (%s): '%s'" %
(self.op.master_netdev, result.output)) (self.op.master_netdev,
def Exec(self, feedback_fn): def Exec(self, feedback_fn):
"""Initialize the cluster. """Initialize the cluster.
...@@ -6,4 +6,4 @@ ganeti: ...@@ -6,4 +6,4 @@ ganeti:
rm -f ganeti rm -f ganeti
ln -s $(top_srcdir)/lib ganeti ln -s $(top_srcdir)/lib ganeti
EXTRA_DIST = $(TESTS) qa-sample.yaml EXTRA_DIST = $(TESTS) qa-sample.yaml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment