Create runtime dir in bootstrap
authorGuido Trotter <ultrotter@google.com>
Fri, 27 Feb 2009 17:08:55 +0000 (17:08 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 27 Feb 2009 17:08:55 +0000 (17:08 +0000)
commit9dae41ad5b93a05f5c019971e32c54271006cb0e
tree235ed472425019bb42cb88ba3b00e13033aa8df0
parentcc9e1230b4180899007e299368457dc3a823dea4
Create runtime dir in bootstrap

Some hypervisors (KVM) need RUN_GANETI_DIR to exist even at cluster init
time. This patch creates it in InitCluster just before hv parameter
checking. Since the code to make list of directories is already repeated
twice in the code, and this would be the third time, we abstract it into
an utils.EnsureDirs function and we call that one from ganti-noded,
ganeti-masterd and bootstrap.

Reviewed-by: iustinp
daemons/ganeti-masterd
daemons/ganeti-noded
lib/bootstrap.py
lib/utils.py