1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 12:16:49 +00:00
webvirtcloud/instances/migrations
catborise d054b13a87 fix(computes): VM ownership survives a move or a short absence
The sync deleted the Instance of every VM missing from its compute, and
its owners and rights went with it. A VM moved with virsh, or undefined
and defined again, came back with no owner.

Now, when a VM disappears from a compute:
- if the same UUID is recorded on another compute, it moved: its owners
  and template flag go there;
- otherwise they are kept in an InstanceTombstone and restored when the
  UUID appears again within INSTANCE_OWNERSHIP_RETENTION_DAYS (30).
A UUID recorded on two computes at the same time is a copy and gets no
owners. VMs deleted through WebVirtCloud leave no tombstone.
2026-10-04 01:08:11 +03:00
..
0001_initial.py
0002_permissionset.py
0003_auto_20200615_0637.py
0004_auto_20200618_0817.py
0005_flavor.py
0006_addFlavors.py
0007_auto_20200624_0821.py
0008_auto_20200708_0950.py
0009_auto_20200717_0524.py
0010_auto_20220722_0812.py
0011_createinstance_migrateinstance.py
0012_instance_unique_compute_uuid.py
0013_instancetombstone.py fix(computes): VM ownership survives a move or a short absence 2026-10-04 01:08:11 +03:00
__init__.py