Bug 676356 - Error: Could not install rpm "yum install -y " has output on stderr
Summary: Error: Could not install rpm "yum install -y " has output on stderr
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (harness)
Version: 1.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-09 16:00 UTC by Caspar Zhang
Modified: 2013-07-03 07:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-06 18:48:09 UTC


Attachments (Terms of Use)

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?


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