deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: RHEVM: Allow to force stop locked instance (DTACLOUD-308)
Date Mon, 03 Sep 2012 11:04:25 GMT
Updated Branches:
  refs/heads/master 4e0b2120e -> 9f84f3440


RHEVM: Allow to force stop locked instance (DTACLOUD-308)

* If the instance in RHEV-M is stuck in STOPPING state
  (usually after non-graceful shutdown), issuing a :stop
  action will force it to 'stop' immediately.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/9f84f344
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/9f84f344
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/9f84f344

Branch: refs/heads/master
Commit: 9f84f34407b6383286e8b66380a6f437e734f450
Parents: 4e0b212
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Aug 28 16:20:49 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Mon Sep 3 13:04:58 2012 +0200

----------------------------------------------------------------------
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9f84f344/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index c60f923..6dc633a 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -55,6 +55,7 @@ class RhevmDriver < Deltacloud::BaseDriver
     pending.to( :stopped )        .automatically
     stopped.to( :running )        .on( :start )
     running.to( :stopping )       .on( :stop )
+    stopping.to( :stopped )       .on( :stop )
     stopped.to( :finish )         .on( :destroy )
   end
 


Mime
View raw message