Bug 902868

Summary: [abrt] AttributeError: 'YumBaseCli' object has no attribute 'rpmdb'
Product: [Fedora] Fedora Reporter: Filipe Sousa <natros>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f1272cba5a45c97907057b754b12cfc73d1d2010
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 13:29:19 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: core_backtrace
none
File: environ
none
File: smolt_data none

Description Filipe Sousa 2013-01-22 15:12:53 UTC
Description of problem:
dnf upgrade

Version-Release number of selected component:
dnf-0.2.17-1.git6a055e6.fc18

Additional info:
cmdline:        /usr/bin/python /bin/dnf upgrade
executable:     /bin/dnf
kernel:         3.7.2-204.fc18.x86_64
uid:            0

Truncated backtrace:
__init__.py:780:yumUtilsMsg:AttributeError: 'YumBaseCli' object has no attribute 'rpmdb'

Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 314, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 847, in buildTransaction
    self.yumUtilsMsg(self.logger.critical, "yum-complete-transaction")
  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 780, in yumUtilsMsg
    if self.rpmdb.contains(name="yum-utils"):
AttributeError: 'YumBaseCli' object has no attribute 'rpmdb'

Local variables in innermost frame:
prog: 'yum-complete-transaction'
self: <dnf.cli.cli.YumBaseCli object at 0x1f59650>
func: <bound method Logger.critical of <logging.Logger object at 0x1f597d0>>

Comment 1 Filipe Sousa 2013-01-22 15:12:56 UTC
Created attachment 685220 [details]
File: backtrace

Comment 2 Filipe Sousa 2013-01-22 15:12:59 UTC
Created attachment 685221 [details]
File: core_backtrace

Comment 3 Filipe Sousa 2013-01-22 15:13:03 UTC
Created attachment 685222 [details]
File: environ

Comment 4 Filipe Sousa 2013-01-22 15:13:05 UTC
Created attachment 685223 [details]
File: smolt_data

Comment 5 Ales Kozumplik 2013-01-23 11:30:25 UTC
Hello,

I think this has been fixed with ac51e21c905e36142619718d149747c6a2c82147. Can you please try again with dnf-0.2.20-1 (currently in updates-testing in F18) and comment here if the problem has gone away?

Thank you, Ales

Comment 6 Filipe Sousa 2013-01-30 11:59:09 UTC
hello, 

so far so good.

Comment 7 Ales Kozumplik 2013-02-08 13:29:19 UTC
Thanks, closing this as fixed based on comment 6, please reopen if you see the same traceback with dnf-0.2.20 or later again.