Skip to content

Instantly share code, notes, and snippets.

@mshade
Created December 15, 2014 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshade/27de2cca41a421fe0ac0 to your computer and use it in GitHub Desktop.
Save mshade/27de2cca41a421fe0ac0 to your computer and use it in GitHub Desktop.
collectd state fails on centos 6.6
collectd-client:
pkg.installed:
- pkgs:
- collectd
file.managed:
- name: /etc/collectd.conf
- source: salt://collectd/files/client.conf
service:
- name: collectd
- enable: True
- running
- watch:
- file: /etc/collectd.conf
- require:
- pkg: collectd-client
# salt-call state.sls collectd
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://collectd/init.sls'
[INFO ] Running state [collectd-client] at time 21:03:26.445924
[INFO ] Executing state pkg.installed for collectd-client
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{ARCH}" --pkgnarrow=all --all' in directory '/root'
[INFO ] Executing command 'repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --quiet --whatprovides collectd' in directory '/root'
[ERROR ] The following package(s) were not found, and no possible matches were found in the package db: collectd
[INFO ] Completed state [collectd-client] at time 21:03:29.295642
[INFO ] Running state [/etc/collectd.conf] at time 21:03:29.296402
[INFO ] Executing state file.managed for /etc/collectd.conf
[INFO ] File /etc/collectd.conf is in the correct state
[INFO ] Completed state [/etc/collectd.conf] at time 21:03:29.842398
local:
----------
ID: collectd-client
Function: pkg.installed
Result: False
Comment: The following package(s) were not found, and no possible matches were found in the package db: collectd
Started: 21:03:26.445924
Duration: 2849.718 ms
Changes:
----------
ID: collectd-client
Function: file.managed
Name: /etc/collectd.conf
Result: True
Comment: File /etc/collectd.conf is in the correct state
Started: 21:03:29.296402
Duration: 545.996 ms
Changes:
----------
ID: collectd-client
Function: service.running
Name: collectd
Result: False
Comment: One or more requisite failed
Started:
Duration:
Changes:
Summary
------------
Succeeded: 1
Failed: 2
------------
Total states run: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment