Feature #402

Report noop puppet actions seperately

Added by Mohamed Lrhazi over 1 year ago. Updated 6 months ago.

Status:Closed Start:10/07/2010
Priority:Normal Due date:
Assigned to:Ken Barber % Done:

100%

Category:Puppet Reports
Target version:0.5
Backlog:No Difficulity:
Votes: 3 (View)

Description

In puppet log, noop operations look like this:
info Puppet Applying configuration version '1286391176'
notice //gu_iptables::redhat/File[iptables]/checksum is {md5}878158421d4824500a101bfea33e60d6, should be md5 (noop)
notice //gu_iptables::redhat/File[iptables]/content is {md5}878158421d4824500a101bfea33e60d6, should be (noop)
info //gu_iptables::redhat/File[iptables] Scheduling refresh of Service[iptables]
notice //gu_iptables::redhat/Service[iptables] Would have triggered refresh from 1 dependencies

This reported by foreman as a successful modification involving two changes.

It would be nice if this was somehow reported as "Changes needed, but not applied"

There is a feature request that seems to be related in puppet: http://projects.puppetlabs.com/issues/3535

Thanks a lot.

Associated revisions

Revision 9b41cf08caf63c343ac3142fb912e914cc15f827
Added by Ohad Levy 6 months ago

fixes #402 - Add noops/pending to metric handling, and provide pending hosts for dashboard views.

This change adds the ability to see noops in metric reports inside
foreman graphs, charts and lists. The business reason for this is to allow
users to run their puppet agents in noop mode, and see where nodes have
converged within the foreman dashboard and various foreman reports.

The status data was always stored in the database, we just had to modify
the views and model to get at it.

This change modifies the dashboard adding the new state 'pending' so it appears
in the pie graph, and adds pending to the report view in the dashboard as well.

Revision 9ec7fdd0b9eb2735f1baedbfc11f6d77fd9ff6fb
Added by Ohad Levy 20 days ago

refs #402 - ensures that noops reports are shown currectly on all DB's (pg, mysql and sqlite)

History

Updated by Ohad Levy over 1 year ago

  • Category set to Puppet Reports
  • Target version set to 0.2
  • Backlog set to No

Updated by Ohad Levy about 1 year ago

  • Subject changed from Report noop puupet actions seperately to Report noop puppet actions seperately
  • Target version changed from 0.2 to 0.3

Updated by Ohad Levy 12 months ago

  • Target version deleted (0.3)

Updated by Marcello de Sousa 10 months ago

It would be awesome to have the ability to just audit a server with noop. That could also be handy during a puppet/foreman upgrade by setting all host to noop mode and see what it would do.

Looks similar to http://projects.puppetlabs.com/issues/6537

Probably obvious but, if this gets implemented I guess we should also have an extra status on the Dashboard displaying the "pending update" hosts (or something like it).

Updated by Ken Barber 6 months ago

I've added preliminary support:

https://github.com/kbarber/foreman/tree/ticket/402_noop-reports

Doesn't deal with 0.25 probably ... and there are not tests. Screenshots:

https://plus.google.com/u/1/photos/113052903761064527606/albums/5675992194604403937

Updated by Ken Barber 6 months ago

I've added 'pending' to the main dashboard reports - the table report and pie chart. This report is hyperlinked, there is a 'status.pending' search for hosts now so its easy to search for these hosts. I've changed pending hosts icon to be a 'warning' instead of 'notice' so its more obvious (I'm open for debate on this - it probably should be user configurable ultimately but I have no idea about what the sensible default is).

Changes squashed and pushed back into my branch.

Updated by Ken Barber 6 months ago

Added tests - and submitted pull request here:

https://github.com/ohadlevy/foreman/pull/14

Updated by Ken Barber 6 months ago

I was thinking of changing the 'noops' columns to just 'pending' ... would this be less obvious to Puppet users?

Updated by Mohamed Lrhazi 6 months ago

Ken Barber wrote:

I was thinking of changing the 'noops' columns to just 'pending' ... would this be less obvious to Puppet users?

Yeah, "pending" makes sense. It is what puppet dashboard uses too.

Updated by Ken Barber 6 months ago

Okay - I've changed it to 'pending' instead, changes pushed to branch.

Updated by Ohad Levy 6 months ago

  • Assigned to set to Ken Barber
  • Target version set to 0.5

Updated by Ohad Levy 6 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Ohad Levy 6 months ago

somehow git ammend via git gui removed the original author of this patch, full credit goes to Ken, sorry about that mate.

Also available in: Atom PDF