Bug 784891

Summary: Glance dependency not installed
Product: [Fedora] Fedora Reporter: Derek Higgins <derekh>
Component: openstack-glanceAssignee: Russell Bryant <rbryant>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: akscram, alexander.sakhnov, asalkeld, bfilippov, jonathansteffan, markmc, matt_domsch, mlvov, p, rbryant, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-glance-2011.3.1-2.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-11 18:55:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
patch none

Description Derek Higgins 2012-01-26 15:17:00 UTC
Created attachment 557683 [details]
patch

Description of problem:

After installing glance on a fresh F16 machine the service's fail to
start with the following error

ImportError: No module named pkg_resources

How reproducible:
every time

Steps to Reproduce:
1. install Fedora 16
2. yum install openstack-glance
3. sudo service openstack-glance-registry

  
Actual results:
service fails to start with a import error in /var/log/messages

Expected results:
service should start


Additional info:
python-paste-deploy (installed by glance) has a dependency on python-setuptools

patch attached (adds python-migrate as a dependency which requires python-setup-tools)

Comment 1 Russell Bryant 2012-01-26 15:42:56 UTC
Thanks, Derek!

Comment 2 Derek Higgins 2012-01-26 15:48:26 UTC
python-paste-deploy dependency reported also
https://bugzilla.redhat.com/show_bug.cgi?id=784906

Comment 3 Pádraig Brady 2012-01-26 16:11:26 UTC
Note on the el6 branch we have:
  Requires:         python-setuptools
because glance itself uses pkg_resources.

Other people have installed glance without nova,
but only on RHEL, so we didn't see this issue because of the above.

I notice that is dep missing from the el6 branch of nova, so I should fix that.
Note Nova depends on python-migrate, and satisfies the dependency that way,
but I should still fix though.

This patch should be applied, as glance does need python-migrate
and it will as a side effect fix the dependency issue.

Both the python-paste-deploy and python-paste packages should
also add a dependency on python-setuptools also.

Comment 4 Fedora Update System 2012-01-26 16:37:53 UTC
openstack-glance-2011.3.1-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/openstack-glance-2011.3.1-2.fc16

Comment 5 Fedora Update System 2012-01-26 16:38:45 UTC
openstack-glance-2011.3.1-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/openstack-glance-2011.3.1-2.el6

Comment 6 Fedora Update System 2012-01-27 19:20:06 UTC
Package openstack-glance-2011.3.1-2.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing openstack-glance-2011.3.1-2.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0269/openstack-glance-2011.3.1-2.el6
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-02-11 18:55:46 UTC
openstack-glance-2011.3.1-2.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-02-14 08:59:47 UTC
openstack-glance-2011.3.1-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.