Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1161987 - yum-plugins-copr breaks yum api tools loading TYPE_CORE plugins only
Summary: yum-plugins-copr breaks yum api tools loading TYPE_CORE plugins only
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e282e227a29bc4622035aa1cd47...
: 1161937 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-10 00:28 UTC by Bill
Modified: 2014-12-07 08:44 UTC (History)
5 users (show)

Fixed In Version: yum-utils-1.1.31-27.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-06 10:06:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.90 KB, text/plain)
2014-11-10 00:28 UTC, Bill
no flags Details
File: dso_list (63 bytes, text/plain)
2014-11-10 00:28 UTC, Bill
no flags Details
File: environ (287 bytes, text/plain)
2014-11-10 00:28 UTC, Bill
no flags Details

Description Bill 2014-11-10 00:28:00 UTC
Description of problem:
Yumex failed after entered the password. Reported "Backend not running as expected" Error code 1.

Version-Release number of selected component:
yumex-3.0.16-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python -E /usr/share/yumex/yum_childtask.py 2 True False /etc/yum.conf
executable:     /usr/share/yumex/yum_childtask.py
kernel:         3.17.1-304.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
plugins.py:555:registerCommand:ConfigError: registration of commands not supported

Traceback (most recent call last):
  File "/usr/share/yumex/yum_childtask.py", line 63, in <module>
    my = YumServer(debuglevel, plugins, offline, repos, yum_conf)
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 207, in __init__
    self.yumbase # init the YumBase attribute
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 231, in yumbase
    yumbase.repos.setProgressBar(self.dnlCallback)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1078, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 694, in _getRepos
    self.conf # touch the config class first
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1086, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 382, in _getConfig
    startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 638, in doPluginSetup
    plugin_types, confpath, disabled_plugins, enabled_plugins)
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 166, in __init__
    self.run('config')
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/copr.py", line 45, in config_hook
    conduit.registerCommand(CoprCommand())
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 555, in registerCommand
    raise Errors.ConfigError(_('registration of commands not supported'))
ConfigError: registration of commands not supported

Local variables in innermost frame:
self: <yum.plugins.ConfigPluginConduit instance at 0x7fa0d701e128>
command: <copr.CoprCommand instance at 0x7fa0d701e320>

Comment 1 Bill 2014-11-10 00:28:03 UTC
Created attachment 955632 [details]
File: backtrace

Comment 2 Bill 2014-11-10 00:28:04 UTC
Created attachment 955633 [details]
File: dso_list

Comment 3 Bill 2014-11-10 00:28:05 UTC
Created attachment 955634 [details]
File: environ

Comment 4 Tim Lauridsen 2014-11-11 06:44:13 UTC
This is a bug in the COPR yum plugin

a TYPE_CORE plugin should not register commands

the plugin should be a TYPE_INTERACTIVE plugin

Comment 5 Bill 2014-11-11 10:12:46 UTC
Ah thanks.

Did yum list yum* and saw this:

yum.noarch                                 3.4.3-153.fc21    @fedora            
yum-langpacks.noarch                       0.4.3-2.fc21      @fedora            
yum-metadata-parser.x86_64                 1.1.4-14.fc21     @fedora            
yum-plugin-copr.noarch                     1.1.31-25.fc20    @updates-testing/20
.
.
.
.

I removed the fc20 package yum-plugin-copr.noarch and yumex now runs without error. I guess this was a hangover of when I was messing around installing from copr under fc20 before upgrading to fc21. It looks like yum-plugin-copr.noarch doesn't currently exist in fc21 repos.

Comment 6 Tim Lauridsen 2014-11-11 15:47:41 UTC
*** Bug 1161937 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2014-11-18 13:17:43 UTC
yum-utils-1.1.31-27.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/yum-utils-1.1.31-27.fc21

Comment 8 Fedora Update System 2014-11-19 03:09:40 UTC
Package yum-utils-1.1.31-27.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-utils-1.1.31-27.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15366/yum-utils-1.1.31-27.fc21
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-12-06 10:06:24 UTC
yum-utils-1.1.31-27.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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