mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-06 13:17:42 +03:00
f9375eccab
* 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
|
||
---|---|---|
.. | ||
doc | ||
etc | ||
examples | ||
hooks | ||
install_gems | ||
man | ||
onegate | ||
pkgs | ||
router | ||
rubygems | ||
scons | ||
scripts | ||
sudoers | ||
vendor/ruby/gems/rbvmomi | ||
websockify |