← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1278471] [NEW] Dependency check fails when creating a clean Fedora image

 

Public bug reported:

When trying to build a complete Fedora image from scratch (i.e. using
live-cd-creator for creating a live-cd with openstack-neutron package)
with all openstack-* packages, an error arises:

File "/usr/lib/python2.7/site-packages/imgcreate/yuminst.py", line 220, in runInstall
    raise CreatorError("Dependency check failed : %s" % "\n".join([str(d) for d in deps]))
imgcreate.errors.CreatorError: Dependency check failed : (('openstack-neutron', '2013.2.1', '2.fc20'), ('/bin/sh', ''), 0, 0, None)

Since this problem did not happen when I tried creating images with the
old openstack-quantum package, I sought for the diff between the two.
The major difference in the RPM file in the existence of two new section
in the spec file: %posttrans and %pretrans. Once removing them, the
error no longer occurs.

The above is caused probably because rpm can't handle dependencies
(/bin/sh in this case) properly that exists in %posttrans and %pretrans
section in the spec file. Once removing those sections (Personally
because I have no need for the upgrading quantum functionality) the
matter is resolved.

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1278471

Title:
  Dependency check fails when creating a clean Fedora image

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  When trying to build a complete Fedora image from scratch (i.e. using
  live-cd-creator for creating a live-cd with openstack-neutron package)
  with all openstack-* packages, an error arises:

  File "/usr/lib/python2.7/site-packages/imgcreate/yuminst.py", line 220, in runInstall
      raise CreatorError("Dependency check failed : %s" % "\n".join([str(d) for d in deps]))
  imgcreate.errors.CreatorError: Dependency check failed : (('openstack-neutron', '2013.2.1', '2.fc20'), ('/bin/sh', ''), 0, 0, None)

  Since this problem did not happen when I tried creating images with
  the old openstack-quantum package, I sought for the diff between the
  two. The major difference in the RPM file in the existence of two new
  section in the spec file: %posttrans and %pretrans. Once removing
  them, the error no longer occurs.

  The above is caused probably because rpm can't handle dependencies
  (/bin/sh in this case) properly that exists in %posttrans and
  %pretrans section in the spec file. Once removing those sections
  (Personally because I have no need for the upgrading quantum
  functionality) the matter is resolved.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1278471/+subscriptions


Follow ups

References