From 65bd5da4714f7121e34498319ddcaf223d2af728 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 10 Nov 2026 16:39:42 +0300 Subject: [PATCH] test(instances): the live create-from-template job names the template's pool Since 8f09812b a new VM's template is taken from the pool the form names (template_pool). That change updated the live view test but not the live job test, which left template_pool out: the create job looked the template up in a pool named '' and failed, on live runs only. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- instances/tests/test_live_jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instances/tests/test_live_jobs.py b/instances/tests/test_live_jobs.py index 97320583..f359b8bf 100644 --- a/instances/tests/test_live_jobs.py +++ b/instances/tests/test_live_jobs.py @@ -147,7 +147,8 @@ class LiveJobsTestCase(TransactionTestCase): self.assertTrue(livetest.volume_exists(self.conn, f"{livetest.POOL_PATH}/{P}smoke-copy.qcow2")) op = self.run_job(jobs.submit("instance.create", self.admin, { "name": P + "smoke-new", "firmware": "BIOS", "vcpu": 1, "vcpu_mode": "host-model", "memory": 256, - "networks": "default", "storage": livetest.POOL, "template": P + "smoke-copy.qcow2", "images": "", + "networks": "default", "storage": livetest.POOL, "template": P + "smoke-copy.qcow2", + "template_pool": livetest.POOL, "images": "", "hdd_size": 0, "cache_mode": "none", "meta_prealloc": False, "virtio": True, "qemu_ga": False, "mac": "", "nwfilter": "", "net_model": "virtio", "add_cdrom": "None", "add_input": "default", "video": "vga", "listener_addr": "127.0.0.1", "compute": self.compute.pk, "arch": "x86_64",