[EFAULT] Unable to define domain for cloud: operation failed: domain 'xxx is already defined with uuid
Description
Problem/Justification
None
Impact
None
Activity
Show:
Bug Clerk May 24, 2022 at 10:20 AM
22.02.2 PR: https://github.com/truenas/middleware/pull/9020
Bug Clerk May 23, 2022 at 5:32 PM
Rick Wezenaar May 23, 2022 at 12:18 PM
INFO: It appears there are more users having the same problem. see https://www.truenas.com/community/threads/virtual-machine-clone-fault-bug.101099/
Bonnie Follweiler May 19, 2022 at 1:07 PM
Thank you for your ticket submission @Rick Wezenaar.
This ticket has been moved into our queue to review.
An engineering representative will update with any further questions or details in the near future.
Rick Wezenaar May 19, 2022 at 9:53 AM
The mentioned bug appears on 18th may.
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Waqar Ahmed
Waqar AhmedReporter
Rick Wezenaar
Rick WezenaarImpact
Medium
Time remaining
0m
Components
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created May 18, 2022 at 8:48 PM
Updated July 1, 2022 at 6:03 PM
Resolved May 24, 2022 at 10:22 AM
After upgrading to the latest version of TrueNAS Scale, whenever I want to clone a virtual machine I get the error
"[EFAULT] Unable to define domain for cloud: operation failed: domain '3_rhel85template' is already defined with uuid 60af50e6-a015-41f4-98f8-f0358a09cb27 "
After this the vm is not created, but still in the list. It is also impossible to delete the entry because the same error occurs.
Debug:
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 42, in _check_add_domain self._add(self._vm_from_name(vm_name)['id']) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 13, in _add self._add_with_vm_data(vm) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 16, in _add_with_vm_data self.vms[vm['name']] = VMSupervisor(vm, self.middleware) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 40, in _init_ self.update_domain() File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 59, in update_domain self.__define_domain() File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 87, in __define_domain if not self.LIBVIRT_CONNECTION.defineXML(vm_xml): File "/usr/lib/python3/dist-packages/libvirt.py", line 4380, in defineXML raise libvirtError('virDomainDefineXML() failed') libvirt.libvirtError: operation failed: domain '3_rhel85template' is already defined with uuid 60af50e6-a015-41f4-98f8-f0358a09cb27 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 175, in call_method result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1257, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1261, in nf return await func(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1129, in nf res = await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_lifecycle.py", line 39, in start await self.middleware.run_in_thread(self._start, vm['name']) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1172, in run_in_thread return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1169, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 61, in _start self._check_add_domain(vm_name) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_supervisor.py", line 44, in _check_add_domain raise CallError(f'Unable to define domain for {vm_name}: {e}') middlewared.service_exception.CallError: [EFAULT] Unable to define domain for cloud: operation failed: domain '3_rhel85template' is already defined with uuid 60af50e6-a015-41f4-98f8-f0358a09cb27
It is still possible to create and destroy new vm's but it is not possible to clone a vm, nor delete the 'fake' vm.