saltstack/salt — Issue #875: state pkg won't install package nscd
Author: dhoffutt
Created: 2012-03-09 21:50:15+00:00
State: open

CentOS 6.1; Salt 0.9.7

Have created this salt file:

```
pam_ldap:
pkg:
- installed
- order: 1
openldap-clients:
pkg:
- installed
- order: 2
openldap:
pkg:
- installed
- order: 3
nscd:
pkg:
- installed
- order: 4
nss-pam-ldapd:
pkg:
- installed
- order: 5
authconfig:
pkg:
- installed
- order: 6
```

Running this works great until it reaches installing package nscd. On the minion, running "salt-call -l debug state.highstate" produces this:

```
local:
----------
State: - pkg
Name: nscd
Function: installed
Result: False
Comment: Package nscd failed to install
Changes:
```

The log_level was set to debug on the minion, and shows this:

```
[INFO ] Executing state pkg.installed for nscd
Loaded plugins: fastestmirror
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.nac.net
* epel: mirror.cc.columbia.edu
* extras: mirrors.adams.net
* updates: mirror.trouble-free.net
Running rpm_check_debug
[ERROR ] No changes made for nscd
[ERROR ] No changes made for nscd
[INFO ] Loading fresh modules for stat
```

Saying "No changes for nscd" might lead one to believe it's already installed and up-to-date, but it was not installed yet. Have been playing with this for half a day using VMs and restoring a sane snapshot. It performs in this same manner every single time.

Further, I had been counting on nss-pam-ldapd package to install nscd as a prerequisite - though no error was thrown when doing it this way, nscd never installed as a result either - so that's why I have been trying to explicitly install nscd with its own state entry.

Thank you!