Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

            -> RECONCILED (all good) / RECONCILE_FAILED (failed, will retry) / RECONCILED_RETRY (success, but need more information, will retry)

Migrate VM without volumes (If VM is Migrating)

...


3.7 Summary


Action

scenario 1

Connection failures between the agent and the management server

scenario 2

Agent crash (or force killing the agent process)

scenario 3

Agent is restarted manually

how to reconcile
Migrate VM
  • intermittent failure
    • agent updates answer when connection is back to normal
    • mgmt server gets the answer from DB and process the answer
  • Long failure
  • agent
    • agent is started again by systemctl
  • management server

    • Resource [Host:1] is unreachable: Host 1: Operation timed out on migrating VM instance

    • VM is Running on source host
  • Note:
    • However, the vm is migrated before agent restarted (10 seconds) , the vm is Stopped (by ACS on destination host)
  • agent
    • abort the migration job by disconnect hook
    • written by Marcus
  • management server
    • Resource [Host:1] is unreachable: Host 1: Operation timed out on migrating VM instance
    • VM is Running on source host
  • Note:
    • In edge case, the vm is migrated before aborting the job, the vm is Stopped (by ACS on destination host)

If VM is Migrating

...

  • check via source host (if source is Up)
  • check via destination host (if dest is Up)
  • determine the state and update
Migrate VM with volumes









Migrate VM with volumes  (If VM is Migrating)

...