Bug 1403876

Summary: [abrt] dnf: history.py:234:_add_replacement:ValueError: NEVRA was already removed: iproute-0:4.4.0-3.fc24.x86_64
Product: [Fedora] Fedora Reporter: Daniel Rindt <drindt>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 25CC: drindt, jmracek, packaging-team-maint, rpm-software-management, techtonik, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b7007f7b1a7da2d2e40dc78fd9961a20d8bb1262
Whiteboard: abrt_hash:887cc01000febfb231d20623edcbaec67109ff06;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:43:14 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: _var_log_dnf.log
none
File: backtrace
none
File: dnf-makecache.log
none
File: environ none

Description Daniel Rindt 2016-12-12 14:30:32 UTC
Version-Release number of selected component:
dnf-1.1.10-3.fc25

Additional info:
reporter:       libreport-2.8.0
cmdline:        /usr/libexec/system-python /bin/dnf history undo 83
executable:     /bin/dnf
kernel:         4.8.8-300.fc25.x86_64
pkg_fingerprint: 4089 D8F2 FDB1 9C98
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
history.py:234:_add_replacement:ValueError: NEVRA was already removed: iproute-0:4.4.0-3.fc24.x86_64

Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 112, in _main
    cli.run()
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 1099, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/__init__.py", line 1229, in run
    ret = self._hcmd_undo(extcmds[1:])
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/__init__.py", line 1125, in _hcmd_undo
    return self.base.history_undo_transaction(extcmd)
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 683, in history_undo_transaction
    self._history_undo_operations(history.transaction_nevra_ops(old.tid))
  File "/usr/lib/python3.5/site-packages/dnf/history.py", line 126, in transaction_nevra_ops
    operations.add(hpkg.state, hpkg.nevra, replaced_nevra, obsoleted_nevras)
  File "/usr/lib/python3.5/site-packages/dnf/history.py", line 384, in add
    self._add_replacement(state, nevra, replaced_nevra)
  File "/usr/lib/python3.5/site-packages/dnf/history.py", line 234, in _add_replacement
    raise ValueError('NEVRA was already removed: %s' % old_nevra)
ValueError: NEVRA was already removed: iproute-0:4.4.0-3.fc24.x86_64

Local variables in innermost frame:
old_nevra: 'iproute-0:4.4.0-3.fc24.x86_64'
new_nevra: 'iproute-0:4.6.0-1.fc25.x86_64'
self: <dnf.history.NEVRAOperations object at 0x7f870f4af320>
state: 'Update'
new_state: None
old_state: 'Obsoleted'

Comment 1 Daniel Rindt 2016-12-12 14:30:49 UTC
Created attachment 1230804 [details]
File: _var_log_dnf.log

Comment 2 Daniel Rindt 2016-12-12 14:30:50 UTC
Created attachment 1230805 [details]
File: backtrace

Comment 3 Daniel Rindt 2016-12-12 14:30:53 UTC
Created attachment 1230806 [details]
File: dnf-makecache.log

Comment 4 Daniel Rindt 2016-12-12 14:30:55 UTC
Created attachment 1230807 [details]
File: environ

Comment 5 Honza Silhan 2016-12-19 12:16:12 UTC
Thanks for the report. We'll fix this.

Comment 6 Jaroslav Mracek 2017-06-16 13:33:17 UTC
I know that it is a while but do you know what exactly was a trigger for that problem? Because I cannot reproduce the problem with dnf-2.5 for our nightly repository (sudo dnf copr enable rpmsoftwaremanagement/dnf-nightly). Please can you still reproduce the problem with dnf-1.1 or dnf-2.5?

Comment 7 techtonik 2017-08-05 11:50:00 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1478632 for the similar problem reproduced with dnf-2.6.2

Comment 8 Fedora End Of Life 2017-11-16 14:16:35 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 '25'.

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 25 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.

Comment 9 Fedora End Of Life 2017-12-12 10:43:14 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 10 Jaroslav Mracek 2017-12-12 11:26:09 UTC

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

Comment 11 Red Hat Bugzilla 2023-09-14 03:36:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days