Bug 1317325 - Puppet keeps logging "sh: vdsmdummy: command not found" when ifconfig ';vdsmdummy;'
Summary: Puppet keeps logging "sh: vdsmdummy: command not found" when ifconfig ';vdsmd...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Fact
Version: 6.1.7
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-14 00:58 UTC by Shinobu KINJO
Modified: 2019-10-10 11:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-22 21:05:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shinobu KINJO 2016-03-14 00:58:21 UTC
# Description of problem:
######

When we do:

 ~$ ifconfig ';vdsmdummy;'

the puppet logs:

 sh: vdsmdummy: command not found


Probably it's good enough to enclose #{interface} in single quotes in ip.rb located at "lib/facter/util".

Only this line:

 lib/facter/util/ip.rb#130
 output = Facter::Util::IP.exec_ifconfig([interface,"2>/dev/null"])

is a bit different.
interface becomes #{interface} then will be transformed to "'#{interface}'".

AFAIK: it's fixed in ★facter-2.4.3-3.el7★ but ★facter-1.7.6-2.el6sat★ -;
Please do very small change...

# Version-Release number of selected component (if applicable):
######

Name        : facter
Arch        : x86_64
Epoch       : 1
Version     : 1.7.6
Release     : 2.el6sat
Size        : 238 k
Repo        : installed
From repo   : rhel-6-server-satellite-6.1-rpms
Summary     : Ruby module for collecting simple facts about a host operating system
URL         : http://www.puppetlabs.com/puppet/related-projects/facter
License     : ASL 2.0
Description : Ruby module for collecting simple facts about a host Operating
            : system. Some of the facts are preconfigured, such as the hostname and the
            : operating system. Additional facts can be added through simple Ruby scripts

# How reproducible:
######

# Steps to Reproduce:
######
1.
2.
3.

# Actual results:
######

# Expected results:
######

# Additional info:
######

Comment 1 Bryan Kearney 2016-04-22 21:05:12 UTC
Satellite 6.2 will be delivering facter 2.4.6. I am closing this out as NEXT_RELEASE since we will not be backporting changes to facter.


Note You need to log in before you can comment on or make changes to this bug.