RAPI: implement instance reinstall
authorIustin Pop <iustin@google.com>
Mon, 13 Jul 2009 09:11:41 +0000 (11:11 +0200)
committerIustin Pop <iustin@google.com>
Mon, 13 Jul 2009 09:47:23 +0000 (11:47 +0200)
commite5b7c4ca2e7f0591eda069e7bfa93255c964fced
treedd2862dad163f5eaa12db001d1198f40aa78ad44
parent8e2524c36ef76d56fe841156a3c57887c6a9ab3e
RAPI: implement instance reinstall

This patch adds instance reinstall to RAPI, with two optional parameters:
  - ‘os', in order to change the OS on reinstall
  - ‘nostartup’, in order to leave the instance down after reinstall

The call will first shutdown the instance, the reinstall it, and unless
‘nostartup’ has been passed and is equal to 1, it will be started
automatically.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/rapi/baserlib.py
lib/rapi/connector.py
lib/rapi/rlib2.py