Revision 7688d0d3 lib/bootstrap.py
b/lib/bootstrap.py | ||
---|---|---|
243 | 243 |
cfg = config.ConfigWriter() |
244 | 244 |
cfg.InitConfig(constants.CONFIG_VERSION, cluster_config, master_node_config) |
245 | 245 |
|
246 |
ssh.WriteKnownHostsFile(cfg, ss, constants.SSH_KNOWN_HOSTS_FILE)
|
|
246 |
ssh.WriteKnownHostsFile(cfg, constants.SSH_KNOWN_HOSTS_FILE) |
|
247 | 247 |
|
248 | 248 |
# start the master ip |
249 | 249 |
# TODO: Review rpc call from bootstrap |
... | ... | |
274 | 274 |
node: fully qualified domain name for the new node |
275 | 275 |
|
276 | 276 |
""" |
277 |
cfg = ssconf.SimpleConfigReader() |
|
278 |
sshrunner = ssh.SshRunner(cfg) |
|
277 | 279 |
ss = ssconf.SimpleStore() |
278 |
sshrunner = ssh.SshRunner(ss) |
|
279 | 280 |
gntpass = ss.GetNodeDaemonPassword() |
280 | 281 |
if not re.match('^[a-zA-Z0-9.]{1,64}$', gntpass): |
281 | 282 |
raise errors.OpExecError("ganeti password corruption detected") |
Also available in: Unified diff