Project

General

Profile

Actions

Bug #7815

closed

package_upload yum plugin doesn't work on CentOS 6

Added by Anonymous about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
Client/Agent
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

After installing subscription-manager (from http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-6/x86_64/ as described on katello.org) I'm getting on every yum command:

Plugin "package_upload" can't be imported

Trying to execute the command manually raises:
Traceback (most recent call last):
  File "/usr/sbin/katello-package-upload", line 19, in <module>
    import package_upload
  File "/usr/lib/yum-plugins/package_upload.py", line 19, in <module>
    from subscription_manager import certmgr
ImportError: cannot import name certmgr

It seems there was some rewrite: https://github.com/candlepin/subscription-manager/commit/b53fdb99c879f6b5c311d1f93894a80a2bd2e983
The versions in that repo:
subscription-manager-1.13.5-1.el6.x86_64
python-rhsm-1.13.3-1.el6.x86_64

Actions #1

Updated by Eric Helms about 10 years ago

  • Translation missing: en.field_release set to 24
  • Difficulty set to medium
  • Triaged changed from No to Yes
Actions #2

Updated by Justin Sherrill about 10 years ago

  • Bugzilla link set to 1146292
Actions #3

Updated by Justin Sherrill about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Justin Sherrill
  • Priority changed from Normal to High
Actions #4

Updated by Justin Sherrill about 10 years ago

  • Pull request https://github.com/Katello/katello-agent/pull/15 added
  • Pull request deleted ()
Actions #5

Updated by Justin Sherrill about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #6

Updated by Justin Sherrill about 10 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Justin Sherrill about 10 years ago

  • Status changed from Closed to Assigned

an additional issue was found with this fix, as it does not work with older rhsm versions:

On subscription-manager-1.1.23-1.el6.x86_64.rpm or older, goferd fails to start properly (errors in /var/log/messages), and katello-package-upload:

[root@client ~]# katello-package-upload
Traceback (most recent call last):
File "/usr/sbin/katello-package-upload", line 19, in <module>
import package_upload
File "/usr/lib/yum-plugins/package_upload.py", line 19, in <module>
from subscription_manager import identity

Actions #8

Updated by The Foreman Bot about 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 61
Actions #9

Updated by Justin Sherrill about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #10

Updated by Eric Helms about 10 years ago

  • Translation missing: en.field_release changed from 24 to 14
Actions

Also available in: Atom PDF