Revision d367b66c lib/bootstrap.py
b/lib/bootstrap.py | ||
---|---|---|
41 | 41 |
from ganeti import hypervisor |
42 | 42 |
from ganeti import bdev |
43 | 43 |
from ganeti import netutils |
44 |
from ganeti import backend |
|
44 | 45 |
|
45 | 46 |
|
46 | 47 |
def _InitSSHSetup(): |
... | ... | |
325 | 326 |
hv_class = hypervisor.GetHypervisor(hv_name) |
326 | 327 |
hv_class.CheckParameterSyntax(hv_params) |
327 | 328 |
|
328 |
# set up the inter-node password and certificate, start noded |
|
329 |
_InitGanetiServerSetup(hostname.name) |
|
330 |
|
|
331 | 329 |
# set up ssh config and /etc/hosts |
332 | 330 |
sshline = utils.ReadFile(constants.SSH_HOST_RSA_PUB) |
333 | 331 |
sshkey = sshline.split(" ")[1] |
... | ... | |
385 | 383 |
offline=False, drained=False, |
386 | 384 |
) |
387 | 385 |
InitConfig(constants.CONFIG_VERSION, cluster_config, master_node_config) |
388 |
cfg = config.ConfigWriter() |
|
386 |
cfg = config.ConfigWriter(offline=True)
|
|
389 | 387 |
ssh.WriteKnownHostsFile(cfg, constants.SSH_KNOWN_HOSTS_FILE) |
390 | 388 |
cfg.Update(cfg.GetClusterInfo(), logging.error) |
389 |
backend.WriteSsconfFiles(cfg.GetSsconfValues()) |
|
390 |
|
|
391 |
|
|
392 |
# set up the inter-node password and certificate |
|
393 |
_InitGanetiServerSetup(hostname.name) |
|
391 | 394 |
|
392 | 395 |
# start the master ip |
393 | 396 |
# TODO: Review rpc call from bootstrap |
Also available in: Unified diff