mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
fix(instances): a clone stays on the host of the VM it was made from
With "VM Clone Auto Migrate" on, a new clone was migrated to a random compute, whatever storage, CPU or network that host had, and a failed migration showed as a failed clone although the clone existed. The setting and its code are removed; migration appsettings.0015 deletes the setting. A clone can be migrated afterwards like any VM. The README's update notes list the migration changes: the migration address, storage pools for the disk check, and this setting.
This commit is contained in:
parent
5c22fc8436
commit
1016f745c2
5 changed files with 51 additions and 7 deletions
|
|
@ -43,3 +43,8 @@ class AppSettingsTestCase(TestCase):
|
|||
self.client.force_login(regular_user)
|
||||
response = self.client.get(reverse("appsettings"))
|
||||
self.assertEqual(response.status_code, 403)
|
||||
|
||||
def test_clones_are_not_migrated_automatically(self):
|
||||
# a clone stays on the host of the VM it was made from; the setting
|
||||
# that sent it to a random host is removed by migration 0015
|
||||
self.assertFalse(AppSettings.objects.filter(key="CLONE_INSTANCE_AUTO_MIGRATE").exists())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue