Bug 1758175 - katallo-rhsm-consumer has a bad standard error redirect
Summary: katallo-rhsm-consumer has a bad standard error redirect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Certificates
Version: 6.4.2
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-03 13:29 UTC by jeff.chapin@uni.edu
Modified: 2019-10-10 13:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-10 13:14:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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:


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