How can i handle such situation in my application where i,
1. raise a request for stopping node and get back success response
saying
current state is stopping.
2. raise a request for starting node i get node not in a state from
which
it can be started
In between 1 and 2, would it be possible for you to wait until the
machine is actually in state STOPPED (rather than STOPPING)? The success
response for 1 is intended, by the way: it indicates that your request
to stop the machine was successful.
Like many asynchronous systems where operations may take a long time,
that does not mean that the request has actually *completed* - just that
it has been *received*/is being acted upon.
Regards
ap