Revision e7c6e02b scripts/gnt-node
b/scripts/gnt-node | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2008 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
36 | 36 |
"Performing this operation is going to replace the ssh daemon keypair\n" |
37 | 37 |
"on the target machine (%s) with the ones of the current one\n" |
38 | 38 |
"and grant full intra-cluster ssh root access to/from it\n" % args[0]) |
39 |
op = opcodes.OpAddNode(node_name=args[0], secondary_ip=opts.secondary_ip) |
|
39 |
op = opcodes.OpAddNode(node_name=args[0], secondary_ip=opts.secondary_ip, |
|
40 |
readd=opts.readd) |
|
40 | 41 |
SubmitOpCode(op) |
41 | 42 |
|
42 | 43 |
|
... | ... | |
279 | 280 |
[DEBUG_OPT, |
280 | 281 |
make_option("-s", "--secondary-ip", dest="secondary_ip", |
281 | 282 |
help="Specify the secondary ip for the node", |
282 |
metavar="ADDRESS", default=None),], |
|
283 |
metavar="ADDRESS", default=None), |
|
284 |
make_option("--readd", dest="readd", |
|
285 |
default=False, action="store_true", |
|
286 |
help="Readd old node after replacing it"), |
|
287 |
], |
|
283 | 288 |
"[-s ip] <node_name>", "Add a node to the cluster"), |
284 | 289 |
'evacuate': (EvacuateNode, ARGS_FIXED(2), |
285 | 290 |
[DEBUG_OPT, FORCE_OPT], |
Also available in: Unified diff