Skip to content
Snippets Groups Projects
Commit 99e8bbde authored by Guido Trotter's avatar Guido Trotter
Browse files

Add warning on gnt-node add operation.

People might not have read all the documentation and might not expect their ssh configuration
and specially keys to be changed. Adding this warning will inform them before it happens.

Reviewed-by: iustinp
parent 2007c9be
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,10 @@ from ganeti import utils ...@@ -30,6 +30,10 @@ from ganeti import utils
def AddNode(opts, args): def AddNode(opts, args):
"""Add node cli-to-processor bridge.""" """Add node cli-to-processor bridge."""
logger.ToStderr("-- WARNING -- \n"
"Performing this operation is going to replace the ssh daemon keypair\n"
"on the target machine (%s) with the ones of the current one\n"
"and grant full intra-cluster ssh root access to/from it\n" % args[0])
op = opcodes.OpAddNode(node_name=args[0], secondary_ip=opts.secondary_ip) op = opcodes.OpAddNode(node_name=args[0], secondary_ip=opts.secondary_ip)
SubmitOpCode(op) SubmitOpCode(op)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment