salt-bootstrap icon indicating copy to clipboard operation
salt-bootstrap copied to clipboard

The salt master failed install on RHEL 9

Open dulili opened this issue 3 years ago • 4 comments

Description of Issue/Question

The salt master failed install on RHEL 9, the RHEL 8 could install successfully.

Please check below log, seems the repo not ready for RHEL 9.

# ./bootstrap-salt.sh -M -N
 *  INFO: Running version: 2022.05.19
 *  INFO: Executed by: /bin/sh
 *  INFO: Command line: './bootstrap-salt.sh -M -N'
 *  WARN: Running the unstable version of bootstrap-salt.sh

 *  INFO: System Information:
 *  INFO:   CPU:          AuthenticAMD
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   5.14.0-101.el9.x86_64
 *  INFO:   Distribution: <R>ed <H>at <E>nterprise <L>inux 9.1

 *  INFO: Installing master
 *  INFO: Found function install_red_hat_enterprise_linux_stable_deps
 *  INFO: Found function config_salt
 *  INFO: Found function preseed_master
 *  INFO: Found function install_red_hat_enterprise_linux_stable
 *  INFO: Found function install_red_hat_enterprise_linux_stable_post
 *  INFO: Found function install_red_hat_enterprise_linux_restart_daemons
 *  INFO: Found function daemons_running
 *  INFO: Running install_red_hat_enterprise_linux_stable_deps()
warning: /var/tmp/rpm-tmp.jZMIYp: Header V4 RSA/SHA256 Signature, key ID 3228467c: NOKEY
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
epel-release-9-2.el9                  ########################################
 * ERROR: https://repo.saltproject.io/py3/redhat/9/x86_64/latest/SALTSTACK-GPG-KEY.pub failed to download to /tmp/salt-gpg-aQUq6HLM.pub
 * ERROR: Failed to run install_red_hat_enterprise_linux_stable_deps()!!!

dulili avatar Jun 02 '22 08:06 dulili

Same for AlmaLinux 9. It seems the repository has not been created for RHEL and RHEL-compat release 9.x yet. This is confirmed via the listing at https://repo.saltproject.io/py3/redhat/.

Being that RHEL 9 is now a stable release (and has been for a month as of today), can we get some action on this?

johnnybubonic avatar Jun 18 '22 07:06 johnnybubonic

@Ch3LL Not sure if you're still doing triage for Salt, but this affects minions on RHEL/RHEL-like 9.x as well.

johnnybubonic avatar Jun 20 '22 10:06 johnnybubonic

@Ch3LL Not sure if you're still doing triage for Salt, but this affects minions on RHEL/RHEL-like 9.x as well.

we didn't deliver packages for RHEL9 yet

krionbsd avatar Jun 20 '22 12:06 krionbsd

Hi, Any ETA for support on RHEL9 (and it's clones)?

maneamarius avatar Jul 01 '22 09:07 maneamarius

@maneamarius Seems like RHEL9 is supported on 3005+, but only in the new onedir form as per information here

I've only installed the Minion on a Rocky Linux 9.0 client so far, but will continue testing.

latelieranimation avatar Sep 06 '22 22:09 latelieranimation

yeah @latelieranimation is correct. Only onedir packages are provided for newer OSs in 3005. You can use the new args (https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh#L305) for the bootstrap script to install them.

Ch3LL avatar Sep 22 '22 17:09 Ch3LL

I'll close this issue, but let me know if i need to re-open if the onedir packages don't work either.

Ch3LL avatar Sep 22 '22 17:09 Ch3LL

I am getting an error when attempting to install Salt on Rocky 9.1

[root@ip-10-2-7-10 rocky]# sh bootstrap-salt.sh -X -P onedir
 *  INFO: Running version: 2022.10.04
 *  INFO: Executed by: sh
 *  INFO: Command line: 'bootstrap-salt.sh -X -P onedir'

 *  INFO: System Information:
 *  INFO:   CPU:          GenuineIntel
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   5.14.0-162.12.1.el9_1.0.2.x86_64
 *  INFO:   Distribution: Rocky Linux 9.1

 *  INFO: Installing minion
 *  INFO: Daemons will not be started
 *  INFO: Found function install_rocky_linux_onedir_deps
 *  INFO: Found function config_salt
 *  INFO: Found function preseed_master
 *  INFO: Found function install_rocky_linux_onedir
 *  INFO: Found function install_rocky_linux_restart_daemons
 *  INFO: Found function daemons_running_onedir
 *  INFO: Found function install_rocky_linux_check_services
 *  INFO: Running install_rocky_linux_onedir_deps()
Last metadata expiration check: 0:12:07 ago on Fri Mar 17 01:14:38 2023.
epel-next-release-latest-9.noarch.rpm           109 kB/s | 8.2 kB     00:00    
epel-release-latest-9.noarch.rpm                237 kB/s |  18 kB     00:00    
Package epel-release-9-4.el9.noarch is already installed.
Dependencies resolved.
================================================================================
 Package                 Architecture Version          Repository          Size
================================================================================
Installing:
 epel-next-release       noarch       9-4.el9          @commandline       8.2 k

Transaction Summary
================================================================================
Install  1 Package

Total size: 8.2 k
Installed size: 3.1 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : epel-next-release-9-4.el9.noarch                       1/1 
  Verifying        : epel-next-release-9-4.el9.noarch                       1/1 

Installed:
  epel-next-release-9-4.el9.noarch                                              

Complete!
Cache was expired
45 files removed
Extra Packages for Enterprise Linux 9 - x86_64   25 MB/s |  15 MB     00:00    
Extra Packages for Enterprise Linux 9 - Next -  3.4 MB/s | 1.4 MB     00:00    
Rocky Linux 9 - BaseOS                          1.3 MB/s | 1.8 MB     00:01    
Rocky Linux 9 - AppStream                       6.6 MB/s | 6.6 MB     00:01    
Rocky Linux 9 - CRB                             5.5 MB/s | 2.1 MB     00:00    
Rocky Linux 9 - Extras                           25 kB/s | 8.5 kB     00:00    
SaltStack latest Release Channel for RHEL/CentO 201 kB/s |  42 kB     00:00    
Package yum-utils-4.1.0-3.el9.noarch is already installed.
Dependencies resolved.
================================================================================
 Package            Architecture    Version               Repository       Size
================================================================================
Installing:
 chkconfig          x86_64          1.20-2.el9            baseos          162 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 162 k
Installed size: 764 k
Downloading Packages:
chkconfig-1.20-2.el9.x86_64.rpm                 570 kB/s | 162 kB     00:00    
--------------------------------------------------------------------------------
Total                                           399 kB/s | 162 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : chkconfig-1.20-2.el9.x86_64                            1/1 
  Running scriptlet: chkconfig-1.20-2.el9.x86_64                            1/1 
  Verifying        : chkconfig-1.20-2.el9.x86_64                            1/1 

Installed:
  chkconfig-1.20-2.el9.x86_64                                                   

Complete!
 *  INFO: Running install_rocky_linux_onedir()
Last metadata expiration check: 0:00:03 ago on Fri Mar 17 01:26:59 2023.
Dependencies resolved.
================================================================================
 Package            Architecture  Version                Repository        Size
================================================================================
Installing:
 salt-minion        x86_64        3005.1-4.el9           saltstack         30 k
Installing dependencies:
 pciutils           x86_64        3.7.0-5.el9            baseos            92 k
 salt               x86_64        3005.1-4.el9           saltstack         47 M

Transaction Summary
================================================================================
Install  3 Packages

Total download size: 47 M
Installed size: 138 M
Downloading Packages:
(1/3): salt-minion-3005.1-4.el9.x86_64.rpm      182 kB/s |  30 kB     00:00    
(2/3): salt-3005.1-4.el9.x86_64.rpm              51 MB/s |  47 MB     00:00    
(3/3): pciutils-3.7.0-5.el9.x86_64.rpm          101 kB/s |  92 kB     00:00    
--------------------------------------------------------------------------------
Total                                            45 MB/s |  47 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : pciutils-3.7.0-5.el9.x86_64                            1/3 
  Installing       : salt-3005.1-4.el9.x86_64                               2/3 
  Installing       : salt-minion-3005.1-4.el9.x86_64                        3/3 
  Running scriptlet: salt-minion-3005.1-4.el9.x86_64                        3/3 
  Verifying        : pciutils-3.7.0-5.el9.x86_64                            1/3 
  Verifying        : salt-3005.1-4.el9.x86_64                               2/3 
  Verifying        : salt-minion-3005.1-4.el9.x86_64                        3/3 

Installed:
  pciutils-3.7.0-5.el9.x86_64                salt-3005.1-4.el9.x86_64           
  salt-minion-3005.1-4.el9.x86_64           

Complete!
 *  INFO: Running install_rocky_linux_check_services()
 * ERROR: Failed to run install_rocky_linux_check_services()!!!

ssoto2 avatar Mar 17 '23 01:03 ssoto2