Changing Centos 8 Linux servers to Centos 8 Stream breaks Uyuni functionality.
Hi Following Redhat's announcement last week, I've moved three systems from Centos 8 Linux to centos 8 Stream. I've added the Stream repos to Uyuni and switched channels to them, then followed the instructions at https://centos.org/distro-faq/ (As Uyuni doesn't have a uyuni-tools repo for Stream, I used the same Centos 8 Linux repo) The operation went successfully on the clients and all seemed good. However, it later emerged some of Uyuni's salt functionality has been lost on these clients. What's okay: Remote commands still work, and all scheduled instructions to these servers are picked up as before. What's not okay: 1. Highstate won't apply. This also breaks repos when re-running the bootstrap command: "curl -Sks https://{URL}/pub/bootstrap/bootstrap-c8.sh<https://%7bURL%7d/pub/bootstrap/bootstrap-c8.sh> | /bin/bash" As part of the script, existing repos are disabled, and any existing susemanager:channels.repo file is removed. Normally, this file is recreated when Highstate is applied, but this now fails. (Ditto when applying via Uyuni's webui) Error: Error: Could not parse state file. Please check YAML syntax. On server, /var/log/salt/minion logs show things like; 2020-12-16 11:50:41,871 [salt.state :3636][CRITICAL][36037] Rendering SLS 'base:services.salt-minion' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'pkg.list_repos' 2. When running "Update Package List" via the webui (Server page: Software -> Packages) An unexpected error has occurred. Please check the server logs. We see 2020-12-15 14:29:41,653 [salt.utils.decorators:636 ][WARNING ][7610] The function "module.run" is using its deprecated version and will expire in version "Sodium". 2020-12-15 14:29:46,319 [salt.state :323 ][ERROR ][7610] Module function pkg.info_installed is not available System info: /etc/centos-release: CentOS Stream release 8 salt-minion -version: salt-minion 3000 Uyuni master is 2020-11 yum repolist: repo id repo name susemanager:c8s-powertools CentOS 8-stream Powertools susemanager:c8s_appstream Centos 8-stream Appstream susemanager:centos8stream_x86_64 Centos 8 Stream (x86_64) susemanager:uyuni_client_stream Uyuni Client Tools for CentOS 8 (x86_64) Stream To me, these two problems look linked, and I'm guessing that the Stream migration process has 'lost' a Salt module for package and repo management. My knowledge of salt is not good enough to diagnose this issue, and it's proved difficult to google a way to success despite spending too much time on it yesterday. Can someone please help? Simon Avery Linux Systems Administrator
participants (1)
-
Simon Avery