Use migrate or failover based on instance state
Use migrate or failover based on instance state

While we can't guarantee that the instance will be in the same state by
the time the migrate/failover command will be run, we can at least try
to do the right thing assuming no other changes to the cluster state.

Of course, the right fix would be for Ganeti to accept a
migrate-or-failover opcode that atomically does the move…

apyrgio/snf-ganeti,ganeti/ganeti,yiannist/ganeti,onponomarev/ganeti,andir/ganeti,apyrgio/snf-ganeti,leshchevds/ganeti,leshchevds/ganeti,yiannist/ganeti,mbakke/ganeti,grnet/snf-ganeti,bitemyapp/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,mbakke/ganeti,yiannist/ganeti,andir/ganeti,ganeti/ganeti,dimara/ganeti,andir/ganeti,bitemyapp/ganeti,onponomarev/ganeti,leshchevds/ganeti,ganeti-github-testing/ganeti-test-1,grnet/snf-ganeti,apyrgio/ganeti,mbakke/ganeti,dimara/ganeti,apyrgio/ganeti