Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Install Uyuni Container on openSUSE Leap Micro 5.5 Following Official Documentation #9749

Closed
hsh-it opened this issue Feb 10, 2025 · 2 comments
Labels
bug Something isn't working P5

Comments

@hsh-it
Copy link

hsh-it commented Feb 10, 2025

Problem description

Issue: Unable to Install Uyuni Container on openSUSE Leap Micro 5.5 Following Official Documentation

Environment:


Problem Description:

I am following the official Uyuni Quickstart - Container Deployment Guide to install Uyuni on openSUSE Leap Micro 5.5, but I cannot proceed due to multiple issues.

Step 1: Installing Required Packages

The official guide instructs to install the following packages:

zypper in mgradm mgrctl mgradm-bash-completion mgrctl-bash-completion uyuni-storage-setup-server

However, the packages mgradm-bash-completion and mgrctl-bash-completion are missing from the stable repository.

This issue is already reported here:
🔗 [Issue #9600](#9600)

Step 2: Switching to the Master Repository

To work around this, the recommended approach was to switch to the master repository, which I did.

zypper ar https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master/images/repo/Uyuni-Server-POOL-$(arch)-Media1/ uyuni-server-master
zypper ref

After switching to master, I was able to install mgradm-bash-completion and mgrctl-bash-completion, and I proceeded with the installation.

Step 3: Installing Uyuni with Podman

After installing the necessary packages, I ran:

mgradm install podman

But the installation failed with SSL certificate errors:

Error: "/etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT" could not be found on container uyuni-server: no such file or directory
Error: failed to add SSL CA certificate to host trusted certificates: exit status 125

This issue is reported here:
🔗 [Issue #9740](#9740)

Step 4: Switching Back to Stable Repository

Following recommendations from the Uyuni developers, I switched back to the stable repository:

zypper rr uyuni-server-master
zypper ar https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable:/ContainerUtils/openSUSE_Leap_Micro_5.5/ uyuni-server-stable
zypper ref

But after this, I am still unable to complete the installation.


Detailed Errors:

1. Database Connection Issues

psql: error: connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
        Is the server running locally and accepting connections on that socket?

2. systemd Issues in Container

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

3. Missing SSL Certificate

ERROR: can't find CA certificate at this location: /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT

4. Apache Configuration Errors

AH00526: Syntax error on line 43 of /etc/apache2/vhosts.d/vhost-ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/spacewalk.crt' does not exist or is empty

Expected Behavior:

Following the official guide should lead to a successful installation of Uyuni in a podman-based container on openSUSE Leap Micro 5.5. However, due to missing packages, repository issues, SSL certificate problems, and systemd-related errors inside the container, the installation fails.


Question:

How can I successfully install Uyuni in a container on openSUSE Leap Micro 5.5, following the official documentation?

  • Should I stick with the stable or master repository?
  • How can I fix the missing CA certificate issue?
  • Is there a workaround for the systemd-related errors inside the container?
  • How can I ensure PostgreSQL initializes correctly within the container?

Any guidance from the Uyuni team would be appreciated!

Thank you in advance for any help!

Steps to reproduce

1Follow the offical Deploy way
2.
3.
...

Uyuni version

latest

Uyuni proxy version (if used)

Useful logs

Additional information

No response

@hsh-it hsh-it added bug Something isn't working P5 labels Feb 10, 2025
@agraul
Copy link
Member

agraul commented Feb 11, 2025

Can you check your logs in /var/log/uyuni-tools.log to see what else went wrong during mgradm install podman ? One thing that's different from #9740 is that your error says it can't find /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT. #9740 on the other hand requires a manual execution of cp /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT /usr/share/susemanager/salt/certs/RHN-ORG-TRUSTED-SSL-CERT, which is a different error.

@hsh-it
Copy link
Author

hsh-it commented Feb 14, 2025

In the end, I solved it. I followed the instructions and did not install the two current packages.

Thank you for your efforts and the tool!

@hsh-it hsh-it closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P5
Projects
None yet
Development

No branches or pull requests

2 participants