Bug 204051

Summary: mock stops with no attribute 'transaction' error
Product: [Retired] Fedora Hosted Projects Reporter: Mamoru TASAKA <mtasaka>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dcantrell, extras-qa, kdekorte, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-29 14:10:26 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:

Description Mamoru TASAKA 2006-08-25 09:42:11 UTC
Description of problem:
When I try to rebuild some srpm in mock, mock instantly stops
with the following error.

My system is 20060824 rawhide.

Version-Release number of selected component (if applicable):
mock-0.6.2-1.fc6

How reproducible:
100%

Steps to Reproduce:
1. try: mock -r fedora-devel-i386-core --debug coreutils-5.97-8.src.rpm
2.
3.
  
Actual results:
[tasaka1@localhost SRPMS]$ mock -r fedora-devel-i386-core --debug
coreutils-5.97-8.src.rpm 
Traceback (most recent call last):
  File "/usr/bin/mock", line 993, in ?
    main()
  File "/usr/bin/mock", line 988, in main
    ensure_filetype_srpm(srpms)
  File "/usr/bin/mock", line 862, in ensure_filetype_srpm
    ts = rpmUtils.transaction.initReadOnlyTransaction()
AttributeError: 'module' object has no attribute 'transaction'


Expected results:
mock can proceed.

Additional info:
Perhaps on 20060823 rawhide it was okay.

Comment 1 Kevin Fenzi 2006-08-27 16:35:07 UTC
I am seeing this as well... on two diffrent devel/rawhide systems. 
Let me know if I can help test or otherwise track down the issue. 

Comment 2 Mamoru TASAKA 2006-08-27 16:39:59 UTC
To deal with this, currently I have to downgrade yum
to FC6T2 yum(-2.9.3-2) .

Comment 3 Kevin Fenzi 2006-08-27 16:46:50 UTC
Thanks for the workaround. Even 2.9.4-4 seems to work fine, it's 2.9.5-1 thats 
causing the issue. 

Comment 4 Clark Williams 2006-08-29 14:10:26 UTC
Had to explicitly import rpmUtils.transaction due to changes in rpmUtils

Comment 5 Mamoru TASAKA 2006-08-30 06:06:33 UTC
Well;

mock-0.6.4-1.fc6 and yum-2.9.5-2 are okay.
Thank you.