saltstack / salt-bootstrap

Generic Salt Bootstrap Script
Other
926 stars 545 forks source link

bootstrap-salt.sh fails to install salt in Amazon Linux 2022 #1874

Closed macabrerajc closed 2 months ago

macabrerajc commented 1 year ago

Description of Issue/Question

Setup

Run AWS Amazon image ami-0ed1f64914a9c6a8a in us-west-2

Steps to Reproduce Issue

./bootstrap-salt.sh -D
tee: /tmp/bootstrap-salt.log: Permission denied
 *  INFO: Running version: 2022.10.04
 *  INFO: Executed by: /bin/sh
 *  INFO: Command line: './bootstrap-salt.sh -D'
 *  WARN: Running the unstable version of bootstrap-salt.sh

 *  INFO: System Information:
 *  INFO:   CPU:          GenuineIntel
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   5.15.57-30.131.amzn2022.x86_64
 *  INFO:   Distribution: Amazon Linux AMI 2022

 * DEBUG: Binaries will be searched using the following $PATH: /root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin
 *  INFO: Installing minion
 * DEBUG: install_amazon_linux_ami_2022_stable_deps not found....
 * DEBUG: install_amazon_linux_ami_2022_deps not found....
 * DEBUG: install_amazon_linux_ami_stable_deps not found....
 *  INFO: Found function install_amazon_linux_ami_deps
 * DEBUG: DEPS_INSTALL_FUNC=install_amazon_linux_ami_deps
 * DEBUG: config_amazon_linux_ami_2022_stable_salt not found....
 * DEBUG: config_amazon_linux_ami_2022_salt not found....
 * DEBUG: config_amazon_linux_ami_stable_salt not found....
 * DEBUG: config_amazon_linux_ami_salt not found....
 *  INFO: Found function config_salt
 * DEBUG: CONFIG_SALT_FUNC=config_salt
 * DEBUG: preseed_amazon_linux_ami_2022_stable_master not found....
 * DEBUG: preseed_amazon_linux_ami_2022_master not found....
 * DEBUG: preseed_amazon_linux_ami_stable_master not found....
 * DEBUG: preseed_amazon_linux_ami_master not found....
 *  INFO: Found function preseed_master
 * DEBUG: PRESEED_MASTER_FUNC=preseed_master
 * DEBUG: INSTALL_FUNC_NAMES=install_amazon_linux_ami_2022_stable install_amazon_linux_ami_2022_stable install_amazon_linux_ami_stable
 * DEBUG: install_amazon_linux_ami_2022_stable not found....
 *  INFO: Found function install_amazon_linux_ami_stable
 * DEBUG: INSTALL_FUNC=install_amazon_linux_ami_stable
 * DEBUG: install_amazon_linux_ami_2022_stable_post not found....
 * DEBUG: install_amazon_linux_ami_2022_post not found....
 *  INFO: Found function install_amazon_linux_ami_stable_post
 * DEBUG: POST_INSTALL_FUNC=install_amazon_linux_ami_stable_post
 * DEBUG: install_amazon_linux_ami_2022_stable_restart_daemons not found....
 * DEBUG: install_amazon_linux_ami_2022_restart_daemons not found....
 * DEBUG: install_amazon_linux_ami_stable_restart_daemons not found....
 *  INFO: Found function install_amazon_linux_ami_restart_daemons
 * DEBUG: STARTDAEMONS_INSTALL_FUNC=install_amazon_linux_ami_restart_daemons
 * DEBUG: daemons_running_amazon_linux_ami_2022_stable not found....
 * DEBUG: daemons_running_amazon_linux_ami_2022 not found....
 * DEBUG: daemons_running_amazon_linux_ami_stable not found....
 * DEBUG: daemons_running_amazon_linux_ami not found....
 * DEBUG: daemons_running_stable not found....
 *  INFO: Found function daemons_running
 * DEBUG: DAEMONS_RUNNING_FUNC=daemons_running
 * DEBUG: install_amazon_linux_ami_2022_stable_check_services not found....
 * DEBUG: install_amazon_linux_ami_2022_check_services not found....
 * DEBUG: install_amazon_linux_ami_stable_check_services not found....
 * DEBUG: install_amazon_linux_ami_check_services not found....
 * DEBUG: CHECK_SERVICES_FUNC=null
 *  INFO: Running install_amazon_linux_ami_deps()
SaltStack repo for Amazon Linux                 3.1 kB/s | 322  B     00:00    
Errors during downloading metadata for repository 'saltstack-repo':
  - Status code: 404 for https://repo.saltproject.io/yum/amazon/latest/x86_64/latest/repodata/repomd.xml (IP: 99.84.66.15)
Error: Failed to download metadata for repo 'saltstack-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: saltstack-repo
Last metadata expiration check: 0:12:26 ago on Wed 19 Oct 2022 06:51:50 PM UTC.
Package dnf-utils-4.1.0-1.amzn2022.0.1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
SaltStack repo for Amazon Linux                 3.9 kB/s | 322  B     00:00    
Errors during downloading metadata for repository 'saltstack-repo':
  - Status code: 404 for https://repo.saltproject.io/yum/amazon/latest/x86_64/latest/repodata/repomd.xml (IP: 99.84.66.113)
Error: Failed to download metadata for repo 'saltstack-repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: saltstack-repo
Last metadata expiration check: 0:12:26 ago on Wed 19 Oct 2022 06:51:50 PM UTC.
No match for argument: m2crypto
No match for argument: python27-crypto
No match for argument: python27-jinja2
No match for argument: python27-PyYAML
No match for argument: python27-msgpack
No match for argument: python27-requests
No match for argument: python27-zmq
No match for argument: python27-futures
Error: Unable to find a match: m2crypto python27-crypto python27-jinja2 python27-PyYAML python27-msgpack python27-requests python27-zmq python27-futures
 * ERROR: Failed to run install_amazon_linux_ami_deps()!!!
 * DEBUG: Removing the logging pipe /tmp/bootstrap-salt.logpipe
 * DEBUG: Removing the temporary apt error file /tmp/apt_error.ebUiFV

Versions and Systems

./bootstrap-salt.sh -v ./bootstrap-salt.sh -- Version 2022.10.04

dmurphy18 commented 2 months ago

@macabrerajc Closing this as fixed in release of the bootstrap 2024-07-12, using Amazon 2023, see https://github.com/saltstack/salt-bootstrap/actions/workflows/ci.yml. Please feel free to reopen if other matters relevant to this issue come to light.