Bug 1758175

Summary: katallo-rhsm-consumer has a bad standard error redirect
Product: Red Hat Satellite Reporter: jeff.chapin <jeff.chapin>
Component: CertificatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Pramuk <lpramuk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.2CC: inecas, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-10 13:14:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jeff.chapin@uni.edu 2019-10-03 13:29:25 UTC
Description of problem:
/usr/bin/katello-rhsm-consumer has bad redirects for STDERR, resulting in files named /1 that contain:

$ cat /1
Stopping goferd[  OK  ]
Starting goferd[  OK  ]

$ grep -n  '2&>1' /usr/bin/katello-rhsm-consumer
255:    systemctl reload docker >/dev/null 2&>1
258:    service docker reload >/dev/null 2&>1
265:  service goferd restart >/dev/null 2&>1


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

6.4.1

How reproducible:

100% of the time

Steps to Reproduce:
1.grep -n  '2&>1' /usr/bin/katello-rhsm-consumer

Alternatively:

1. yum -y remove "katello-ca-consumer*" --disablerepo=* --noplugins
2. yum -y localinstall "${SAT_SERVER}/pub/katello-ca-consumer-latest.noarch.rpm" --disablerepo=* --noplugins

This is from the official Satellite documentation for reinstalling this package when updating certificates on Satellite. 

Actual results:
$ cat /1
Stopping goferd[  OK  ]
Starting goferd[  OK  ]

Expected results:

No output is redirected to /dev/null, and no files are created. 

Additional info: