Description of problem: $Subject. Log has: 2016-07-31 17:30:01 DEBUG otopi.plugins.otopi.packagers.dnfpackager dnfpackager.verbose:75 DNF Downloading Latest oVirt master additional nightly snapshot 14.60/14.60KB 2016-07-31 17:30:01 INFO otopi.plugins.otopi.packagers.dnfpackager dnfpackager.info:79 DNF Downloaded Latest oVirt master additional nightly snapshot python: /builddir/build/BUILD/hawkey-0.6.3/src/sack.c:568: load_yum_repo: Assertion `hrepo->state_main == _HY_NEW' failed. The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html. The 'plugins' function is not a part of DNF API and will be removed in the upcoming DNF release. Please use only officially supported API functions. DNF API documentation is available at https://dnf.readthedocs.org/en/latest/api.html. Version-Release number of selected component (if applicable): Current master How reproducible: Probably always Steps to Reproduce: 1. Install latest otopi from master snapshot on updated fedora 24 2. otopi 3. Actual results: Fails as above Expected results: Succeeds Additional info: 'engine-setup' fails the same way. 'engine-setup --offline' succeeds.
Python backtrace: Traceback (most recent call first): File "/usr/lib/python2.7/site-packages/dnf/base.py", line 127, in _add_repo_to_sack load_updateinfo=True) File "/usr/lib/python2.7/site-packages/dnf/base.py", line 239, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python2.7/site-packages/otopi/minidnf.py", line 530, in clean self._base.fill_sack() File "/usr/share/otopi/plugins/otopi/packagers/dnfpackager.py", line 196, in _setup self._minidnf.clean(['expire-cache']) File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132, in _executeMethod method['method']() File "/usr/lib/python2.7/site-packages/otopi/context.py", line 702, in runSequence self._executeMethod(self._currentStage, methodinfo) File "/usr/lib/python2.7/site-packages/otopi/main.py", line 152, in execute self.context.runSequence() File "/usr/lib/python2.7/site-packages/otopi/__main__.py", line 88, in main installer.execute() File "/usr/lib/python2.7/site-packages/otopi/__main__.py", line 122, in <module> sys.exit(installer.main())
It's reproducible just runnig otopi without arguments.
Looks like the call to self._base.fill_sack() in clean method is triggering the issue. Commenting it cause: [ ERROR ] DNF u'dnf.plugin.dynamic' [ ERROR ] Failed to execute stage 'Environment setup': u'dnf.plugin.dynamic'
(In reply to Sandro Bonazzola from comment #3) > Looks like the call to self._base.fill_sack() in clean method is triggering > the issue. Commenting it cause: > [ ERROR ] DNF u'dnf.plugin.dynamic' > [ ERROR ] Failed to execute stage 'Environment setup': u'dnf.plugin.dynamic' Ignore the errors, my fault. Just dropping self._base.fill_sack() in the clean method seems to fix the issue. Maybe we're missing some kind of initialization in clean method?
(In reply to Sandro Bonazzola from comment #4) > (In reply to Sandro Bonazzola from comment #3) > > Looks like the call to self._base.fill_sack() in clean method is triggering > > the issue. Commenting it cause: > > [ ERROR ] DNF u'dnf.plugin.dynamic' > > [ ERROR ] Failed to execute stage 'Environment setup': u'dnf.plugin.dynamic' > > Ignore the errors, my fault. Just dropping self._base.fill_sack() in the > clean method seems to fix the issue. Maybe we're missing some kind of > initialization in clean method? Not sure, fill_sack() method is supposed to init/refresh the package sack [1], and it is also called on MiniDNF._createBase(), then it should be safe to call on clean, in theory. Need to investigate more. [1] http://dnf.readthedocs.io/en/latest/api_base.html#dnf.Base.fill_sack
*** Bug 1363805 has been marked as a duplicate of this bug. ***
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.
Verified in 4.1.1-0.0.master.20170130153121.git43d773b.fc24