On 20/12/12 05:50, Koper, Dies wrote:
> (How) do we advertise what operations are possible on a machine in the error 
> state?

you can use the existing syntax - i've made 'error' a bona-fide state
now, so you could do something like:

error.to(:finish) .on(:destroy)

for example.

> From the documentation, Fgcp API can return STOP_ERROR when it failed to 
> stop, START_ERROR when it failed to start and ERROR in other error cases 
> (error during fail-over, creating snapshots, etc.).

This patch is about the instance entering an error state - not sure if
'STOP_ERROR' for example is the same; do you mean it returns an error
code for instance, or the actual instance goes into the 'stop_error'
state... in which case you could use the deltacloud error state.


marios

> 
> Regards,
> Dies Koper
> 
> 
>> -----Original Message-----
>> From: Michal Fojtik [mailto:[email protected]]
>> Sent: Thursday, 20 December 2012 8:04 AM
>> To: [email protected]
>> Subject: Re: Adding an error state to the instance state machine
>>
>> +1 oVirt and possibly VSphere does have 'UNKNOWN' or 'ERROR' state too. In
>> that case only possible operation is 'destroy'.
>>
>>
>> On Wed, Dec 19, 2012 at 11:57 PM, David Lutterkort
>> <[email protected]>wrote:
>>
>>> On Wed, 2012-12-19 at 19:27 +0200, [email protected] wrote:
>>>> basically $SUBJECT... openstack instances (and likely other clouds too)
>>>> can enter a 'error' state. This adds the new state and a 'from' keyword
>>>> to the state machine dsl... comments on syntax etc welcome (e.g. making
>>> this an
>>>> 'auto' transition, makes sense?)
>>>>
>>>> thanks, marios
>>>
>>> ACK; makes sense to me.
>>>
>>> David
>>>
>>>
>>>
>>
>>
>> --
>> -----------------------------------------------
>> Michal Fojtik <[email protected]>
>> Enthusiastic Ruby programmer.

Reply via email to