uyuni-project/uyuni

Error adding Ubuntu VM to Uyuni after update.

akupreev opened this issue · 2 comments

Problem description

Colleagues, good afternoon. After updating Uyuni to version 2024.05, when adding Ubuntu client virtual machines, I get the error:
import salt.crypt
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/crypt.py", line 26, in
import salt.payload
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/payload.py", line 12, in
import salt.loader.context
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/loader/init.py", line 16, in
import salt.config
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/config/init.py", line 26, in
import salt.utils.user
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/utils/user.py", line 7, in
import ctypes
File "/var/tmp/venv-salt-minion/lib/python3.11/ctypes/init.py", line 8, in
from _ctypes import Union, Structure, Array
ImportError: libffi.so.8: cannot open shared object file: No such file or directory
[ERROR ] An un-handled exception was caught by Salt's global exception handler:
ImportError: libffi.so.8: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/var/tmp/venv-salt-minion/bin/salt-call", line 10, in
salt_call()
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/scripts.py", line 438, in salt_call
import salt.cli.call
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/cli/call.py", line 3, in
import salt.cli.caller
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/cli/caller.py", line 12, in
import salt.channel.client
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/channel/client.py", line 13, in
import salt.crypt
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/crypt.py", line 26, in
import salt.payload
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/payload.py", line 12, in
import salt.loader.context
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/loader/init.py", line 16, in
import salt.config
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/config/init.py", line 26, in
import salt.utils.user
File "/var/tmp/venv-salt-minion/lib/python3.11/site-packages/salt/utils/user.py", line 7, in
import ctypes
File "/var/tmp/venv-salt-minion/lib/python3.11/ctypes/init.py", line 8, in
from _ctypes import Union, Structure, Array
ImportError: libffi.so.8: cannot open shared object file: No such file or directory", stdout: ""

Please help me, how can I fix this error or wait for the next release?

Steps to reproduce

...

Uyuni version

Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2024.05-230900.217.1.uyuni3
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Uyuni-Server-release-2024.05-230900.217.1.uyuni3.src
Summary        : Uyuni Server
Description    :
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

Uyuni proxy version (if used)

-

Useful logs

-

Additional information

Hi @akupreev, thanks for reporting this bug.

We'll include libffi in the Salt Bundle in the next update to ensure this error does not happen. We do wonder why you have Python 3.11 in the Salt Bundle already. Can you share how you set up the Uyuni Client Tools repository?

https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2004-Uyuni-Client-Tools/xUbuntu_20.04/amd64/ still contains the Python 3.10 based Salt Bundle, are you using the Uyuni Master Client Tools?

@agraul
Good afternoon. I configured the Clients according to the instructions
https://www.uyuni-project.org/uyuni-docs/en/uyuni/client-configuration/clients-ubuntu.html

And added virtual machines using bootstrap script