saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.21k stars 5.48k forks source link

Unable to install salt minion from develop branch using bootstrap script #48740

Closed mikewiebe closed 6 years ago

mikewiebe commented 6 years ago

Description of Issue/Question

I am attempting to install the salt minion from the latest github develop branch but running into the following problem.

NOTE: If I use the latest release tag v2018.3.2, I don't see the same problem.

Steps to Reproduce Issue

Failed install example using the develop branch

[root@guestshell ~]# sh bootstrap-salt.sh -D  -G -H "$PROXY" git develop 
 *  WARN: The '-G' option is DEPRECATED and will be removed in the future stable release!
 *  WARN: Bootstrap will always use 'https' protocol to clone from SaltStack GitHub repo.
 *  WARN: No need to provide this option anymore, now it is a default behavior.
 *  INFO: Running version: 2018.04.25
 *  INFO: Executed by: sh
 *  INFO: Command line: 'bootstrap-salt.sh -D -G -H https://proxy.example.com:80 git develop'
 *  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:   4.1.21-WR8.0.0.25-standard
 *  INFO:   Distribution: CentOS 7.1

 * DEBUG: Binaries will be searched using the following $PATH: /sbin:/bin:/usr/sbin:/usr/bin
 *  INFO: Using http proxy https://proxy.example.com:80
 *  INFO: Installing minion
 * DEBUG: install_centos_7_git_deps not found....
 * DEBUG: install_centos_7_1_git_deps not found....
 * DEBUG: install_centos_7_deps not found....
 * DEBUG: install_centos_7_1_deps not found....
 *  INFO: Found function install_centos_git_deps
 * DEBUG: DEPS_INSTALL_FUNC=install_centos_git_deps
 * DEBUG: config_centos_7_git_salt not found....
 * DEBUG: config_centos_7_1_git_salt not found....
 * DEBUG: config_centos_7_salt not found....
 * DEBUG: config_centos_7_1_salt not found....
 * DEBUG: config_centos_git_salt not found....
 * DEBUG: config_centos_salt not found....
 *  INFO: Found function config_salt
 * DEBUG: CONFIG_SALT_FUNC=config_salt
 * DEBUG: preseed_centos_7_git_master not found....
 * DEBUG: preseed_centos_7_1_git_master not found....
 * DEBUG: preseed_centos_7_master not found....
 * DEBUG: preseed_centos_7_1_master not found....
 * DEBUG: preseed_centos_git_master not found....
 * DEBUG: preseed_centos_master not found....
 *  INFO: Found function preseed_master
 * DEBUG: PRESEED_MASTER_FUNC=preseed_master
 * DEBUG: install_centos_7_git not found....
 * DEBUG: install_centos_7_1_git not found....
 *  INFO: Found function install_centos_git
 * DEBUG: INSTALL_FUNC=install_centos_git
 * DEBUG: install_centos_7_git_post not found....
 * DEBUG: install_centos_7_1_git_post not found....
 * DEBUG: install_centos_7_post not found....
 * DEBUG: install_centos_7_1_post not found....
 *  INFO: Found function install_centos_git_post
 * DEBUG: POST_INSTALL_FUNC=install_centos_git_post
 * DEBUG: install_centos_7_git_restart_daemons not found....
 * DEBUG: install_centos_7_1_git_restart_daemons not found....
 * DEBUG: install_centos_7_restart_daemons not found....
 * DEBUG: install_centos_7_1_restart_daemons not found....
 * DEBUG: install_centos_git_restart_daemons not found....
 *  INFO: Found function install_centos_restart_daemons
 * DEBUG: STARTDAEMONS_INSTALL_FUNC=install_centos_restart_daemons
 * DEBUG: daemons_running_centos_7_git not found....
 * DEBUG: daemons_running_centos_7_1_git not found....
 * DEBUG: daemons_running_centos_7 not found....
 * DEBUG: daemons_running_centos_7_1 not found....
 * DEBUG: daemons_running_centos_git not found....
 * DEBUG: daemons_running_centos not found....
 *  INFO: Found function daemons_running
 * DEBUG: DAEMONS_RUNNING_FUNC=daemons_running
 * DEBUG: install_centos_7_git_check_services not found....
 * DEBUG: install_centos_7_1_git_check_services not found....
 * DEBUG: install_centos_7_check_services not found....
 * DEBUG: install_centos_7_1_check_services not found....
 * DEBUG: install_centos_git_check_services not found....
 *  INFO: Found function install_centos_check_services
 * DEBUG: CHECK_SERVICES_FUNC=install_centos_check_services
 *  INFO: Running install_centos_git_deps()
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.siena.edu
 * epel: mirror.seas.harvard.edu
 * extras: mirror.teklinks.com
 * updates: mirror.cs.vt.edu
Package yum-utils-1.1.31-45.el7.noarch already installed and latest version
Package chkconfig-1.7.4-1.el7.x86_64 already installed and latest version
Package PyYAML-3.11-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.siena.edu
 * epel: linux.mirrors.es.net
 * extras: repos-tx.psychz.net
 * updates: linux.mirrors.es.net
Package ca-certificates-2018.2.22-70.0.el7_5.noarch already installed and latest version
Nothing to do
 * DEBUG: Installed git version: 1.8.3.1
 *  WARN: The git revision being installed does not match a Salt version tag. Shallow cloning disabled
Cloning into 'salt'...
error: index-pack died of signal 9
fatal: index-pack failed
 * ERROR: Failed to run install_centos_git_deps()!!!
 * DEBUG: Removing the logging pipe /tmp/bootstrap-salt.logpipe
 * DEBUG: Killing logging pipe tee's with pid(s): 4808
[root@guestshell ~]# 

Successful install example using release tag v2018.3.2

[root@guestshell ~]# sh bootstrap-salt.sh -D  -G -H "$PROXY" git v2018.3.2
 *  WARN: The '-G' option is DEPRECATED and will be removed in the future stable release!
 *  WARN: Bootstrap will always use 'https' protocol to clone from SaltStack GitHub repo.
 *  WARN: No need to provide this option anymore, now it is a default behavior.
 *  INFO: Running version: 2018.04.25
 *  INFO: Executed by: sh
 *  INFO: Command line: 'bootstrap-salt.sh -D -G -H https://proxy.example.com:80 git v2018.3.2'
 *  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:   4.1.21-WR8.0.0.25-standard
 *  INFO:   Distribution: CentOS 7.1

 * DEBUG: Binaries will be searched using the following $PATH: /sbin:/bin:/usr/sbin:/usr/bin
 *  INFO: Using http proxy https://proxy.example.com:80
 *  INFO: Installing minion
 * DEBUG: install_centos_7_git_deps not found....
 * DEBUG: install_centos_7_1_git_deps not found....
 * DEBUG: install_centos_7_deps not found....
 * DEBUG: install_centos_7_1_deps not found....
 *  INFO: Found function install_centos_git_deps
 * DEBUG: DEPS_INSTALL_FUNC=install_centos_git_deps
 * DEBUG: config_centos_7_git_salt not found....
 * DEBUG: config_centos_7_1_git_salt not found....
 * DEBUG: config_centos_7_salt not found....
 * DEBUG: config_centos_7_1_salt not found....
 * DEBUG: config_centos_git_salt not found....
 * DEBUG: config_centos_salt not found....
 *  INFO: Found function config_salt
 * DEBUG: CONFIG_SALT_FUNC=config_salt
 * DEBUG: preseed_centos_7_git_master not found....
 * DEBUG: preseed_centos_7_1_git_master not found....
 * DEBUG: preseed_centos_7_master not found....
 * DEBUG: preseed_centos_7_1_master not found....
 * DEBUG: preseed_centos_git_master not found....
 * DEBUG: preseed_centos_master not found....
 *  INFO: Found function preseed_master
 * DEBUG: PRESEED_MASTER_FUNC=preseed_master
 * DEBUG: install_centos_7_git not found....
 * DEBUG: install_centos_7_1_git not found....
 *  INFO: Found function install_centos_git
 * DEBUG: INSTALL_FUNC=install_centos_git
 * DEBUG: install_centos_7_git_post not found....
 * DEBUG: install_centos_7_1_git_post not found....
 * DEBUG: install_centos_7_post not found....
 * DEBUG: install_centos_7_1_post not found....
 *  INFO: Found function install_centos_git_post
 * DEBUG: POST_INSTALL_FUNC=install_centos_git_post
 * DEBUG: install_centos_7_git_restart_daemons not found....
 * DEBUG: install_centos_7_1_git_restart_daemons not found....
 * DEBUG: install_centos_7_restart_daemons not found....
 * DEBUG: install_centos_7_1_restart_daemons not found....
 * DEBUG: install_centos_git_restart_daemons not found....
 *  INFO: Found function install_centos_restart_daemons
 * DEBUG: STARTDAEMONS_INSTALL_FUNC=install_centos_restart_daemons
 * DEBUG: daemons_running_centos_7_git not found....
 * DEBUG: daemons_running_centos_7_1_git not found....
 * DEBUG: daemons_running_centos_7 not found....
 * DEBUG: daemons_running_centos_7_1 not found....
 * DEBUG: daemons_running_centos_git not found....
 * DEBUG: daemons_running_centos not found....
 *  INFO: Found function daemons_running
 * DEBUG: DAEMONS_RUNNING_FUNC=daemons_running
 * DEBUG: install_centos_7_git_check_services not found....
 * DEBUG: install_centos_7_1_git_check_services not found....
 * DEBUG: install_centos_7_check_services not found....
 * DEBUG: install_centos_7_1_check_services not found....
 * DEBUG: install_centos_git_check_services not found....
 *  INFO: Found function install_centos_check_services
 * DEBUG: CHECK_SERVICES_FUNC=install_centos_check_services
 *  INFO: Running install_centos_git_deps()
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.datto.com
 * epel: mirror.math.princeton.edu
 * extras: mirror.teklinks.com
 * updates: linux.mirrors.es.net
Package yum-utils-1.1.31-45.el7.noarch already installed and latest version
Package chkconfig-1.7.4-1.el7.x86_64 already installed and latest version
Package PyYAML-3.11-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.siena.edu
 * epel: mirror.nodesdirect.com
 * extras: centos-distro.cavecreek.net
 * updates: repos.mia.quadranet.com
Package ca-certificates-2018.2.22-70.0.el7_5.noarch already installed and latest version
Nothing to do
 * DEBUG: Installed git version: 1.8.3.1
 *  INFO: Git revision matches a Salt version tag, shallow cloning enabled.
 *  INFO: Attempting to shallow clone v2018.3.2 from Salt's repository https://github.com/saltstack/salt.git
Cloning into 'salt'...
Note: checking out 'e7893aedcf53a7761f8f30e9efb9f7129620a5d7'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

 *  INFO: Cloning Salt's git repository succeeded
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.den1.denvercolo.net
 * epel: linux.mirrors.es.net
 * extras: repos-tx.psychz.net
 * updates: linux.mirrors.es.net
Package python-crypto is obsoleted by python2-crypto, trying to install python2-crypto-2.6.1-15.el7.x86_64 instead
Package python-futures is obsoleted by python2-futures, trying to install python2-futures-3.0.5-1.el7.noarch instead
Package python-msgpack is obsoleted by python2-msgpack, trying to install python2-msgpack-0.5.6-2.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package m2crypto.x86_64 0:0.28.2-3.el7 will be installed
--> Processing Dependency: python2-typing for package: m2crypto-0.28.2-3.el7.x86_64
---> Package python-jinja2.noarch 0:2.7.2-2.el7 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2-2.el7.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-2.el7.noarch
---> Package python-requests.noarch 0:2.6.0-1.el7_1 will be installed
--> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-1.el7_1.noarch
---> Package python-tornado.x86_64 0:4.2.1-3.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-tornado-4.2.1-3.el7.x86_64
---> Package python-zmq.x86_64 0:15.3.0-2.el7 will be installed
--> Processing Dependency: libzmq.so.5()(64bit) for package: python-zmq-15.3.0-2.el7.x86_64
---> Package python2-crypto.x86_64 0:2.6.1-15.el7 will be installed
--> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-15.el7.x86_64
---> Package python2-futures.noarch 0:3.0.5-1.el7 will be installed
---> Package python2-msgpack.x86_64 0:0.5.6-2.el7 will be installed
---> Package systemd-python.x86_64 0:219-57.el7 will be installed
--> Processing Dependency: systemd-libs = 219-57.el7 for package: systemd-python-219-57.el7.x86_64
--> Processing Dependency: systemd = 219-57.el7 for package: systemd-python-219-57.el7.x86_64
--> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-python-219-57.el7.x86_64
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.17-26.el7 will be installed
--> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-26.el7.x86_64
--> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-26.el7.x86_64
---> Package lz4.x86_64 0:1.7.5-2.el7 will be installed
---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
---> Package python-urllib3.noarch 0:1.10.2-5.el7 will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.10.2-5.el7.noarch
---> Package python2-typing.noarch 0:3.5.2.2-3.el7 will be installed
---> Package systemd.x86_64 0:219-42.el7_4.1 will be updated
---> Package systemd.x86_64 0:219-57.el7 will be an update
---> Package systemd-libs.x86_64 0:219-42.el7_4.1 will be updated
---> Package systemd-libs.x86_64 0:219-57.el7 will be an update
---> Package zeromq.x86_64 0:4.1.4-7.el7 will be installed
--> Processing Dependency: libsodium.so.23()(64bit) for package: zeromq-4.1.4-7.el7.x86_64
--> Processing Dependency: libpgm-5.2.so.0()(64bit) for package: zeromq-4.1.4-7.el7.x86_64
--> Running transaction check
---> Package libsodium.x86_64 0:1.0.16-1.el7 will be installed
---> Package libtommath.x86_64 0:0.42.0-6.el7 will be installed
---> Package openpgm.x86_64 0:5.2.122-2.el7 will be installed
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
---> Package python-six.noarch 0:1.9.0-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                              Arch    Version          Repository  Size
================================================================================
Installing:
 m2crypto                             x86_64  0.28.2-3.el7     saltstack  281 k
 python-jinja2                        noarch  2.7.2-2.el7      base       515 k
 python-requests                      noarch  2.6.0-1.el7_1    base        94 k
 python-tornado                       x86_64  4.2.1-3.el7      base       640 k
 python-zmq                           x86_64  15.3.0-2.el7     saltstack  520 k
 python2-crypto                       x86_64  2.6.1-15.el7     extras     477 k
 python2-futures                      noarch  3.0.5-1.el7      epel        26 k
 python2-msgpack                      x86_64  0.5.6-2.el7      epel        64 k
 systemd-python                       x86_64  219-57.el7       base       128 k
Installing for dependencies:
 libsodium                            x86_64  1.0.16-1.el7     epel       140 k
 libtomcrypt                          x86_64  1.17-26.el7      extras     224 k
 libtommath                           x86_64  0.42.0-6.el7     extras      36 k
 lz4                                  x86_64  1.7.5-2.el7      base        98 k
 openpgm                              x86_64  5.2.122-2.el7    epel       171 k
 python-babel                         noarch  0.9.6-8.el7      base       1.4 M
 python-backports                     x86_64  1.0-8.el7        base       5.8 k
 python-backports-ssl_match_hostname  noarch  3.5.0.1-1.el7    base        13 k
 python-ipaddress                     noarch  1.0.16-2.el7     base        34 k
 python-markupsafe                    x86_64  0.11-10.el7      base        25 k
 python-six                           noarch  1.9.0-2.el7      base        29 k
 python-urllib3                       noarch  1.10.2-5.el7     base       102 k
 python2-typing                       noarch  3.5.2.2-3.el7    epel        39 k
 zeromq                               x86_64  4.1.4-7.el7      saltstack  556 k
Updating for dependencies:
 systemd                              x86_64  219-57.el7       base       5.0 M
 systemd-libs                         x86_64  219-57.el7       base       402 k

Transaction Summary
================================================================================
Install  9 Packages (+14 Dependent packages)
Upgrade             (  2 Dependent packages)

Total download size: 11 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/epel/packages/libsodium-1.0.16-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for libsodium-1.0.16-1.el7.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total                                              2.2 MB/s |  11 MB  00:05     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lz4-1.7.5-2.el7.x86_64                                      1/27 
  Updating   : systemd-libs-219-57.el7.x86_64                              2/27 
  Installing : python-ipaddress-1.0.16-2.el7.noarch                        3/27 
  Updating   : systemd-219-57.el7.x86_64                                   4/27 
  Installing : libsodium-1.0.16-1.el7.x86_64                               5/27 
  Installing : libtommath-0.42.0-6.el7.x86_64                              6/27 
  Installing : libtomcrypt-1.17-26.el7.x86_64                              7/27 
  Installing : python-backports-1.0-8.el7.x86_64                           8/27 
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    9/27 
  Installing : python-babel-0.9.6-8.el7.noarch                            10/27 
  Installing : python-markupsafe-0.11-10.el7.x86_64                       11/27 
  Installing : python-six-1.9.0-2.el7.noarch                              12/27 
  Installing : python-urllib3-1.10.2-5.el7.noarch                         13/27 
  Installing : openpgm-5.2.122-2.el7.x86_64                               14/27 
  Installing : zeromq-4.1.4-7.el7.x86_64                                  15/27 
  Installing : python2-typing-3.5.2.2-3.el7.noarch                        16/27 
  Installing : m2crypto-0.28.2-3.el7.x86_64                               17/27 
  Installing : python-zmq-15.3.0-2.el7.x86_64                             18/27 
  Installing : python-requests-2.6.0-1.el7_1.noarch                       19/27 
  Installing : python-jinja2-2.7.2-2.el7.noarch                           20/27 
  Installing : python-tornado-4.2.1-3.el7.x86_64                          21/27 
  Installing : python2-crypto-2.6.1-15.el7.x86_64                         22/27 
  Installing : systemd-python-219-57.el7.x86_64                           23/27 
  Installing : python2-futures-3.0.5-1.el7.noarch                         24/27 
  Installing : python2-msgpack-0.5.6-2.el7.x86_64                         25/27 
  Cleanup    : systemd-219-42.el7_4.1.x86_64                              26/27 
  Cleanup    : systemd-libs-219-42.el7_4.1.x86_64                         27/27 
  Verifying  : python-jinja2-2.7.2-2.el7.noarch                            1/27 
  Verifying  : python2-msgpack-0.5.6-2.el7.x86_64                          2/27 
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch    3/27 
  Verifying  : python2-futures-3.0.5-1.el7.noarch                          4/27 
  Verifying  : zeromq-4.1.4-7.el7.x86_64                                   5/27 
  Verifying  : python2-typing-3.5.2.2-3.el7.noarch                         6/27 
  Verifying  : openpgm-5.2.122-2.el7.x86_64                                7/27 
  Verifying  : systemd-libs-219-57.el7.x86_64                              8/27 
  Verifying  : python-six-1.9.0-2.el7.noarch                               9/27 
  Verifying  : python-urllib3-1.10.2-5.el7.noarch                         10/27 
  Verifying  : python-tornado-4.2.1-3.el7.x86_64                          11/27 
  Verifying  : python-markupsafe-0.11-10.el7.x86_64                       12/27 
  Verifying  : libtomcrypt-1.17-26.el7.x86_64                             13/27 
  Verifying  : python-babel-0.9.6-8.el7.noarch                            14/27 
  Verifying  : lz4-1.7.5-2.el7.x86_64                                     15/27 
  Verifying  : python-backports-1.0-8.el7.x86_64                          16/27 
  Verifying  : libtommath-0.42.0-6.el7.x86_64                             17/27 
  Verifying  : systemd-219-57.el7.x86_64                                  18/27 
  Verifying  : libsodium-1.0.16-1.el7.x86_64                              19/27 
  Verifying  : python2-crypto-2.6.1-15.el7.x86_64                         20/27 
  Verifying  : python-requests-2.6.0-1.el7_1.noarch                       21/27 
  Verifying  : python-zmq-15.3.0-2.el7.x86_64                             22/27 
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                       23/27 
  Verifying  : systemd-python-219-57.el7.x86_64                           24/27 
  Verifying  : m2crypto-0.28.2-3.el7.x86_64                               25/27 
  Verifying  : systemd-219-42.el7_4.1.x86_64                              26/27 
  Verifying  : systemd-libs-219-42.el7_4.1.x86_64                         27/27 

Installed:
  m2crypto.x86_64 0:0.28.2-3.el7          python-jinja2.noarch 0:2.7.2-2.el7   
  python-requests.noarch 0:2.6.0-1.el7_1  python-tornado.x86_64 0:4.2.1-3.el7  
  python-zmq.x86_64 0:15.3.0-2.el7        python2-crypto.x86_64 0:2.6.1-15.el7 
  python2-futures.noarch 0:3.0.5-1.el7    python2-msgpack.x86_64 0:0.5.6-2.el7 
  systemd-python.x86_64 0:219-57.el7     

Dependency Installed:
  libsodium.x86_64 0:1.0.16-1.el7                                               
  libtomcrypt.x86_64 0:1.17-26.el7                                              
  libtommath.x86_64 0:0.42.0-6.el7                                              
  lz4.x86_64 0:1.7.5-2.el7                                                      
  openpgm.x86_64 0:5.2.122-2.el7                                                
  python-babel.noarch 0:0.9.6-8.el7                                             
  python-backports.x86_64 0:1.0-8.el7                                           
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7                    
  python-ipaddress.noarch 0:1.0.16-2.el7                                        
  python-markupsafe.x86_64 0:0.11-10.el7                                        
  python-six.noarch 0:1.9.0-2.el7                                               
  python-urllib3.noarch 0:1.10.2-5.el7                                          
  python2-typing.noarch 0:3.5.2.2-3.el7                                         
  zeromq.x86_64 0:4.1.4-7.el7                                                   

Dependency Updated:
  systemd.x86_64 0:219-57.el7          systemd-libs.x86_64 0:219-57.el7         

Complete!
 *  INFO: Running config_salt()
 * DEBUG: The passed destination(/etc/salt) is a directory
 * DEBUG: Full destination path is now: /etc/salt/minion
 * DEBUG: Moving /tmp/git/salt/conf//minion to /etc/salt/minion
 *  INFO: Running install_centos_git()
2018.3.2

...
... snip copying etc... logs to save space.
...

copying doc/man/salt-syndic.1 -> /usr/share/man/man1
copying doc/man/salt-unity.1 -> /usr/share/man/man1
copying doc/man/salt.7 -> /usr/share/man/man7
running install_egg_info
Writing /usr/lib/python2.7/site-packages/salt-2018.3.2-py2.7.egg-info
 *  INFO: Running install_centos_git_post()
 * DEBUG: The passed destination (/usr/lib/systemd/system) is a directory
 * DEBUG: Full destination path is now: /usr/lib/systemd/system/salt-minion.service
 * DEBUG: Copying /tmp/git/salt/pkg/rpm/salt-minion.service to /usr/lib/systemd/system/salt-minion.service
 *  INFO: Running install_centos_check_services()
 * DEBUG: Checking if service salt-minion is enabled
 * DEBUG: Service salt-minion is enabled
 *  INFO: Running install_centos_restart_daemons()
 * DEBUG: Waiting 3 seconds for processes to settle before checking for them
 *  INFO: Running daemons_running()
 * DEBUG: Waiting 3 seconds for processes to settle before checking for them
 *  INFO: Salt installed!
 * DEBUG: Cleaning up the Salt Temporary Git Repository
 * DEBUG: Removing the logging pipe /tmp/bootstrap-salt.logpipe
 * DEBUG: Killing logging pipe tee's with pid(s): 5269
[root@guestshell ~]# 
[root@guestshell ~]# salt --version
salt 2018.3.2 (Oxygen)
[root@guestshell ~]# 

Versions Report

Latest develop branch.

garethgreenaway commented 6 years ago

@mikewiebe Thanks for the report. Unfortunately I haven't been able to duplicate this issue. It also appears to be a git issue, not something specific to Salt. This might help: https://stackoverflow.com/questions/4826639/repack-of-git-repository-fails

mikewiebe commented 6 years ago

@garethgreenaway Thanks for the quick response.

Note sure I understand how this is a git issue. The only difference between the command that succeeds and the command that fails is the repo that I am specifying develop vs v2018.3.2.

  1. Successful command: sh bootstrap-salt.sh -D -G -H "$PROXY" git v2018.3.2
  2. Failed command: sh bootstrap-salt.sh -D -G -H "$PROXY" git develop

Is there a different syntax I need to use to install from the develop branch?

mikewiebe commented 6 years ago

Not sure if this is relevant, but this is the method I used to download the boostrap-salt.sh script.

curl -o bootstrap-salt.sh -L -x "$PROXY" https://bootstrap.saltstack.com

mikewiebe commented 6 years ago

@garethgreenaway It appears that the problem was transient. I literally just tried the same command again and now it works. Not sure why but I do remember earlier today that it attempted to reach multiple mirrors before giving up. This time it still failed in for the first few attempts but eventually found one that worked.

 *  INFO: Found function install_centos_check_services
 *  INFO: Running install_centos_git_deps()
warning: /var/tmp/rpm-tmp.OmLnvT: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Preparing...                          ########################################
Updating / installing...
epel-release-7-11                     ########################################
Loaded plugins: fastestmirror
Cleaning repos: base epel extras saltstack updates
10 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: fastestmirror
https://mirrors.rit.edu/fedora/epel/7/x86_64/repodata/01ebe8e678104d63a96b35d914e338ad5f21c3158d56dbd078f1837a41581e36-updateinfo.xml.bz2: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://sjc.edge.kernel.org/fedora-buffet/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
http://mirror.nodesdirect.com/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
https://ewr.edge.kernel.org/fedora-buffet/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
http://mirror.pnl.gov/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.us.leaseweb.net/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://fedora.mirrors.pair.com/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.rnet.missouri.edu/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
https://mirrors.xmission.com/fedora-epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
http://mirror.sfo12.us.leaseweb.net/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirrors.develooper.com/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://mirror.compevo.com/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
https://mirrors.lug.mtu.edu/epel/7/x86_64/repodata/5c4c30f8f0dbdae567993fcd4f8327ca51a1559b1d55fa36c376d992ba6baa35-primary.xml.gz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: mirror.wdc1.us.leaseweb.net
 * epel: mirror.team-cymru.com
 * extras: repos.forethought.net
 * updates: repos.lax.quadranet.com
Resolving Dependencies
--> Running transaction check
---> Package PyYAML.x86_64 0:3.11-1.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.11-1.el7.x86_64
---> Package chkconfig.x86_64 0:1.3.61-4.el7 will be updated
garethgreenaway commented 6 years ago

@mikewiebe One of the last errors reported by the bootstrap script: error: index-pack died of signal 9 When I search for that, the results that are returned are people reporting issues with Git when attempting to clone various repositories.

mikewiebe commented 6 years ago

@garethgreenaway Looks like I spoke too soon. It got further in the process but then still failed again here:

Dependency Installed:
  groff-base.x86_64 0:1.22.2-8.el7                                              
  less.x86_64 0:458-9.el7                                                       
  libgnome-keyring.x86_64 0:3.12.0-1.el7                                        
  perl.x86_64 4:5.16.3-292.el7                                                  
  perl-Carp.noarch 0:1.26-244.el7                                               
  perl-Encode.x86_64 0:2.51-7.el7                                               
  perl-Error.noarch 1:0.17020-2.el7                                             
  perl-Exporter.noarch 0:5.68-3.el7                                             
  perl-File-Path.noarch 0:2.09-2.el7                                            
  perl-File-Temp.noarch 0:0.23.01-3.el7                                         
  perl-Filter.x86_64 0:1.49-3.el7                                               
  perl-Getopt-Long.noarch 0:2.40-3.el7                                          
  perl-Git.noarch 0:1.8.3.1-14.el7_5                                            
  perl-HTTP-Tiny.noarch 0:0.033-3.el7                                           
  perl-PathTools.x86_64 0:3.40-5.el7                                            
  perl-Pod-Escapes.noarch 1:1.04-292.el7                                        
  perl-Pod-Perldoc.noarch 0:3.20-4.el7                                          
  perl-Pod-Simple.noarch 1:3.28-4.el7                                           
  perl-Pod-Usage.noarch 0:1.63-3.el7                                            
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7                                  
  perl-Socket.x86_64 0:2.010-4.el7                                              
  perl-Storable.x86_64 0:2.45-3.el7                                             
  perl-TermReadKey.x86_64 0:2.30-20.el7                                         
  perl-Text-ParseWords.noarch 0:3.29-4.el7                                      
  perl-Time-HiRes.x86_64 4:1.9725-3.el7                                         
  perl-Time-Local.noarch 0:1.2300-2.el7                                         
  perl-constant.noarch 0:1.27-2.el7                                             
  perl-libs.x86_64 4:5.16.3-292.el7                                             
  perl-macros.x86_64 4:5.16.3-292.el7                                           
  perl-parent.noarch 1:0.225-244.el7                                            
  perl-podlators.noarch 0:2.5.1-3.el7                                           
  perl-threads.x86_64 0:1.87-4.el7                                              
  perl-threads-shared.x86_64 0:1.43-6.el7                                       
  rsync.x86_64 0:3.1.2-4.el7                                                    

Complete!
 *  WARN: The git revision being installed does not match a Salt version tag. Shallow cloning disabled
Cloning into 'salt'...
error: index-pack died of signal 9
fatal: index-pack failed
 * ERROR: Failed to run install_centos_git_deps()!!!
[root@guestshell ~]# salt --version
bash: salt: command not found
[root@guestshell ~]# 

This same step run install_centos_git_deps() succeeds with v2018.3.2

garethgreenaway commented 6 years ago

@mikewiebe Are you able to run a Git clone manually?

mikewiebe commented 6 years ago

@garethgreenaway Using the following command, I can clone both develop and v2018.3.2

[root@guestshell ~]# git clone https://github.com/saltstack/salt.git --branch v2018.3.2 --single-branch --depth 1
Cloning into 'salt'...
remote: Counting objects: 5343, done.
remote: Compressing objects: 100% (4812/4812), done.
remote: Total 5343 (delta 382), reused 4271 (delta 339), pack-reused 0
Receiving objects: 100% (5343/5343), 13.59 MiB | 6.76 MiB/s, done.
Resolving deltas: 100% (382/382), done.
Note: checking out 'e7893aedcf53a7761f8f30e9efb9f7129620a5d7'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name
[root@guestshell ~]# git clone https://github.com/saltstack/salt.git --branch develop --single-branch --depth 1
Cloning into 'salt'...
remote: Counting objects: 5497, done.
remote: Compressing objects: 100% (5013/5013), done.
remote: Total 5497 (delta 399), reused 3611 (delta 284), pack-reused 0
Receiving objects: 100% (5497/5497), 14.53 MiB | 6.95 MiB/s, done.
Resolving deltas: 100% (399/399), done.
[root@guestshell ~]# 
[root@guestshell ~]# cd salt/
[root@guestshell salt]# git status
# On branch develop
nothing to commit, working directory clean
[root@guestshell salt]# 

Do you know the exact git command that gets called by the bootstrap script so I can try that?

mikewiebe commented 6 years ago

@garethgreenaway It appears the problem is the amount of storage space I allocated to my hosting environment and the fact that for develop the script does not use a shallow clone. When I install v2018.3.2 it appears to require less storage space then develop. Once I allocated more storage I was able to install develop.

Writing /usr/lib/python2.7/site-packages/salt-2018.3.2_3878_g7f7bfb1-py2.7.egg-info
 *  INFO: Running install_centos_git_post()
 *  INFO: Running install_centos_check_services()
 *  INFO: Running install_centos_restart_daemons()
 *  INFO: Running daemons_running()
 *  INFO: Salt installed!
[root@guestshell ~]# salt --version
salt 2018.3.2-3878-g7f7bfb1 (Oxygen)
[root@guestshell ~]# 

The interesting thing is that when I look back through the success and failure logs I see the following:

For v2018.3.2:

 * DEBUG: Installed git version: 1.8.3.1
 *  INFO: Git revision matches a Salt version tag, shallow cloning enabled.
 *  INFO: Attempting to shallow clone v2018.3.2 from Salt's repository https://github.com/saltstack/salt.git
Cloning into 'salt'...

But for develop:

Nothing to do
 * DEBUG: Installed git version: 1.8.3.1
 *  WARN: The git revision being installed does not match a Salt version tag. Shallow cloning disabled
Cloning into 'salt'...

The fact that shallow cloaning is disabled for develop in this case would explain the storage resource problem.

garethgreenaway commented 6 years ago

@mikewiebe This makes sense. develop is our "master" branch so ideally you would want access to the other branches and tags. There is the -f option that will force shallow cloning.

mikewiebe commented 6 years ago

@garethgreenaway Thanks for your help on this! We can consider this case closed.

garethgreenaway commented 6 years ago

Awesome! Thanks!