track the ports in use in the cluster and avoid port collision. VNC ports are
assigned when the VM is deployed and released when the VM is stopped, undeployed
or done.
Includes the following:
- 9da66150dc0e3dc2731518d8a215f9598696a999
- 4c35a9fcccf70cbe87d2947403ea815967e7b605
- ccfccb6d2fc40aa1c07eb994f37b8da4fb479082
- b1b64e61a39f4452c7ba00e581de42888e0e84a5
- d474ee4db9ed520bcae743d510be35b25ea988ed
- dacb61b1402da2ec309b6e79bdd285d0d11de84f
* 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)
VRs can request vnet leases. If a vm template has a
VROUTER_ID, the NICs from that VR are merged into
the template. If the VR NIC has a floating IP, it
is added as VROUTER_IP.
is SYSTEM. Update quota update and snapshot survival after delete
--recreate according to:
+--------+-------------------------------------+
|LN/CLONE| PERSISTENT | NO PERSISTENT |
| |---------+---------+-----------------+
| TARGET | created | quota | created | quota |
+--------+---------+---------+-----------------+
| SYSTEM | system | VM + DS | system | VM |
| SELF | image | DS | image | DS |
| NONE | image | DS | image | DS |
+----------------------------------------------+
Snapshots created at system ds (LN_TARGET/TM_TARGET) will be deleted
after a recreate.
(cherry picked from commit c5ad05fc60680cda2763973f5079598c2bf166e7)
Datastore Quota management to deal with bulk updates. Hook on DM & LCM
resubmit and clean_up_vm to remove snapshots
(cherry picked from commit 6f02a240ec8f4be7ef232e8f8c584665e6747233)