Bug 676356

Summary: Error: Could not install rpm "yum install -y " has output on stderr
Product: [Retired] Red Hat Hardware Certification Program Reporter: Caspar Zhang <czhang>
Component: Test Suite (harness)Assignee: Greg Nichols <gnichols>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: qcai, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-06 18:48:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Caspar Zhang 2011-02-09 16:00:29 UTC
Description of problem:

When running `v7 plan', v7 would check required RPMs, if required RPMs are missing, it would try to install them, but it always gives the following error output even after installation succeeded:

Error: Could not install rpm 
"yum install -y xxxx" has output on stderr

This is because in V7_SRC/v7/command.py, 

 68         if self.errors and len(self.errors) > 0:
 69             raise V7CommandException(self, "has output on stderr")

And `yum install' will gives warning message via stderr:

This system is not registered with RHN.
RHN support will be disabled.
Warning: RPMDB altered outside of yum.

That causes error.

I doubt whether Line 68-69 are necessary for checking error, do we have any commands could be judged fail/success running only via stderr output?

Comment 1 Rob Landry 2011-04-01 14:20:23 UTC
Is there something to fix here, I'm not clear from the above if there is any side effect other than yum reports and error and subsequently v7 reports an error; fix the yum issues and the v7 problem reporting would be resolved?