Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1270223

Summary: [redhat-upgrade-tool] xccdf_preupg_rule_system_repositories_check doesn't like 'include' in repo files
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Belka <jbelka>
Component: redhat-upgrade-toolAssignee: Michal Bocek <mbocek>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: dfediuck, jbelka, jhornice, mganisin, phracek, ttomecek
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: redhat-upgrade-tool-0.7.45-1.el6 Doc Type: Enhancement
Doc Text:
Previously, the Red Hat Upgrade Tool failed when there was an "include=<URL>" statement in a .repo file in the /etc/yum.repos.d/ directory. With this update, the statement is supported and the repository file with the "include=<URL>" statement is processed correctly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 09:02:41 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 Jiri Belka 2015-10-09 10:21:16 UTC
Description of problem:

Traceback (most recent call last):

redhat_upgrade_tool.sysprep INFO: setting up upgrade symlink: /system-upgrade->/var/lib/system-upgrade
redhat_upgrade_tool.sysprep INFO: creating upgraderoot dir: /system-upgrade-root
Traceback (most recent call last):
  File "/usr/bin/redhat-upgrade-tool", line 420, in <module>
    main(args)
  File "/usr/bin/redhat-upgrade-tool", line 314, in main
    disable_old_repos()
  File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/sysprep.py", line 250, in disable_old_repos
    parser.read(repo)
  File "/usr/lib64/python2.6/ConfigParser.py", line 296, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.6/ConfigParser.py", line 503, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /etc/yum.repos.d/rhel6.repo, line: 1
'include=http://10.34.63.204/rhel6.repo\n'


Yes, we like to use 'include' in repo files.

Version-Release number of selected component (if applicable):
redhat-upgrade-tool-0.7.41-1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. create a repo file with 'include' statemant
2.
3.

Actual results:
fails

Expected results:
should work

Additional info:

Comment 2 Petr Hracek 2016-06-07 10:42:12 UTC
How does it look like you repo file?
Can you please past it?

Comment 3 Jiri Belka 2016-06-07 10:48:10 UTC
an example:

echo 'include=http://example.com/foo.repo' > /etc/yum.repos.d/foo.repo

Comment 4 Michal Bocek 2016-08-02 08:24:05 UTC
Replicated in the latest version redhat-upgrade-tool-0.7.44-1.

Comment 8 errata-xmlrpc 2016-11-04 09:02:41 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.

https://rhn.redhat.com/errata/RHEA-2016-2619.html