Bug 748490

Summary: openstack-nova dependant on openstack-glance
Product: [Fedora] Fedora EPEL Reporter: David Busby <d.busby>
Component: openstack-novaAssignee: Mark McLoughlin <markmc>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: alexander.sakhnov, d.busby, Jan.van.Eldik, markmc, matt_domsch, mlvov, p, rkukura
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-08 08:54:37 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 David Busby 2011-10-24 15:32:35 UTC
Description of problem:

Current implementation of openstack-nova package requires openstack-glance as associated components,
openstack is supposed to comprise of independent components, somewhere along the line this dependency has been introduce independent of the upstream pacakages, and should be removed.

Version-Release number of selected component (if applicable):

2011.3

Comment 1 Mark McLoughlin 2011-10-24 15:57:39 UTC
Yeah, I think it probably makes sense to remove this dependency

Comment 2 David Busby 2011-10-24 16:38:56 UTC
As discussed in irc, post install 

Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 84, in <module>
    from nova import image
  File "/usr/lib/python2.6/site-packages/nova/image/__init__.py", line 22, in <module>
    from nova.image import glance
  File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 43, in <module>
    GlanceClient = utils.import_class('glance.client.Client')
  File "/usr/lib/python2.6/site-packages/nova/utils.py", line 66, in import_class
    raise exception.ClassNotFound(class_name=class_str)
nova.exception.ClassNotFound: Class Client could not be found
chmod: cannot access `/var/lib/nova/nova.sqlite': No such file or directory


Confirmed this is due to: nova-manage db sync

Seems to explain the glance requirement, still seems odd. this line is the culprit: GlanceClient = utils.import_class('glance.client.Client')

nova,glance,keystone,swift,volume etc are supposed to be separate from each other, one for upstream to fix it would seem.

Comment 3 David Busby 2011-10-24 16:50:55 UTC
added launchpad link to seealso

Comment 4 Mark McLoughlin 2012-03-08 08:54:37 UTC
Ok, so the root of the problem is that there's no python-glanceclient package. 

https://blueprints.launchpad.net/glance/+spec/separate-client

When it's possible upstream to package the glance client separately, we can package that and have depend nova on it rather than the server