Bug 772509

Summary: ERROR with transaction check vs depsolve
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: ffesti, james.antill, maxamillion, pmatilai, tla, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-09 19:17: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:

Description John Reiser 2012-01-08 23:48:36 UTC
Description of problem: Composing an install DVD of rawhide for Fedora 17, but with updated anaconda .rpm in new local repo, fails when creating initramfs.


Version-Release number of selected component (if applicable):
yum-3.4.3-7.fc16.noarch
lorax-17.1-1.fc17.x86_64
pungi-2.9-1.fc16.noarch
anaconda-17.2-1.fc17.src.rpm

How reproducible: every time (4 times so far)


Steps to Reproduce:
1. Download anaconda-17.2-1.fc17.src.rpm, apply patch to bring source code up to tip of git master (commit eb17cee2b0a9185795509fa7c32405a974b9589e), in anaconda.spec increment Release to be "Release: 2.fc17", then "rpmbuild -ba anaconda.spec".
2. Copy resulting anaconda-17.2-2.fc17.x86_64.rpm to a new directory /ext4/repo-jreiser, run 'createrepo .' in that directory.
3. Add the new repo as am additional repo to the kickstart file for pungi+lorax:
"repo --name=repo-jreiser --baseurl=file:///ext4/repo-jreiser --cost=1" where the ionly other repo is "repo --name=fedora-17 --baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/$basearch/os  ..."
4. /usr/bin/pungi -c fedora-install-fedora-17.ks \
        --destdir=$DESTDIR --name Fedora --ver $VERSION --nosource

  
Actual results:
running runtime-install.tmpl
downloading packages
(  2/  2) [100%] downloading gdb-gdbserver-7.4.50.20120103-5.fc17.x86_64.rpm
checking package signatures
running test transaction
template command error in runtime-install.tmpl:
  run_pkg_transaction
  YumRPMCheckError: [u'ERROR with transaction check vs depsolve:', 'libarchive.so.2()(64bit) is needed by anaconda-17.2-2.fc17.x86_64', u'Please report this error at http://yum.baseurl.org/report']
Traceback (most recent call last):
  File "/usr/bin/pungi", line 222, in <module>
    main()
  File "/usr/bin/pungi", line 124, in main
    mypungi.doBuildinstall()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 845, in doBuildinstall
    workdir=workdir, outputdir=outputdir)
  File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 183, in run
    rb.install()
  File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line 81, in install
    self._runner.run("runtime-install.tmpl")
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 135, in run
    self._run(commands)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 154, in _run
    f(*args)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 415, in run_pkg_transaction
    rpmDisplay=LoraxRpmCallback())
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4999, in processTransaction
    self._doTestTransaction(callback,display=rpmTestDisplay)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5078, in _doTestTransaction
    raise Errors.YumRPMCheckError,retmsgs
yum.Errors.YumRPMCheckError: [u'ERROR with transaction check vs depsolve:', 'libarchive.so.2()(64bit) is needed by anaconda-17.2-2.fc17.x86_64', u'Please report this error at http://yum.baseurl.org/report']


Expected results: successful compose


Additional info:

Comment 1 John Reiser 2012-01-08 23:54:17 UTC
$ ls -l /usr/lib*/libarchive*
lrwxrwxrwx. 1 root root     19 Nov  4 07:53 /usr/lib64/libarchive.so -> libarchive.so.2.8.5
lrwxrwxrwx. 1 root root     20 Dec 21 13:07 /usr/lib64/libarchive.so.11 -> libarchive.so.11.0.0
-rwxr-xr-x. 1 root root 525864 Nov 14 07:49 /usr/lib64/libarchive.so.11.0.0
lrwxrwxrwx. 1 root root     19 Oct  7 08:36 /usr/lib64/libarchive.so.2 -> libarchive.so.2.8.5
-rwxr-xr-x. 1 root root 274584 Sep  5 01:57 /usr/lib64/libarchive.so.2.8.5
$ rpm -qf /usr/lib64/libarchive.so.11.0.0
libarchive-3.0.0-0.1.a.fc17.x86_64
$ rpm -qf /usr/lib64/libarchive.so.2.8.5
libarchive-2.8.5-1.fc16.x86_64
$ rpm -q --provides libarchive-3.0.0-0.1.a.fc17.x86_64
libarchive.so.11()(64bit)  
libarchive = 3.0.0-0.1.a.fc17
libarchive(x86-64) = 3.0.0-0.1.a.fc17
[jreiser@f16a64 ~]$ rpm -q --provides libarchive-2.8.5-1.fc16.x86_64
libarchive.so.2()(64bit)  
libarchive = 2.8.5-1.fc16
libarchive(x86-64) = 2.8.5-1.fc16
$

Comment 2 John Reiser 2012-01-09 00:35:48 UTC
$ pwd
/var/cache/pungi/fedora-17/packages
$ ls -l libarchive*
-rw-r--r--. 1 root root 127677 Sep  5 01:51 libarchive-2.8.5-1.fc17.x86_64.rpm
-rw-r--r--. 2 root root 233505 Nov 14 07:49 libarchive-3.0.0-0.1.a.fc17.x86_64.rpm
$

Comment 3 James Antill 2012-01-09 19:17:19 UTC
 If you look at the repodata for rawhide you'll see that only libarchive-3.0.0-0.1.a.fc17 is available.