deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Provazník <jprov...@redhat.com>
Subject Re: RHEVM: Allow to force stop locked instance (DTACLOUD-308)
Date Mon, 03 Sep 2012 11:02:46 GMT
On 08/28/2012 04:23 PM, mfojtik@redhat.com wrote:
> 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
>
>

ACK, works for me

Mime
View raw message