deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject RHEVM: Allow to force stop locked instance (DTACLOUD-308)
Date Tue, 28 Aug 2012 14:23:12 GMT
From: Michal Fojtik <mfojtik@redhat.com>

* 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.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb |    1 +
 1 file changed, 1 insertion(+)

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
 
-- 
1.7.10.2


Mime
View raw message