saltstack/salt-bootstrap

boostrap.sh broken for almalinux

coltonshipley opened this issue · 2 comments

Description of Issue/Question

Setup

(Please provide relevant configs (Be sure to remove sensitive info).)
Trying to run this fails at install_almalinux_check_services() this haults the scripts. It also never enables the salt-minion service or starts it. It seems to install just fine. Then a systemctl enable salt-minion and systemctl start salt-minion gets everything going.

Steps to Reproduce Issue

(Include debug logs if possible, bootstrap-salt.sh -D.)
Almalinux 8.4 x64 running in a Proxmox VM (and also tried LXC container) here is the exact command I use to run

curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io && chmod +x bootstrap-salt.sh && ./bootstrap-salt.sh -P -A {salt-master-hostname} -i $(hostname -f) onedir

Versions and Systems

(salt --versions-report, bootstrap-salt.sh -v, system type and version,
cloud/VM provider as appropriate.)
salt installed is 3005.1 and script Version 2022.10.04

This is now an issue with Vagrant's Salt provisioner with Vagrant box almalinux/8 version 8.7.20230228.

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/tmp/bootstrap_salt.sh  -M -N -x python3 stable

Stdout from the command:

 *  INFO: Running version: 2022.10.04
 *  INFO: Executed by: 
 *  INFO: Command line: 'bootstrap-salt.sh -M -N -x python3 stable'

 *  INFO: System Information:
 *  INFO:   CPU:          GenuineIntel
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   4.18.0-425.13.1.el8_7.x86_64
 *  INFO:   Distribution: AlmaLinux 8.7

 *  INFO: Installing master
 *  INFO: Found function install_almalinux_stable_deps
 *  INFO: Found function config_salt
 *  INFO: Found function preseed_master
 *  INFO: Found function install_almalinux_stable
 *  INFO: Found function install_almalinux_stable_post
 *  INFO: Found function install_almalinux_restart_daemons
 *  INFO: Found function daemons_running
 *  INFO: Found function install_almalinux_check_services
 *  INFO: Running install_almalinux_stable_deps()
AlmaLinux 8 - BaseOS                            1.1 MB/s | 6.3 MB     00:05    
AlmaLinux 8 - AppStream                         1.4 MB/s |  12 MB     00:08    
AlmaLinux 8 - Extras                             25 kB/s |  19 kB     00:00    
epel-next-release-latest-8.noarch.rpm            32 kB/s |  11 kB     00:00    
epel-release-latest-8.noarch.rpm                 81 kB/s |  24 kB     00:00    
Dependencies resolved.
================================================================================
 Package                 Architecture Version          Repository          Size
================================================================================
Installing:
 epel-next-release       noarch       8-18.el8         @commandline        11 k
 epel-release            noarch       8-18.el8         @commandline        24 k

Transaction Summary
================================================================================
Install  2 Packages

Total size: 35 k
Installed size: 38 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : epel-release-8-18.el8.noarch                           1/2 
  Running scriptlet: epel-release-8-18.el8.noarch                           1/2 
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Installing       : epel-next-release-8-18.el8.noarch                      2/2 
  Running scriptlet: epel-next-release-8-18.el8.noarch                      2/2 
  Verifying        : epel-next-release-8-18.el8.noarch                      1/2 
  Verifying        : epel-release-8-18.el8.noarch                           2/2 

Installed:
  epel-next-release-8-18.el8.noarch         epel-release-8-18.el8.noarch        

Complete!
Cache was expired
28 files removed
AlmaLinux 8 - BaseOS                            1.6 MB/s | 6.3 MB     00:03    
AlmaLinux 8 - AppStream                         1.7 MB/s |  12 MB     00:06    
AlmaLinux 8 - Extras                             30 kB/s |  19 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64  867 kB/s |  14 MB     00:16    
bootstrap-salt.sh: line 2096:  7851 Killed                  yum -y install "${@}" ${ENABLE_EPEL_CMD}
 * ERROR: Failed to run install_almalinux_stable_deps()!!!


Stderr from the command:

Thanks for the report. Can you update to the latest bootstrap script and see if you're still seeing the issue? Thanks!