Virtual machines not accessible in management console


#1

Hello

Maybe, we can fix that? I have done a lot of steps found, including this from “Unable to create Virtual Machines” , as I get this also on occasions (only)
Now, I cant see/find/create any VM in the management console.
I did remove and reinstall via app centre and via package management, no luck

The following error(s) did occur more and more frequently during the past maybe 3 month, until now, nothing is going anymore.
The currently installed release version is 4.3-1 errata126.

When opening the module=uvmm:uvmm:0:
An error occurred
Internal server error: The service is temporarily not available.

Server error message:

The connection to the univention-virtual-machine-manager-daemon service failed.
This might be a temporary problem. Please wait some minutes for the connection to reestablish or restart the UVMM service.
More detailed information can be found in the following logfiles:
  • /var/log/univention/management-console-module-uvmm.log:
25.06.18 09:58:40.508  DEBUG_INIT
25.06.18 09:58:44.580  MODULE      ( PROCESS ) : Loading python module.
25.06.18 09:58:45.706  MODULE      ( PROCESS ) : Imported python module.
25.06.18 09:58:45.706  MODULE      ( PROCESS ) : Module instance created.
25.06.18 09:58:45.707  MODULE      ( PROCESS ) : Module socket initialized.
25.06.18 09:58:45.724  MODULE      ( PROCESS ) : Setting user LDAP DN 'uid=Admi$
25.06.18 09:58:45.724  MODULE      ( PROCESS ) : Setting auth type to None
25.06.18 09:58:45.724  MODULE      ( PROCESS ) : Initializing module.
25.06.18 09:58:45.766  ADMIN       ( WARN    ) : univention.admin.modules.updat$
25.06.18 10:09:49.347  DEBUG_INIT
25.06.18 10:09:51.859  MODULE      ( PROCESS ) : Loading python module.
25.06.18 10:09:52.643  MODULE      ( PROCESS ) : Imported python module.
25.06.18 10:09:52.643  MODULE      ( PROCESS ) : Module instance created.
25.06.18 10:09:52.643  MODULE      ( PROCESS ) : Module socket initialized.
25.06.18 10:09:52.682  MODULE      ( PROCESS ) : Setting user LDAP DN 'uid=Admi$
25.06.18 10:09:52.682  MODULE      ( PROCESS ) : Setting auth type to None
25.06.18 10:09:52.683  MODULE      ( PROCESS ) : Initializing module.
25.06.18 10:09:52.712  ADMIN       ( WARN    ) : univention.admin.modules.updat$
25.06.18 10:26:25.697  MAIN        ( WARN    ) : Shutting down all open connect$
25.06.18 10:32:43.171  DEBUG_INIT
25.06.18 10:32:47.106  MODULE      ( PROCESS ) : Loading python module.
25.06.18 10:32:51.506  MODULE      ( PROCESS ) : Imported python module.
25.06.18 10:32:51.506  MODULE      ( PROCESS ) : Module instance created.
25.06.18 10:32:51.507  MODULE      ( PROCESS ) : Module socket initialized.
25.06.18 10:32:51.540  MODULE      ( PROCESS ) : Setting user LDAP DN 'uid=Admi$
25.06.18 10:32:51.540  MODULE      ( PROCESS ) : Setting auth type to None
25.06.18 10:32:51.541  MODULE      ( PROCESS ) : Initializing module.
25.06.18 10:32:51.569  ADMIN       ( WARN    ) : univention.admin.modules.updat$
25.06.18 10:48:12.570  MAIN        ( WARN    ) : Shutting down all open connect$
25.06.18 11:21:07.036  DEBUG_INIT
25.06.18 11:21:08.547  MODULE      ( PROCESS ) : Loading python module.
25.06.18 11:21:12.451  MODULE      ( PROCESS ) : Imported python module.
  • /var/log/univention/virtual-machine-manager-daemon.log:
2018-06-25 06:32:09,240 - uvmmd - INFO - Logfile reopened.
2018-06-25 06:51:21,179 - uvmmd.node - INFO - timer_callback(qemu://alpha.it.bizz/system) start
2018-06-25 06:51:21,302 - uvmmd.node - INFO - Connected to 'qemu://alpha.it.bizz/system'
2018-06-25 08:13:46,279 - uvmmd.node - ERROR - ('qemu://alpha.it.bizz/system',): Exception in timer_callbck
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 570, in run
    self.update_autoreconnect()
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 589, in update_autoreconnect
    self.update()
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 716, in update
    domStat.update(dom)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 265, in update
    self.update_expensive(domain)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 274, in update_expensive
    self.cache_save(xml)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 187, in cache_save
    os.rename(new_name, old_name)
OSError: [Errno 2] No such file or directory
2018-06-27 19:09:04,578 - uvmmd.unix - ERROR - [2] Exception: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/uvmm/unix.py", line 144, in handle_command
    res = cmd(self, command)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/commands.py", line 271, in NODE_ADD
    node.node_add(request.uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 849, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 546, in __init__
    assert domStat.cache_file_name() == cache_file_name
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 450, in cache_file_name
    return os.path.join(self.node.cache_dom_dir(), uuid + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
  • /var/log/univention/virtual-machine-manager-daemon-errors.log:
=== 558 === Mon, 25 Jun 2018 06:49:24 +0700 ===
Jun 25 06:50:15 alpha UVMMd: does not response, restarting
=== 2124 === Mon, 25 Jun 2018 06:50:26 +0700 ===
=== 554 === Mon, 25 Jun 2018 11:50:36 +0700 ===
Jun 25 11:52:03 alpha UVMMd: does not response, restarting
Could not open socket "/var/run/uvmm.socket": 2
=== 5797 === Mon, 25 Jun 2018 11:52:11 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 849, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 546, in __init__
    assert domStat.cache_file_name() == cache_file_name
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 450, in cache_file_name
    return os.path.join(self.node.cache_dom_dir(), uuid + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
=== 7490 === Mon, 25 Jun 2018 11:52:53 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 849, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 546, in __init__
    assert domStat.cache_file_name() == cache_file_name
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 450, in cache_file_name
    return os.path.join(self.node.cache_dom_dir(), uuid + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
=== 7536 === Mon, 25 Jun 2018 11:52:59 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)

The service is running:
uvmm/novnc running Automatically UVMM noVNC Service

Sometimes, it goes over the above error, but the following is, when I want to create a new VM:
same as topic “Unable to create Virtual Machines”

~# netstat -tulpen | grep libvirt
tcp        0      0 0.0.0.0:16514           0.0.0.0:*               LISTEN      0          24988      1041/libvirtd       
tcp6       0      0 :::16514                :::*                    LISTEN      0          24989      1041/libvirtd    


ucr search --brief virtual-machine
security/packetfilter/package/univention-virtual-machine-manager-node-common/tcp/16514/all/en: libvirt
security/packetfilter/package/univention-virtual-machine-manager-node-common/tcp/16514/all: ACCEPT
security/packetfilter/package/univention-virtual-machine-manager-node-kvm/tcp/49152:49215/all/en: kvm-migration
security/packetfilter/package/univention-virtual-machine-manager-node-kvm/tcp/49152:49215/all: ACCEPT
security/packetfilter/package/univention-virtual-machine-manager-node-kvm/tcp/5900:5999/all/en: VNC
security/packetfilter/package/univention-virtual-machine-manager-node-kvm/tcp/5900:5999/all: ACCEPT

/var/log/univention/virtual-machine-manager-daemon:

=== 558 === Mon, 25 Jun 2018 06:49:24 +0700 ===
Jun 25 06:50:15 alpha UVMMd: does not response, restarting
=== 2124 === Mon, 25 Jun 2018 06:50:26 +0700 ===
=== 554 === Mon, 25 Jun 2018 11:50:36 +0700 ===
Jun 25 11:52:03 alpha UVMMd: does not response, restarting
Could not open socket "/var/run/uvmm.socket": 2
=== 5797 === Mon, 25 Jun 2018 11:52:11 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 849, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 546, in __init__
    assert domStat.cache_file_name() == cache_file_name
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 450, in cache_file_name
    return os.path.join(self.node.cache_dom_dir(), uuid + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
=== 7490 === Mon, 25 Jun 2018 11:52:53 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 849, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 546, in __init__
    assert domStat.cache_file_name() == cache_file_name
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 450, in cache_file_name
    return os.path.join(self.node.cache_dom_dir(), uuid + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
=== 7536 === Mon, 25 Jun 2018 11:52:59 +0700 ===
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 307, in <module>
    node_add(uri)

I want to/need to avoid a server installation at all costs.

Thx a lot


#2

Problem solved, reason unclear:
Solution:

sudo apt-get purge libvirt* kvm qemu*
sudo apt autoremove
reboot

A new installation via command line failed
New installation via app center succeeded


#3

No, whilst the VMS where again up, the server itself was shot. Happy setup again