← Back to team overview

yahoo-eng-team team mailing list archive

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

 

I don't see how the described issue relates to neutron project.
Marking as Invalid.

** Changed in: neutron
       Status: New => Invalid

-- 
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):
  Invalid

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.

  ------- 
  Update:
  I found in Fedora guidelines the exact same thing. One should never use /bin/sh in %pretrans. If it's a must, then use Lua
  https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#The_.25pretrans_scriptlet

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


References