Skip to content

Instantly share code, notes, and snippets.

@jantman
Created August 21, 2014 15:51
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 jantman/4b7cc8861d16f7713654 to your computer and use it in GitHub Desktop.
Save jantman/4b7cc8861d16f7713654 to your computer and use it in GitHub Desktop.
service noop issues

I feel like I must be missing something here.

  • The catalog JSON clearly shows noop=true on the Service[httpd] resource.
  • The agent log clearly shows the service was refreshed anyway
  • The httpd service logs clearly show the refresh actually happened (take my word on this one)
  • The report clearly does not reflect the refresh event - "out_of_sync_count: 0" "change_count: 0"
{
"exported": false,
"file": "/etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp",
"line": 153,
"parameters": {
"content": "A WHOLE BUNCH OF TEXT HERE",
"mode": "0644",
"notify": "Service[httpd]"
},
"tags": [
"file",
"service",
"cmgd_apache::service",
"install",
"cmgd_apache::install",
"class",
"cmgd_apache"
],
"title": "/etc/httpd/conf/httpd.conf",
"type": "File"
},
{
"exported": false,
"file": "/etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/service.pp",
"line": 46,
"parameters": {
"enable": true,
"ensure": "running",
"hasrestart": true,
"hasstatus": true,
"noop": true
},
"tags": [
"service",
"cmgd_apache::service",
"class",
"httpd",
"cmgd_apache"
],
"title": "httpd",
"type": "Service"
},
--- !ruby/object:Puppet::Transaction::Report
status: changed
configuration_version: tie4/e40375fea070b3873fd6dbbe19463a0aa55aeaa0
resource_statuses:
File[/etc/httpd/conf/httpd.conf]: !ruby/object:Puppet::Resource::Status
resource: File[/etc/httpd/conf/httpd.conf]
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp
line: 153
evaluation_time: 0.065985
change_count: 1
out_of_sync_count: 1
tags:
- file
- service
- "cmgd_apache::service"
- install
- "cmgd_apache::install"
- class
- cmgd_apache
time: 2014-08-21 11:26:48.835446 -04:00
events:
- !ruby/object:Puppet::Transaction::Event
audited: false
property: content
previous_value: "{md5}f918cd7abb946923744ff30160bce7dc"
desired_value: "{md5}65bb3d5cf14251d85b7c0f3b9eb56362"
historical_value:
message: "content changed '{md5}f918cd7abb946923744ff30160bce7dc' to '{md5}65bb3d5cf14251d85b7c0f3b9eb56362'"
name: !ruby/sym content_changed
status: success
time: 2014-08-21 11:26:48.885985 -04:00
out_of_sync: true
changed: true
resource_type: File
title: /etc/httpd/conf/httpd.conf
skipped: false
failed: false
containment_path:
- Stage[main]
- "Cmgd_apache::Install"
- File[/etc/httpd/conf/httpd.conf]
Service[httpd]: !ruby/object:Puppet::Resource::Status
resource: Service[httpd]
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/service.pp
line: 46
evaluation_time: 0.106786
change_count: 0
out_of_sync_count: 0
tags:
- service
- "cmgd_apache::service"
- class
- httpd
- cmgd_apache
time: 2014-08-21 11:26:48.904617 -04:00
events: []
out_of_sync: false
changed: false
resource_type: Service
title: httpd
skipped: false
failed: false
containment_path:
- Stage[main]
- "Cmgd_apache::Service"
- Service[httpd]
environment: tie4
time: 2014-08-21 11:26:36.775838 -04:00
report_format: 4
metrics:
time: !ruby/object:Puppet::Util::Metric
label: Time
values:
- - user
- User
- 0.000788
- - service
- Service
- 0.776667
- - mount
- Mount
- 0.006256
- - anchor
- Anchor
- 0.00311
- - file
- File
- 10.413324
- - ini_setting
- "Ini setting"
- 0.008607
- - config_retrieval
- "Config retrieval"
- 6.22473382949829
- - vcsrepo
- Vcsrepo
- 0.000541
- - yumrepo
- Yumrepo
- 0.010226
- - datacat_collector
- "Datacat collector"
- 0.030959
- - cron
- Cron
- 0.000838
- - schedule
- Schedule
- 0.00163
- - total
- Total
- 17.5199628294983
- - datacat_fragment
- "Datacat fragment"
- 0.020652
- - filebucket
- Filebucket
- 0.000196
- - group
- Group
- 0.000735
- - package
- Package
- 0.0207
name: time
resources: !ruby/object:Puppet::Util::Metric
label: Resources
values:
- - failed_to_restart
- "Failed to restart"
- 0
- - restarted
- Restarted
- 1
- - scheduled
- Scheduled
- 0
- - skipped
- Skipped
- 0
- - failed
- Failed
- 0
- - out_of_sync
- "Out of sync"
- 2
- - total
- Total
- 239
- - changed
- Changed
- 2
name: resources
events: !ruby/object:Puppet::Util::Metric
label: Events
values:
- - success
- Success
- 2
- - total
- Total
- 2
- - failure
- Failure
- 0
name: events
changes: !ruby/object:Puppet::Util::Metric
label: Changes
values:
- - total
- Total
- 2
name: changes
puppet_version: "3.6.2"
host: djaprxtie10.ddtc.example.com
logs:
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:37.256295 -04:00
message: "Retrieving pluginfacts"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:37.386273 -04:00
message: "Retrieving plugin"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.424831 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/python_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.502372 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/etckepper_puppet.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.504144 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.505802 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/pe_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.507869 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/root_home.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.509320 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/virtualenv_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.535421 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.537037 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/warranty.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.539465 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/dell_racadm_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.541466 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/dell_express_service_code.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.543024 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.545269 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/dell_drac_lannetworking.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.547315 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.548737 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.550106 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:39.551524 -04:00
message: "Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:45.862672 -04:00
message: "Caching catalog for djaprxtie10.ddtc.example.com"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym warning
source: Puppet
time: 2014-08-21 11:26:46.119818 -04:00
message: |-
The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:816:in `set_default')
tags:
- warning
- !ruby/object:Puppet::Util::Log
level: !ruby/sym warning
source: Puppet
time: 2014-08-21 11:26:46.160371 -04:00
message: "Found multiple default providers for vcsrepo: hg, dummy, cvs, git, bzr, svn; using hg"
tags:
- warning
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: Puppet
time: 2014-08-21 11:26:47.240873 -04:00
message: "Applying configuration version 'tie4/e40375fea070b3873fd6dbbe19463a0aa55aeaa0'"
tags:
- info
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: "/Stage[main]/Cmgd_apache::Install/File[/etc/httpd/conf/httpd.conf]/content"
time: 2014-08-21 11:26:48.881711 -04:00
message: "DIFF HERE"
tags:
- file
- service
- "cmgd_apache::service"
- install
- notice
- "cmgd_apache::install"
- class
- content
- cmgd_apache
line: 153
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: "/Stage[main]/Cmgd_apache::Install/File[/etc/httpd/conf/httpd.conf]"
time: 2014-08-21 11:26:48.895706 -04:00
message: "Filebucketed /etc/httpd/conf/httpd.conf to puppet with sum f918cd7abb946923744ff30160bce7dc"
tags:
- file
- service
- info
- "cmgd_apache::service"
- install
- "cmgd_apache::install"
- class
- cmgd_apache
line: 153
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: "/Stage[main]/Cmgd_apache::Install/File[/etc/httpd/conf/httpd.conf]/content"
time: 2014-08-21 11:26:48.900522 -04:00
message: "content changed '{md5}f918cd7abb946923744ff30160bce7dc' to '{md5}65bb3d5cf14251d85b7c0f3b9eb56362'"
tags:
- file
- service
- "cmgd_apache::service"
- install
- notice
- "cmgd_apache::install"
- class
- cmgd_apache
line: 153
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: "/Stage[main]/Cmgd_apache::Install/File[/etc/httpd/conf/httpd.conf]"
time: 2014-08-21 11:26:48.901709 -04:00
message: "Scheduling refresh of Service[httpd]"
tags:
- file
- service
- info
- "cmgd_apache::service"
- install
- "cmgd_apache::install"
- class
- cmgd_apache
line: 153
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/install.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: "/Stage[main]/Cmgd_apache::Service/Service[httpd]"
time: 2014-08-21 11:27:02.389521 -04:00
message: "Triggered 'refresh' from 1 events"
tags:
- service
- "cmgd_apache::service"
- notice
- class
- httpd
- cmgd_apache
line: 46
file: /etc/puppet/environments/tie4/modules-community/cmgd_apache/manifests/service.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: "/Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content"
time: 2014-08-21 11:27:14.789807 -04:00
message: "\n--- /etc/mcollective/facts.yaml\t2014-08-21 10:09:37.000000000 -0400\n+++ /tmp/puppet-file20140821-7063-qsakqn-0\t2014-08-21 11:27:14.000000000 -0400\n@@ -84,7 +84,7 @@\n operatingsystemmajrelease: \x225\x22\n operatingsystemrelease: \x225.5\x22\n osfamily: RedHat\n- path: \x22/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/services/django/tie1/storyville/tie1/bin:/admin/tie1/site-venv/bin\x22\n+ path: \x22/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/services/django/tie1/storyville/tie1/bin:/admin/tie1/site-venv/bin:/root/bin\x22\n pg_archive_command: \x22/data_postgres/9.0/data/archive_cmd.sh \x5cx22%p\x5cx22 \x5cx22%f\x5cx22\x22\n pg_log_autovacuum_min_duration: \x220\x22\n pg_log_min_duration_statement: \x221000\x22\n"
tags:
- file
- factsource
- mcollective_helper
- notice
- server
- yaml
- "mcollective::soft_include"
- config
- "puppet_helpers::mcollective_helper"
- class
- mcollective
- "mcollective::server"
- content
- "mcollective::server::config"
- soft_include
- "mcollective::server::config::factsource::yaml"
- puppet_helpers
line: 16
file: /etc/puppet/environments/tie4/modules-community/mcollective/manifests/server/config/factsource/yaml.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym info
source: "/Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]"
time: 2014-08-21 11:27:14.797946 -04:00
message: "Filebucketed /etc/mcollective/facts.yaml to puppet with sum a429dcf080ad02601590cfc39b641bfe"
tags:
- file
- info
- factsource
- mcollective_helper
- server
- yaml
- "mcollective::soft_include"
- config
- "puppet_helpers::mcollective_helper"
- class
- mcollective
- "mcollective::server"
- "mcollective::server::config"
- soft_include
- "mcollective::server::config::factsource::yaml"
- puppet_helpers
line: 16
file: /etc/puppet/environments/tie4/modules-community/mcollective/manifests/server/config/factsource/yaml.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: "/Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content"
time: 2014-08-21 11:27:14.807442 -04:00
message: "content changed '{md5}a429dcf080ad02601590cfc39b641bfe' to '{md5}a475c2d90407ef57d83eadce54494e8a'"
tags:
- file
- factsource
- mcollective_helper
- notice
- server
- yaml
- "mcollective::soft_include"
- config
- "puppet_helpers::mcollective_helper"
- class
- mcollective
- "mcollective::server"
- "mcollective::server::config"
- soft_include
- "mcollective::server::config::factsource::yaml"
- puppet_helpers
line: 16
file: /etc/puppet/environments/tie4/modules-community/mcollective/manifests/server/config/factsource/yaml.pp
- !ruby/object:Puppet::Util::Log
level: !ruby/sym notice
source: Puppet
time: 2014-08-21 11:27:15.823782 -04:00
message: "Finished catalog run in 28.98 seconds"
tags:
- notice
transaction_uuid: "4d7b1689-058a-458b-bfdf-bdb2825b0b19"
kind: apply
---
time:
user: 0.000788
service: 0.776667
mount: 0.006256
file: 10.413324
anchor: 0.00311
last_run: 1408634835
ini_setting: 0.008607
yumrepo: 0.010226
vcsrepo: 0.000541
config_retrieval: 6.22473382949829
datacat_collector: 0.030959
schedule: 0.00163
cron: 0.000838
total: 17.5199628294983
datacat_fragment: 0.020652
filebucket: 0.000196
package: 0.0207
group: 0.000735
resources:
failed_to_restart: 0
restarted: 1
scheduled: 0
skipped: 0
failed: 0
total: 239
out_of_sync: 2
changed: 2
events:
success: 2
total: 2
failure: 0
changes:
total: 2
version:
config: tie4/e40375fea070b3873fd6dbbe19463a0aa55aeaa0
puppet: "3.6.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment