Bug 1471229 - yum history list all causes "invalid literal for int() with base 10: 'all'"
yum history list all causes "invalid literal for int() with base 10: 'all'"
Status: NEW
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-14 14:29 EDT by Jonas Jonsson
Modified: 2018-05-03 05:01 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonas Jonsson 2017-07-14 14:29:56 EDT
Description of problem:
Execurting "sudo yum history list all" gives Python exception.

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

How reproducible:

Steps to Reproduce:
1. Run sudo yum history list all
2. See exception

Actual results:
$ sudo yum history list all
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 924, in _convert_tids
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 905, in str2tid
    tid = int(s)
ValueError: invalid literal for int() with base 10: 'all'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/yum", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.6/site-packages/dnf/yum/main.py", line 34, in user_main
    errcode = dnf.cli.main.main(args, YumConf, YumCli, YumOptionParser)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 962, in run
    return self.command.run()
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 934, in run
    extcmds = self._convert_tids(merged)
  File "/usr/lib/python3.6/site-packages/dnf/cli/commands/__init__.py", line 927, in _convert_tids
  File "/usr/lib/python3.6/site-packages/dnf/yum/history.py", line 1480, in search
    for row in self._yieldSQLDataList(npatterns, fields, ignore_case):
  File "/usr/lib/python3.6/site-packages/dnf/yum/history.py", line 1460, in _yieldSQLDataList
    executeSQL(cur, qsql, pat_data)
  File "/usr/lib/python3.6/site-packages/dnf/yum/sqlutils.py", line 169, in executeSQLQmark
    return cursor.execute(query, params)

Expected results:

Additional info:
Comment 1 Fedora End Of Life 2018-05-03 05:01:52 EDT
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

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