unable to delete VM due to XML error
Description
Problem/Justification
Impact
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Former user November 20, 2020 at 8:55 PM(edited)
@Waqar I should note that after submitting this I was able to working around the error by going into the VM's devices and editing the NIC device's MAC address to remove the leading space, which allowed me to delete the VM.
For completeness, unfortunately I run into another error with save debug, and have attached the output errors. Perhaps I should open another bug for this, but it looks similar to https://ixsystems.atlassian.net/browse/NAS-105679#icft=NAS-105679 (https://jira.ixsystems.com/browse/NAS-105679). Looks like it fails at 90%
Here is the output of that command
root@freenas[~]# midclt call datastore.query vm.device.query | jq .
'vm_device_query'
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/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/datastore/read.py", line 78, in query
table = self._get_table(name)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/datastore/schema.py", line 8, in _get_table
return Model.metadata.tables[name.replace('.', '_').lower()]
KeyError: 'vm_device_query'
Waqar November 20, 2020 at 9:06 AM
@Former user can you please share a debug of the system ( System -> Advanced ) and the output of the following command ?
midclt call datastore.query vm.device.query | jq .
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.