From b313ab7044222dfe633ebfe86ef41317d2744073 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Fri, 8 May 2015 17:49:55 +0200 Subject: [PATCH] Feature #2958: Add PROLOG_RESUME and UNDEPLOY to the recoverable states --- src/cli/one_helper/onevm_helper.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/one_helper/onevm_helper.rb b/src/cli/one_helper/onevm_helper.rb index 862647815c..81c8d1c58f 100644 --- a/src/cli/one_helper/onevm_helper.rb +++ b/src/cli/one_helper/onevm_helper.rb @@ -325,6 +325,8 @@ class OneVMHelper < OpenNebulaHelper::OneHelper :PROLOG_MIGRATE_POWEROFF_FAILURE => :migrate, :PROLOG_MIGRATE_SUSPEND_FAILURE => :migrate, :PROLOG_FAILURE => :prolog, + :PROLOG_RESUME_FAILURE => :resume, + :PROLOG_UNDEPLOY_FAILURE => :resume, :EPILOG_FAILURE => :epilog, :EPILOG_STOP_FAILURE => :stop, :EPILOG_UNDEPLOY_FAILURE => :stop @@ -420,8 +422,9 @@ class OneVMHelper < OpenNebulaHelper::OneHelper end end - puts "Sending RECOVER SUCCESS" - vm.recover(1) + puts "If all the TM actions have been successful and you want to" + puts "recover the Virtual Machine to the RUNNING state execute this command:" + puts "$ onevm recover #{vm.id} --success" end def print_tm_action_list