Project

General

Profile

Actions

Bug #238

closed

Report wrong marked

Added by Jan Doleschal over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Puppet Reports
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi all,

got the following issue. When tidying logfiles with puppet the foreman report gets marked as failure. Please have a look on both attached pictures, its better than a long explanation.

Thanks
Jan


Files

Foreman_Report.jpg View Foreman_Report.jpg 87.5 KB The report overview Jan Doleschal, 05/05/2010 07:51 AM
Foreman_Host_Report.jpg View Foreman_Host_Report.jpg 68.2 KB The detailed host report Jan Doleschal, 05/05/2010 07:51 AM
Actions #1

Updated by Ohad Levy over 14 years ago

I would need to see the content of the report in order to understand the bug (e.g. if its a puppet bug or a foreman bug).
could you please do the following - goto foreman directory and type:
./script/console production
<wait for prompt>
Report.find(83402).log

and attache the output.

Thanks.

Actions #2

Updated by Jan Doleschal over 14 years ago

Here the console output:

Report.find(83402).log

=> #<Puppet::Transaction::Report:0x2b80aad0d350 @host="zd-gis-s6.zdkwh.mlrbw.net", @records={}, @metrics={"time"=>#<Puppet::Util::Metric:0x2b80aad100a0 @values=:tidy, "Tidy", 0.00106596946716309], [:total, "Total", 18.4244208335876], [:sshkey, "Sshkey", 0.000674009323120117], [:schedule, "Schedule", 0.00156211853027344], [:file, "File", 3.01665377616882], [:service, "Service", 1.24583768844604], [:group, "Group", 0.000815868377685547], [:filebucket, "Filebucket", 0.000329017639160156], [:user, "User", 0.0095221996307373], [:config_retrieval, "Config retrieval", 1.55803108215332], [:exec, "Exec", 0.00110173225402832], [:package, "Package", 12.5888273715973, @name="time", @label="Time">, "resources"=>#<Puppet::Util::Metric:0x2b80aad0eb10 @values=:scheduled, "Scheduled", 125], [:skipped, "Skipped", 10], [:total, "Total", 138], [:applied, "Applied", 1], [:failed, "Failed", 0], [:restarted, "Restarted", 0], [:out_of_sync, "Out of sync", 1], [:failed_restarts, "Failed restarts", 0, @name="resources", @label="Resources">, "changes"=>#<Puppet::Util::Metric:0x2b80aad0e048 @values=:total, "Total", 1, @name="changes", @label="Changes">}, @logs=[#<Puppet::Util::Log:0x2b80aad132f0 @line=10, @source="//cleanup/Tidy[logiles]", @level=:notice, @message="Tidying File[/var/log/samba/log.wb-ZDKWH.old]", @tags=["tidy", "logiles", "class", "cleanup", "basic_sys", "node", "default", "main", "notice"], @file="/appserver/puppet/modules/production/cleanup/manifests/init.pp", @version=1273025760, @time=Wed May 05 08:26:51 +0200 2010>, #<Puppet::Util::Log:0x2b80aad11f68 @source="/File[/var/log/samba/log.wb-ZDKWH.old]/ensure", @level=:notice, @message="removed", @tags=["file", "tidy", "logiles", "class", "cleanup", "basic_sys", "node", "default", "main", "ensure", "notice"], @version=1273025760, @time=Wed May 05 08:27:01 +0200 2010>], @time=Wed May 05 06:27:12 UTC 2010>

Thanks!

Actions #3

Updated by Ohad Levy over 14 years ago

the attached reports "Skipped"- 10, thats why it reports it as an error.

do you have any idea why you have skipped values?

Actions #4

Updated by Jan Doleschal over 14 years ago

I´m scheduling some resources, could this cause the skips?

Actions #5

Updated by Ohad Levy over 14 years ago

can you try running with --ignoreschedule ?
this might be my motivation to remove the skipped from the report types which are considered as errors.

Actions #6

Updated by Jan Doleschal over 14 years ago

Ok,

that´s it! When running with --ingoreschedule the reports are marked correct.

Thanks for the quick response

Jan

Actions #7

Updated by Ohad Levy over 14 years ago

  • Status changed from New to Ready For Testing
  • % Done changed from 0 to 100
Actions #8

Updated by Ohad Levy over 14 years ago

  • Category set to Puppet Reports
  • Status changed from Ready For Testing to Closed
  • Assignee set to Ohad Levy
  • Target version set to 0.1-5
Actions

Also available in: Atom PDF