The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #22322

facter should suppress stderr from "swap" commands on Solaris

Added by Anonymous over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:solaris
Target version:1.7.4
Keywords:solaris swap stderr Affected Facter version:
Branch:https://github.com/puppetlabs/facter/pull/530

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

[ from a customer ]

facter should suppress stderr from “swap” commands on Solaris (2>/dev/null) as this causes the pe-mcollective-metadata cron job to spew out many unnecessary emails to root on a system with no swap device.

This cron entry causes output (and conversely, an email to root every time it runs):

# Puppet Name: pe-mcollective-metadata
0,15,30,45 * * * * /opt/puppet/sbin/refresh-mcollective-metadata

Here’s the junk from facter, when you do not have swap devices configured. Facter no longer errors when there’s no swap device, however it shouldn’t output any message (the swap command actually does this, so it needs to be redirected to null —– 2>/dev/null)

root@mndevadm02 puppetlabs # /opt/puppet/sbin/refresh-mcollective-metadata
No swap devices configured
No swap devices configured
No swap devices configured
No swap devices configured

History

#2 Updated by Anonymous over 2 years ago

  • Description updated (diff)

#3 Updated by Anonymous over 2 years ago

#4 Updated by Charlie Sharpsteen over 2 years ago

  • Status changed from Accepted to In Topic Branch Pending Review
  • Branch set to https://github.com/puppetlabs/facter/pull/530

#5 Updated by Adrien Thebo over 2 years ago

  • Category set to solaris
  • Status changed from In Topic Branch Pending Review to Merged - Pending Release
  • Assignee deleted (Anonymous)
  • Target version set to 1.7.4
  • Keywords changed from solaris customer to solaris swap stderr

Merged into stable in f457f59; this should be released in 1.7.4.

#6 Updated by Melissa Stone over 2 years ago

  • Status changed from Merged - Pending Release to Closed

Release in Facter 1.7.4-rc1

Also available in: Atom PDF