Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-108354

unable to delete VM due to XML error

    XMLWordPrintable

    Details

    • Impact:
      Low

      Description

      When trying to delete a VM I get an XML error, looks like there is a leading space in front of the mac address. As a result, I am unable to delete the VM. Error message output below.

      libvertError

      XML error: unable to parse mac address ' 00:a0:98:60:6a:fd'

      Error: Traceback (most recent call last):
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
      result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
      return await methodobj(*prepared_call.args)
      File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 471, in delete
      rv = await self.middleware._call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
      return await methodobj(*prepared_call.args)
      File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
      return await f(*args, **kwargs)
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1472, in do_delete
      await self.middleware.call('vm.undefine_vm', vm)
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1233, in call
      return await self._call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1202, in _call
      return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1106, in run_in_executor
      return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
      File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
      result = self.fn(*self.args, **self.kwargs)
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 1489, in undefine_vm
      VMSupervisor(vm, self.libvirt_connection, self.middleware).undefine_domain()
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 99, in _init_
      self.update_domain()
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 118, in update_domain
      self.__define_domain()
      File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/vm.py", line 133, in __define_domain
      if not self.connection.defineXML(vm_xml):
      File "/usr/local/lib/python3.8/site-packages/libvirt.py", line 4048, in defineXML
      if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
      libvirt.libvirtError: XML error: unable to parse mac address ' 00:a0:98:60:6a:fd'

        Attachments

        1. save_debug_error_1.png
          37 kB
          sam
        2. save_debug_error_2.png
          217 kB
          sam
        3. save_debug_progress.png
          64 kB
          sam

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                harry sam
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: