Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

salt-api not installed on Oracle Linux #609

Closed
Gillingham opened this issue Jun 11, 2015 · 7 comments
Closed

salt-api not installed on Oracle Linux #609

Gillingham opened this issue Jun 11, 2015 · 7 comments
Milestone

Comments

@Gillingham
Copy link

Is there a reason salt-api is not installed on Oracle Linux, I don't see an option to force its install

@Gillingham Gillingham changed the title salt-api disabled on Oracle Linux salt-api not installed on Oracle Linux Jun 11, 2015
@jfindlay
Copy link
Contributor

Since oracle is a fork of redhat, I'm assuming it would use the redhat packages. Can you verify that any salt packages have been installed? If bootstrap can't find packages for the platform it will fallback to installing from git in which case you should have all of salt-api installed even if there is not a package installed called salt-api.

@Gillingham
Copy link
Author

On a host that called bootstrap with -M -P -X

[root@msp-salt ~]# rpm -qa | grep salt
salt-minion-2015.5.0-1.el7.noarch
salt-2015.5.0-1.el7.noarch
salt-master-2015.5.0-1.el7.noarch
[root@msp-salt ~]# rpm -ql salt | grep salt-api
[root@msp-salt ~]# rpm -ql salt-master | grep salt-api
[root@msp-salt ~]# cat /etc/oracle-release
Oracle Linux Server release 7.1
[root@msp-salt ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)

@Gillingham
Copy link
Author

/tmp/bootstrap-salt.log

 *  INFO: System Information:
 *  INFO:   CPU:          GenuineIntel
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   3.10.0-229.el7.x86_64
 *  INFO:   Distribution: Oracle Linux 7.1

 *  INFO: Installing minion
 *  INFO: Installing master
 *  INFO: Daemons will not be started
 *  INFO: Found function install_oracle_linux_stable_deps
 *  INFO: Found function install_oracle_linux_stable
 *  INFO: Found function install_oracle_linux_stable_post
 *  INFO: Found function install_oracle_linux_restart_daemons
 *  INFO: Found function daemons_running
 *  INFO: Found function install_oracle_linux_check_services
 *  INFO: Running install_oracle_linux_stable_deps()
 *  INFO: Testing if packages usually on the optionals repository are available:
 *  INFO:   - python-jinja2
 *  INFO: Adding SaltStack's COPR repository
Package yum-utils-1.1.31-29.0.1.el7.noarch already installed and latest version
Nothing to do
Package chkconfig-1.3.61-4.el7.x86_64 already installed and latest version
Nothing to do
Resolving Dependencies
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch           Version                Repository          Size
================================================================================
Installing:
 PyYAML          x86_64         3.10-11.el7            ol7_latest         153 k
Installing for dependencies:
 libyaml         x86_64         0.1.4-11.el7_0         ol7_latest          54 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 207 k
Installed size: 760 k
Downloading packages:
--------------------------------------------------------------------------------
Total                                              796 kB/s | 207 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libyaml-0.1.4-11.el7_0.x86_64                                1/2
  Installing : PyYAML-3.10-11.el7.x86_64                                    2/2
  Verifying  : libyaml-0.1.4-11.el7_0.x86_64                                1/2
  Verifying  : PyYAML-3.10-11.el7.x86_64                                    2/2

Installed:
  PyYAML.x86_64 0:3.10-11.el7

Dependency Installed:
  libyaml.x86_64 0:0.1.4-11.el7_0

Complete!
Package m2crypto-0.21.1-15.el7.x86_64 already installed and latest version
Nothing to do
Resolving Dependencies
--> Running transaction check
---> Package python-crypto.x86_64 0:2.6.1-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch           Version                Repository    Size
================================================================================
Installing:
 python-crypto         x86_64         2.6.1-1.el7            epel         469 k

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

Total download size: 469 k
Installed size: 2.3 M
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/epel/packages/python-crypto-2.6.1-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for python-crypto-2.6.1-1.el7.x86_64.rpm is not installed
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-5.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-crypto-2.6.1-1.el7.x86_64                             1/1
  Verifying  : python-crypto-2.6.1-1.el7.x86_64                             1/1

Installed:
  python-crypto.x86_64 0:2.6.1-1.el7

Complete!
Resolving Dependencies
--> Running transaction check
---> Package python-msgpack.x86_64 0:0.4.6-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch           Version               Repository    Size
================================================================================
Installing:
 python-msgpack         x86_64         0.4.6-1.el7           epel          73 k

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

Total download size: 73 k
Installed size: 250 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-msgpack-0.4.6-1.el7.x86_64                            1/1
  Verifying  : python-msgpack-0.4.6-1.el7.x86_64                            1/1

Installed:
  python-msgpack.x86_64 0:0.4.6-1.el7

Complete!
Resolving Dependencies
--> Running transaction check
---> Package python-zmq.x86_64 0:14.3.1-1.el7 will be installed
--> Processing Dependency: libzmq.so.3()(64bit) for package: python-zmq-14.3.1-1.el7.x86_64
--> Running transaction check
---> Package zeromq3.x86_64 0:3.2.5-1.el7 will be installed
--> Processing Dependency: libpgm-5.2.so.0()(64bit) for package: zeromq3-3.2.5-1.el7.x86_64
--> Running transaction check
---> Package openpgm.x86_64 0:5.2.122-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch            Version                Repository     Size
================================================================================
Installing:
 python-zmq          x86_64          14.3.1-1.el7           epel          468 k
Installing for dependencies:
 openpgm             x86_64          5.2.122-2.el7          epel          171 k
 zeromq3             x86_64          3.2.5-1.el7            epel          344 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 984 k
Installed size: 2.9 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              313 kB/s | 984 kB  00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : openpgm-5.2.122-2.el7.x86_64                                 1/3
  Installing : zeromq3-3.2.5-1.el7.x86_64                                   2/3
  Installing : python-zmq-14.3.1-1.el7.x86_64                               3/3
  Verifying  : zeromq3-3.2.5-1.el7.x86_64                                   1/3
  Verifying  : python-zmq-14.3.1-1.el7.x86_64                               2/3
  Verifying  : openpgm-5.2.122-2.el7.x86_64                                 3/3

Installed:
  python-zmq.x86_64 0:14.3.1-1.el7

Dependency Installed:
  openpgm.x86_64 0:5.2.122-2.el7          zeromq3.x86_64 0:3.2.5-1.el7

Complete!
Resolving Dependencies
--> Running transaction check
---> 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
--> Running transaction check
---> Package python-babel.noarch 0:0.9.6-8.el7 will be installed
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version         Repository               Size
================================================================================
Installing:
 python-jinja2         noarch     2.7.2-2.el7     ol7_optional_latest     515 k
Installing for dependencies:
 python-babel          noarch     0.9.6-8.el7     ol7_latest              1.4 M
 python-markupsafe     x86_64     0.11-10.el7     ol7_latest               25 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)

Total size: 1.9 M
Installed size: 8.2 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-markupsafe-0.11-10.el7.x86_64                         1/3
  Installing : python-babel-0.9.6-8.el7.noarch                              2/3
  Installing : python-jinja2-2.7.2-2.el7.noarch                             3/3
  Verifying  : python-babel-0.9.6-8.el7.noarch                              1/3
  Verifying  : python-jinja2-2.7.2-2.el7.noarch                             2/3
  Verifying  : python-markupsafe-0.11-10.el7.x86_64                         3/3

Installed:
  python-jinja2.noarch 0:2.7.2-2.el7

Dependency Installed:
  python-babel.noarch 0:0.9.6-8.el7    python-markupsafe.x86_64 0:0.11-10.el7

Complete!
Resolving Dependencies
--> Running transaction check
---> Package python-requests.noarch 0:1.1.0-8.el7 will be installed
--> Processing Dependency: python-urllib3 for package: python-requests-1.1.0-8.el7.noarch
--> Running transaction check
---> Package python-urllib3.noarch 0:1.5-8.el7 will be installed
--> Processing Dependency: python-six for package: python-urllib3-1.5-8.el7.noarch
--> Running transaction check
---> Package python-six.noarch 0:1.3.0-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch         Version              Repository        Size
================================================================================
Installing:
 python-requests       noarch       1.1.0-8.el7          ol7_latest        70 k
Installing for dependencies:
 python-six            noarch       1.3.0-4.el7          ol7_latest        18 k
 python-urllib3        noarch       1.5-8.el7            ol7_latest        40 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 128 k
Installed size: 414 k
Downloading packages:
--------------------------------------------------------------------------------
Total                                              470 kB/s | 128 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-six-1.3.0-4.el7.noarch                                1/3
  Installing : python-urllib3-1.5-8.el7.noarch                              2/3
  Installing : python-requests-1.1.0-8.el7.noarch                           3/3
  Verifying  : python-requests-1.1.0-8.el7.noarch                           1/3
  Verifying  : python-urllib3-1.5-8.el7.noarch                              2/3
  Verifying  : python-six-1.3.0-4.el7.noarch                                3/3

Installed:
  python-requests.noarch 0:1.1.0-8.el7

Dependency Installed:
  python-six.noarch 0:1.3.0-4.el7       python-urllib3.noarch 0:1.5-8.el7

Complete!
 *  INFO: Running install_oracle_linux_stable()
Resolving Dependencies
--> Running transaction check
---> Package salt-minion.noarch 0:2015.5.0-1.el7 will be installed
--> Processing Dependency: salt = 2015.5.0-1.el7 for package: salt-minion-2015.5.0-1.el7.noarch
--> Running transaction check
---> Package salt.noarch 0:2015.5.0-1.el7 will be installed
--> Processing Dependency: systemd-python for package: salt-2015.5.0-1.el7.noarch
--> Processing Dependency: pciutils for package: salt-2015.5.0-1.el7.noarch
--> Running transaction check
---> Package pciutils.x86_64 0:3.2.1-4.el7 will be installed
---> Package systemd-python.x86_64 0:208-20.0.1.el7_1.3 will be installed
--> Processing Dependency: systemd = 208-20.0.1.el7_1.3 for package: systemd-python-208-20.0.1.el7_1.3.x86_64
--> Running transaction check
---> Package systemd.x86_64 0:208-20.0.1.el7 will be updated
--> Processing Dependency: systemd = 208-20.0.1.el7 for package: libgudev1-208-20.0.1.el7.x86_64
--> Processing Dependency: systemd = 208-20.0.1.el7 for package: systemd-sysv-208-20.0.1.el7.x86_64
---> Package systemd.x86_64 0:208-20.0.1.el7_1.3 will be an update
--> Processing Dependency: systemd-libs = 208-20.0.1.el7_1.3 for package: systemd-208-20.0.1.el7_1.3.x86_64
--> Running transaction check
---> Package libgudev1.x86_64 0:208-20.0.1.el7 will be updated
---> Package libgudev1.x86_64 0:208-20.0.1.el7_1.3 will be an update
---> Package systemd-libs.x86_64 0:208-20.0.1.el7 will be updated
---> Package systemd-libs.x86_64 0:208-20.0.1.el7_1.3 will be an update
---> Package systemd-sysv.x86_64 0:208-20.0.1.el7 will be updated
---> Package systemd-sysv.x86_64 0:208-20.0.1.el7_1.3 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch        Version                  Repository       Size
================================================================================
Installing:
 salt-minion         noarch      2015.5.0-1.el7           epel             24 k
Installing for dependencies:
 pciutils            x86_64      3.2.1-4.el7              ol7_latest       90 k
 salt                noarch      2015.5.0-1.el7           epel            3.9 M
 systemd-python      x86_64      208-20.0.1.el7_1.3       ol7_latest       90 k
Updating for dependencies:
 libgudev1           x86_64      208-20.0.1.el7_1.3       ol7_latest       55 k
 systemd             x86_64      208-20.0.1.el7_1.3       ol7_latest      2.6 M
 systemd-libs        x86_64      208-20.0.1.el7_1.3       ol7_latest      161 k
 systemd-sysv        x86_64      208-20.0.1.el7_1.3       ol7_latest       43 k

Transaction Summary
================================================================================
Install  1 Package  (+3 Dependent packages)
Upgrade             ( 4 Dependent packages)

Total download size: 6.9 M
Downloading packages:
No Presto metadata available for ol7_latest
--------------------------------------------------------------------------------
Total                                              1.7 MB/s | 6.9 MB  00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : systemd-libs-208-20.0.1.el7_1.3.x86_64                      1/12
  Updating   : systemd-208-20.0.1.el7_1.3.x86_64                           2/12
  Installing : systemd-python-208-20.0.1.el7_1.3.x86_64                    3/12
  Installing : pciutils-3.2.1-4.el7.x86_64                                 4/12
  Installing : salt-2015.5.0-1.el7.noarch                                  5/12
  Installing : salt-minion-2015.5.0-1.el7.noarch                           6/12
  Updating   : systemd-sysv-208-20.0.1.el7_1.3.x86_64                      7/12
  Updating   : libgudev1-208-20.0.1.el7_1.3.x86_64                         8/12
  Cleanup    : systemd-sysv-208-20.0.1.el7.x86_64                          9/12
  Cleanup    : libgudev1-208-20.0.1.el7.x86_64                            10/12
  Cleanup    : systemd-208-20.0.1.el7.x86_64                              11/12
  Cleanup    : systemd-libs-208-20.0.1.el7.x86_64                         12/12
  Verifying  : systemd-libs-208-20.0.1.el7_1.3.x86_64                      1/12
  Verifying  : pciutils-3.2.1-4.el7.x86_64                                 2/12
  Verifying  : systemd-sysv-208-20.0.1.el7_1.3.x86_64                      3/12
  Verifying  : systemd-python-208-20.0.1.el7_1.3.x86_64                    4/12
  Verifying  : systemd-208-20.0.1.el7_1.3.x86_64                           5/12
  Verifying  : salt-minion-2015.5.0-1.el7.noarch                           6/12
  Verifying  : libgudev1-208-20.0.1.el7_1.3.x86_64                         7/12
  Verifying  : salt-2015.5.0-1.el7.noarch                                  8/12
  Verifying  : systemd-libs-208-20.0.1.el7.x86_64                          9/12
  Verifying  : systemd-sysv-208-20.0.1.el7.x86_64                         10/12
  Verifying  : libgudev1-208-20.0.1.el7.x86_64                            11/12
  Verifying  : systemd-208-20.0.1.el7.x86_64                              12/12

Installed:
  salt-minion.noarch 0:2015.5.0-1.el7

Dependency Installed:
  pciutils.x86_64 0:3.2.1-4.el7                 salt.noarch 0:2015.5.0-1.el7
  systemd-python.x86_64 0:208-20.0.1.el7_1.3

Dependency Updated:
  libgudev1.x86_64 0:208-20.0.1.el7_1.3
  systemd.x86_64 0:208-20.0.1.el7_1.3
  systemd-libs.x86_64 0:208-20.0.1.el7_1.3
  systemd-sysv.x86_64 0:208-20.0.1.el7_1.3

Complete!
Resolving Dependencies
--> Running transaction check
---> Package salt-master.noarch 0:2015.5.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch           Version                  Repository    Size
================================================================================
Installing:
 salt-master         noarch         2015.5.0-1.el7           epel         862 k

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

Total download size: 862 k
Installed size: 867 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : salt-master-2015.5.0-1.el7.noarch                            1/1
  Verifying  : salt-master-2015.5.0-1.el7.noarch                            1/1

Installed:
  salt-master.noarch 0:2015.5.0-1.el7

Complete!
 *  INFO: Running install_oracle_linux_stable_post()
 *  INFO: Running install_oracle_linux_check_services()
 *  INFO: Running install_oracle_linux_restart_daemons()
 *  INFO: Salt installed!

@mjgorman
Copy link

Same Issue on Amazon Linux.

@vutny
Copy link
Contributor

vutny commented Aug 19, 2016

Try to use latest develop version of the bootstrap script and git installation mode.
This issue has partially covered by PR #931.

@rallytime
Copy link
Contributor

rallytime commented Sep 27, 2016

This is happening because there isn't a specific flag to install salt-api packages. The Oracle Linux install functions call out to the install_centos_stable function, which looks like this:

install_centos_stable() {
    __PACKAGES=""

    if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ];then
        __PACKAGES="${__PACKAGES} salt-cloud"
    fi
    if [ "$_INSTALL_MASTER" -eq $BS_TRUE ];then
        __PACKAGES="${__PACKAGES} salt-master"
    fi
    if [ "$_INSTALL_MINION" -eq $BS_TRUE ]; then
        __PACKAGES="${__PACKAGES} salt-minion"
    fi
    if [ "$_INSTALL_SYNDIC" -eq $BS_TRUE ];then
        __PACKAGES="${__PACKAGES} salt-syndic"
    fi

    # shellcheck disable=SC2086
    __yum_install_noinput ${__PACKAGES} || return 1

    return 0
}

There isn't a flag currently in the bootstrap script that handles installing the salt-api package. This needs to be added for all distros that split out the salt-api package, which I believe is most (if not all) of the distros packaged and hosted on repo.saltstack.com. However, you can use the git installation method to include the salt-api files as explained above.

@rallytime rallytime added this to the Approved milestone Oct 10, 2016
@stale stale bot added the stale label May 1, 2017
@stale
Copy link

stale bot commented May 1, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants