You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CA-411766: Detach VBDs right after VM Halted (#6501)
In XSI-1915, MCS shutdowned a VM and tried to destroy VBD right after
MCS received the event which came from power_state's change and failed.
The failure reason is below:
1. The update for VM's power_state and the update for VBDs is not a
transaction, so the client may receive the event from the update for
power_state and operate VBDs before the update for VBDs.
2. The VM's running on supporter. The DB operation needs to send RPC to
the coordinator. This needs time.
3. Between the update for VM's power_state and the update for VBD, xapi
also updates the field pending_guildencs which needs at least 8 DB
operation. This also delays the update for VBDs.
It's not straightforward to add transactions for these DB operations.
The workaround is to move the update for pending_guildencs to the end of
the DB operation of VBDs, VIFs, GPUs, etc. So that VBD will be updated
after the update for VM's power_state immediately.
0 commit comments