salt icon indicating copy to clipboard operation
salt copied to clipboard

salt-cloud install_ubuntu_git() is using a "to be deprecated" option

Open syedaali opened this issue 11 years ago • 7 comments

When attempting to install an AWS instance from salt-cloud here is one the warning messages:

Successfully installed tornado backports.ssl-match-hostname singledispatch certifi backports-abc six
Cleaning up...
 *  INFO: Running config_salt()
 *  INFO: Running install_ubuntu_git()
2015.8.1
running install
The '--salt-config-dir' setting is now a global option just pass it right after 'setup.py'. This install setting will still work until Salt Boron but please migrate to the global setting as soon as possible.
running build
running build_py
creating build

I am installing salt-minion from the git repo on version 2015.8.1.

salt-master> sudo salt --versions
Salt Version:
           Salt: 2015.8.1

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: Not Installed
           Mako: 0.9.1
         PyYAML: 3.10
          PyZMQ: 14.4.0
         Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.4
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.4.2
          gitdb: 0.5.4
      gitpython: 0.3.2 RC1
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.3.0
   mysql-python: 1.2.3
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: 0.8.2
        timelib: Not Installed

System Versions:
           dist: Ubuntu 14.04 trusty
        machine: x86_64
        release: 3.13.0-48-generic
         system: Ubuntu 14.04 trusty
salt-minion> sudo salt --versions
Salt Version:
           Salt: 2015.8.1

Dependency Versions:
         Jinja2: 2.7.2
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.0.1
         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)
           RAET: Not Installed
        Tornado: 3.2
            ZMQ: 4.0.4
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 1.5
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.3.0
   mysql-python: 1.2.3
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: 2.0.2
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist: Ubuntu 14.04 trusty
        machine: x86_64
        release: 3.13.0-66-generic
         system: Ubuntu 14.04 trusty

syedaali avatar Nov 13 '15 19:11 syedaali

@syedaali, thanks for the report.

jfindlay avatar Nov 17 '15 16:11 jfindlay

Here is the relevant code

install_ubuntu_git() {
    if [ -f "${__SALT_GIT_CHECKOUT_DIR}/salt/syspaths.py" ]; then
        python setup.py install --install-layout=deb --salt-config-dir="$_SALT_ETC_DIR" || return 1
    else
        python setup.py install --install-layout=deb || return 1
    fi
    return 0
}

Let me now if I can do a PR and remove if statement and remove the line with --salt-config-dir.

abednarik avatar Dec 06 '15 13:12 abednarik

Thanks @abednarik - I am not familiar with this piece of code, so I am not certain. However, I am wondering if this issue should be moved to the bootstrap repo.

@s0undt3ch - What do you think about this issue and @abednarik's suggested patch?

rallytime avatar Dec 08 '15 01:12 rallytime

Oh, actually, I misread the issue. I think that srounds great @abednarik. However, since this change is for the bootstrap script, can you make the pull request against that repo, instead of against Salt? We maintain the bootstrap script separately, and then when release a new version of the script, we bring it over to Salt.

rallytime avatar Dec 08 '15 01:12 rallytime

Since this is a salt-bootstrap bug, I have created https://github.com/saltstack/salt-bootstrap/issues/704 in the salt-bootstrap repo. As such, I am closing this issue.

@syedaali Thank you for bringing this to our attention. Please track the progress of this bug in https://github.com/saltstack/salt-bootstrap/issues/704.

rallytime avatar Dec 08 '15 01:12 rallytime

Thanks @rallytime . I will send a PR over there.

Cheers.

abednarik avatar Dec 08 '15 01:12 abednarik

Awesome! Thank you!

rallytime avatar Dec 08 '15 01:12 rallytime