mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-08 21:17:43 +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
|
||
---|---|---|
.. | ||
image-nonpersistent.dot | ||
image-persistent.dot | ||
README.txt | ||
service.dot | ||
states-complete.dot | ||
states-simple.dot |
These .dot files are graphviz[1] DOT language graphs. The complete state diagram uses the internal names for all the LifeCycleManager states, and the transitions triggered by the onevm commands. It is intended to be consulted by developers. The simplified diagram uses a smaller number of state names. These names are the ones used by onevm list, e.g. prolog, prolog_migrate and prolog_resume are all presented as "prol". It is intended as a reference for end-users. To generate png files, use the following commands: dot -Tpng states-complete.dot -o states-complete.png dot -Tpng states-simple.dot -o states-simple.png dot -Tpng image-persistent.dot -o image-persistent.png dot -Tpng image-nonpersistent.dot -o image-nonpersistent.png [1] http://www.graphviz.org/