Bug 707358

Summary: Ignored option -c messages in log, when using --installroot.
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: medium    
Version: 6.1CC: ksrot, mebrown, sheltren, williams
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-3.2.29-18.el6 Doc Type: Bug Fix
Doc Text:
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning: Ignored option -c (probably due to merging -yc != -y -c) This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 17:34:36 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 Levente Farkas 2011-05-24 19:54:57 UTC
i see such messages in mock's log where 
Ignored option -c (probably due to merging -yc != -y -c)
it seems mock call yum with wrong options:
------------------------------------
DEBUG backend.py:739:  ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache']
DEBUG util.py:284:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'resolvedep', 'ccache']
DEBUG util.py:250:  Ignored option -c (probably due to merging -yc != -y -c)
DEBUG util.py:250:  0:ccache-3.1.4-1.el6.i686
DEBUG util.py:323:  Child returncode was: 0
DEBUG backend.py:739:  ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache']
DEBUG util.py:284:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/abc-6.1-i386/root/', 'install', 'ccache']
DEBUG util.py:250:  Ignored option -c (probably due to merging -yc != -y -c)
------------------------------------

Comment 1 Levente Farkas 2011-06-22 19:28:15 UTC
this still not fixed...

Comment 2 Clark Williams 2011-06-22 19:46:52 UTC
I believe that's yum issuing those warning messages

Comment 3 Jeff Sheltren 2011-06-23 15:02:05 UTC
Changing produce to RHEL

Comment 5 Karel Srot 2011-07-26 14:36:01 UTC
James,
is this going to be fixed on yum side? And how? Is 'yum -yc yum.conf ...' a valid cmd (I mean like  -y -c yum.conf)? Thank you in advance.

Comment 6 James Antill 2011-07-26 19:42:17 UTC
 No, we can't make -yc valid ... easily.

 The "bug" here is that if you use --installroot then it issues the warning, and we've fixed that upstream:

commit b4e12dec606dc19fa1ce2ba4be39e26e6145cacf
Author: James Antill <james>
Date:   Thu Jun 23 13:28:23 2011 -0400

    Don't show -c warning, when we've changed it due to --installroot. BZ 707358

...which takes the hammer approach to solving the problem:

-        if opts.conffile != pc.fn:
+        #  getRoot() changes it, but then setupYumConfig() changes it back. So
+        # don't test for this, if we are using --installroot.
+        if root == '/' and opts.conffile != pc.fn:

Comment 11 Jaromir Hradilek 2011-10-26 15:21:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, running a yum command with the "--installroot" command line option caused it to report the following warning:

    Ignored option -c (probably due to merging -yc != -y -c)

This update adapts the underlying source code not to display this warning when the "--installroot" option is in use, resolving this issue.

Comment 12 errata-xmlrpc 2011-12-06 17:34:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1702.html