1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00
one/share/doc/states
Anton Todorov f9375eccab 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 676f36e0aa)
2016-03-03 23:59:53 +01:00
..
image-nonpersistent.dot Add Image state diagrams .dot files 2012-07-10 14:38:02 +02:00
image-persistent.dot Add Image state diagrams .dot files 2012-07-10 14:38:02 +02:00
README.txt Add Image state diagrams .dot files 2012-07-10 14:38:02 +02:00
service.dot Feature #2027: Move files to new tree structure 2013-07-09 14:53:54 +02:00
states-complete.dot improve rescue of VM when node fail is detected 2016-03-03 23:59:53 +01:00
states-simple.dot Feature #2135: Update vm state diagrams 2013-10-02 11:51:46 +02:00

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/