Bug 1218345

Summary: [abrt] python-dnf: subprocess.py:573:check_output:CalledProcessError: Command '[u'/usr/bin/yum-deprecated', u'group', u'list', u'installed']' returned non-zero exit status 1
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: h.pillay, jerlyon, jsilhan, mbenhamd, mluscon, naipaul_ojar, philipp, pnemade, rholy, sbonazzo, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2b88c370c9332dcc9bbf02e2003f8bdc061bc607
Whiteboard: abrt_hash:bd3a365287c0d7adaa1eb0f70d7576fab75857ed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-18 11:58:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: dso_list
none
File: environ
none
stdout and stderr of yum-deprecated none

Description Christian Stadelmann 2015-05-04 16:36:21 UTC
Description of problem:
I ran `# dnf migrate groups` and it failed with a backtrace.

Version-Release number of selected component:
python-dnf-1.0.0-1.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python -OO /bin/dnf-2 migrate
executable:     /bin/dnf-2
kernel:         4.0.0-1.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
subprocess.py:573:check_output:CalledProcessError: Command '[u'/usr/bin/yum-deprecated', u'group', u'list', u'installed']' returned non-zero exit status 1

Traceback (most recent call last):
  File "/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
    cli.run()
  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
    self.migrate_groups()
  File "/usr/lib/python2.7/site-packages/dnf-plugins/migrate.py", line 244, in migrate_groups
    installed = self.get_yum_installed_groups(yum_exec)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/migrate.py", line 252, in get_yum_installed_groups
    "installed"]))
  File "/usr/lib64/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '[u'/usr/bin/yum-deprecated', u'group', u'list', u'installed']' returned non-zero exit status 1

Local variables in innermost frame:
retcode: 1
process: <subprocess.Popen object at 0x7f35bc624e50>
cmd: [u'/usr/bin/yum-deprecated', u'group', u'list', u'installed']
unused_err: None
kwargs: {}
output: ''
popenargs: ([u'/usr/bin/yum-deprecated', u'group', u'list', u'installed'],)

Comment 1 Christian Stadelmann 2015-05-04 16:36:24 UTC
Created attachment 1021794 [details]
File: backtrace

Comment 2 Christian Stadelmann 2015-05-04 16:36:26 UTC
Created attachment 1021795 [details]
File: dso_list

Comment 3 Christian Stadelmann 2015-05-04 16:36:27 UTC
Created attachment 1021796 [details]
File: environ

Comment 4 Honza Silhan 2015-05-05 13:00:49 UTC
Thanks for the report. Can you post the output of `/usr/bin/yum-deprecated group list installed', please?

Comment 5 Christian Stadelmann 2015-05-05 21:18:50 UTC
Created attachment 1022321 [details]
stdout and stderr of yum-deprecated

I can not reproduce the crasher. But I still see an error message when running `# dnf migrate groups`:

Error: Malformed yum output

When running `/usr/bin/yum-deprecated group list installed` I get this on stderr:
===
Yum command has been deprecated, use dnf instead.
See 'man dnf' and 'man yum2dnf' for more information.

===

and on stdout:
=====
Installed groups:
   LibreOffice
Fertig
=====

For exact output see attached file. I created them by running `yum-deprecated group list installed >stdout.log 2>stderr.log` as root.

Comment 6 Christian Stadelmann 2015-05-07 21:08:14 UTC
I think the original bug is a duplicate of #1214526 fixed in dnf-plugins-extras 0.0.7.

The second part for getting the "Error: Malformed yum output" is a duplicate of #1214807.

Can this be closed?

Comment 7 Honza Silhan 2015-05-18 11:58:43 UTC
Right. Bug 1214807 is fixed in the upstream but new version of dnf-plugins-extras has not been released yet.

*** This bug has been marked as a duplicate of bug 1214807 ***

Comment 8 Honza Silhan 2015-07-13 10:44:35 UTC
*** Bug 1242133 has been marked as a duplicate of this bug. ***