You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Jan Provazník <jp...@redhat.com> on 2012/09/03 13:02:46 UTC

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

On 08/28/2012 04:23 PM, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@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 <mf...@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