« Previous | Next » 

Revision f9375ecc

IDf9375eccaba9d07c0b1da0d63cafadc1db02e80a
Parent d2b66f0e
Child 82336ddc

Added by Anton Todorov over 5 years ago

improve rescue of VM when node fail is detected

  • Introduce new LCM states PROLOG_MIGRATE_UNKNOWN and PROLOG_MIGRATE_UNKNOWN_FAILURE
  • Change VM migrate logic for when state is ACTIVE and lcm_state is UNKNOWN to
    call TM's PROLOG_MIGR action before VMM's BOOT

All core TM drivers that are not empty are skipping disks so there is no impact on
the default behaviour

The datastore addon drivers that implement access to raw block devices should check
if the LCM_STATE == 60 (PROLOG_MIGRATE_UNKNOWN) and to remove block device access
from the failed node and provide access to the current node.
There is a simple script function added to get LCM_STATE that can be used as follow

```bash
LCM_STATE=$(lcm_state)
if [ "$LCM_STATE" = "60" ]
fi
```

(cherry picked from commit 676f36e0aa4f6ca705f60b826fd52d69888d7bb9)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences