Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1475275 - enabled_repos_upload.py has invalid syntax for Python2.4 on EL5
Summary: enabled_repos_upload.py has invalid syntax for Python2.4 on EL5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.2.11
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-26 11:18 UTC by Evgeni Golov
Modified: 2019-09-25 21:21 UTC (History)
3 users (show)

Fixed In Version: katello-host-tools-3.0.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-17 19:44:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20404 0 Normal Closed enabled_repos_upload.py has invalid syntax for Python2.4 on EL5 2020-12-04 08:36:08 UTC

Description Evgeni Golov 2017-07-26 11:18:12 UTC
With the update from katello-agent-3.0.0-2.el5.noarch to katello-agent-3.0.0-3.el5.noarch several files were moved to the katello-host-tools-3.0.0-3.el5.noarch package.
In this package the pyc and pyo files for /usr/lib/yum-plugins/enabled_repos_upload.py are missing.
As a result yum is broken:
# yum list kernel
Plugin "enabled_repos_upload" can't be imported
Loaded plugins: package_upload, product-id, security, subscription-manager

Comment 1 Evgeni Golov 2017-07-26 11:18:16 UTC
Created from redmine issue http://projects.theforeman.org/issues/20404

Comment 2 Evgeni Golov 2017-07-26 11:18:20 UTC
Upstream bug assigned to None

Comment 3 Evgeni Golov 2017-07-26 11:20:15 UTC
The issue is not really the missing files, it's the syntax of the plugin not being compatible with Python 2.4.

Comment 6 Satellite Program 2017-07-26 22:15:06 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20404 has been resolved.

Comment 7 Evgeni Golov 2017-08-01 15:06:47 UTC
Verification:

After installation, the following files exist:
/usr/lib/yum-plugins/enabled_repos_upload.py
/usr/lib/yum-plugins/enabled_repos_upload.pyc
/usr/lib/yum-plugins/enabled_repos_upload.pyo
(the later two were missing before)

The plugin loads fine, that means, any yum command (like "yum list kernel") succeeds
* without the output of Plugin '"enabled_repos_upload" can't be imported'
* and the "Loaded plugins" line contains "enabled_repos_upload"

Comment 8 Evgeni Golov 2017-08-01 15:08:22 UTC
The above should be after installing katello-host-tools in a EL5 client.

Comment 9 jcallaha 2017-08-01 15:13:54 UTC
Verified in Satellite 6.2.11 Snap 3

I was able to successfully install katello-agent on a RHEL5 client, then verified that the expected files were present.

Installed:
  katello-agent.noarch 0:3.0.1-1.el5                                                                                                                                                          

Dependency Installed:
  gofer.noarch 0:2.7.7-2.el5
  katello-host-tools.noarch 0:3.0.1-1.el5
  katello-host-tools-fact-plugin.noarch 0:3.0.1-1.el5
  pulp-rpm-handlers.noarch 0:2.8.7.15-2.el5     
  python-ctypes.x86_64 0:1.0.2-3.el5
  python-gofer.noarch 0:2.7.7-2.el5
  python-gofer-proton.noarch 0:2.7.7-2.el5
  python-hashlib.x86_64 0:20081119-7.el5sat
  python-isodate.noarch 0:0.5.0-4.pulp.el5
  python-pulp-agent-lib.noarch 0:2.8.7.13-1.el5
  python-pulp-common.noarch 0:2.8.7.13-1.el5
  python-pulp-rpm-common.noarch 0:2.8.7.15-2.el5
  python-qpid-proton.x86_64 0:0.9-16.el5
  qpid-proton-c.x86_64 0:0.9-16.el5            

Complete!


[root@qe-blade-03 ~]# find /usr/lib/yum-plugins/ -name enabled_repos_upload*
/usr/lib/yum-plugins/enabled_repos_upload.pyc
/usr/lib/yum-plugins/enabled_repos_upload.pyo
/usr/lib/yum-plugins/enabled_repos_upload.py

Comment 10 Mike McCune 2017-08-17 19:44:23 UTC
This bug was incorrectly missed from the Errata advisory for 6.2.11 but we did ship the fix for this bug with that update. Manually moving this to CLOSED: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://access.redhat.com/errata/RHBA-2017:2466


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