Not sure if anyone is having the same issue but have ran across this many many times across many installs. The problem i keep running into is any time i create a VM everything deploys fine for the first VM. If i ever remove a VM i keep getting the following
I've tried sifting through the code and it seems like the issue is related to
Code:
Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 137, 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 1215, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/service.py", line 469, in create rv = await self.middleware._call( File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1215, in _call return await methodobj(*prepared_call.args) File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1021, in nf return await f(*args, **kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vms.py", line 105, in do_create await self.middleware.run_in_thread(self._check_setup_connection) File "/usr/lib/python3/dist-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs)) File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/connection.py", line 41, in _check_setup_connection if not self._is_connection_alive(): File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/connection.py", line 34, in _is_connection_alive def _is_connection_alive(self): File "/usr/lib/python3/dist-packages/libvirt.py", line 4370, in isAlive if ret == -1: raise libvirtError ('virConnectIsAlive() failed', conn=self) libvirt.libvirtError: invalid connection pointer in virConnectIsAlive
I've tried sifting through the code and it seems like the issue is related to
Code:
ret = libvirtmod.virConnectIsAlive(self._o)Code:but haven't confirmed that yet. So far the only fix is reboot the entire system unless there is some services that can be restarted i am unaware of. I'm curious to other peoples milage here, because as stated before i have installed several SCALE version many times over the last few months and this problem has always persisted. This all but makes the VM implementation unusable and can't see how others aren't having the same given how long the problem has been around. Given how much KVM & VMs are being toted in SCALE seems like not much effort has been put into actually getting it working when compared to the bhyve in Core.