Bug 1225282 - Hide warnings from yum when executed from dnf
Summary: Hide warnings from yum when executed from dnf
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-extras
Version: 22
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2015-05-27 03:03 UTC by Bill Nottingham
Modified: 2015-07-10 19:01 UTC (History)
6 users (show)

Fixed In Version: dnf-plugins-extras-0.0.9-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-07-10 19:01:49 UTC
Type: Bug

Attachments (Terms of Use)

Description Bill Nottingham 2015-05-27 03:03:32 UTC
Description of problem:

If you take a system that was using yum, and fedup it to F22, dnf immmediately suggests you run dnf-2 migrate.

This command calls "yum-deprecated -q group list installed -C".

This command cannot work, because you've just done a fresh upgrade and there's no yum F22 metadata cached.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. fedup --network f22
2. Run 'yum <anything>'
3. Try and run the suggested command

Actual results:

Cannot find repomd.xml file for fedora/22/x86_64
Traceback (most recent call last):
  File "/usr/bin/dnf-2", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in _main
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1077, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/migrate.py", line 126, in run
  File "/usr/lib/python2.7/site-packages/dnf-plugins/migrate.py", line 242, in migrate_groups
    installed = self.get_yum_installed_groups(yum_exec)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/migrate.py", line 257, in get_yum_installed_groups
  File "/usr/lib64/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '[u'/usr/bin/yum-deprecated', u'-q', u'group', u'list', u'installed', u'-C']' returned non-zero exit status 1

Expected results:


Additional info:

Also, it runs yum-deprecated in a way that it re-prints out the deprecation warning, even though's run internally by dnf.

Comment 1 Honza Silhan 2015-06-05 17:06:11 UTC
Printing of warnings from yum are fixed here:

The origin reported error is duplicate of bug 1226607

Comment 2 Fedora Update System 2015-06-30 17:13:16 UTC
dnf-plugins-extras-0.0.9-1.fc22 has been submitted as an update for Fedora 22.

Comment 3 Fedora Update System 2015-07-02 17:05:26 UTC
Package dnf-plugins-extras-0.0.9-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-extras-0.0.9-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-07-10 19:01:49 UTC
dnf-plugins-extras-0.0.9-1.fc22 has been pushed to the Fedora 22 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.