Skip to content

proxy-httpd:latest (v5.2.5/Master) still crashes with FileNotFoundError on /etc/sysconfig/rhn/systemid — bsc#1246789 not fixed in Master #730

Description

@MR-NBD

Environment

  • mgrpxy: 5.2.4 (Master 21fab79)
  • proxy-httpd image: 5.2.5 — registry.opensuse.org/uyuni/proxy-httpd:2026.01.130.10.uyuni5
  • disturl: obs://build.opensuse.org/systemsmanagement:Uyuni:Master/containerfile/960a4d74d0f7880601e96f2880479090-proxy-httpd-image
  • Host OS: openSUSE Leap 15.6
  • Podman: 4.9.5

Steps to Reproduce

  1. Fresh openSUSE Leap 15.6 VM
  2. Install mgrpxy 5.2.4 from systemsmanagement:/Uyuni:/Stable repo
  3. mgrpxy install podman config.tar.gz
  4. systemctl start uyuni-proxy-pod && systemctl start uyuni-proxy-httpd

Expected

Container starts correctly and writes systemid.

Actual

FileNotFoundError: [Errno 2] No such file or directory: '/etc/sysconfig/rhn/systemid'
File "/usr/bin/uyuni-configure.py", line 90, in
with open("/etc/sysconfig/rhn/systemid", "w", encoding="utf-8") as file:

Root Cause

Two issues:

  1. mgrpxy install generates the service file without -v /etc/sysconfig/rhn:/etc/sysconfig/rhn volume mount
  2. proxy-httpd image does not create /etc/sysconfig/rhn/ before writing systemid

Workaround

mkdir -p /etc/sysconfig/rhn && chmod 755 /etc/sysconfig/rhn
sed -i 's|-v /etc/sysconfig/proxy:/etc/sysconfig/proxy:ro|-v /etc/sysconfig/proxy:/etc/sysconfig/proxy:ro \\\n-v
/etc/sysconfig/rhn:/etc/sysconfig/rhn|' \
  /etc/systemd/system/uyuni-proxy-httpd.service
systemctl daemon-reload && systemctl start uyuni-proxy-httpd

Notes

bsc#1246789 and PR #642 claim this is fixed in proxy-httpd-image >= v5.1.9 and uyuni-tools >= v5.1.20/v5.2.1. The fix appears to be
present in the Stable branch but not in the Master branch images served via :latest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions