missing dependency on python-jsonschema

Bug #1030152 reported by Jamie Strandboge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance (Ubuntu)
Fix Released
High
Chuck Short
Quantal
Fix Released
High
Chuck Short

Bug Description

If I try to start glance on 12.10, I get the following error:
$ sudo -H -u glance glance-api
Traceback (most recent call last):
  File "/usr/bin/glance-api", line 54, in <module>
    app = config.load_paste_app(conf)
  File "/usr/lib/python2.7/dist-packages/glance/common/config.py", line 196, in load_paste_app
    app = wsgi.paste_deploy_app(conf_file, app_name, conf)
  File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 664, in paste_deploy_app
    return deploy.loadapp("config:%s" % paste_config_file, name=app_name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke
    app = context.app_context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
    **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory
    app = loader.get_app(app_name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
    name=name, global_conf=global_conf).create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 589, in __call__
    factory = self._import_factory(local_conf)
  File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line 567, in _import_factory
    return utils.import_class(class_name)
  File "/usr/lib/python2.7/dist-packages/glance/common/utils.py", line 160, in import_class
    reason=e)
glance.common.exception.ImportFailure: Failed to import requested object/class: 'glance.api.v2.router.API'. Reason: No module named jsonschema

Installing python-jsonschema seems to fix the issue.

tags: added: rls-q-incoming
Changed in glance (Ubuntu):
status: New → In Progress
assignee: nobody → Chuck Short (zulcss)
James Page (james-page)
Changed in glance (Ubuntu Quantal):
importance: Undecided → High
tags: removed: rls-q-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glance - 2012.2~f3-0ubuntu1

---------------
glance (2012.2~f3-0ubuntu1) quantal; urgency=low

  [ Adam Gandleman ]
  * debian/patches/sql_conn.patch: Also set default sqlite path for
    in glance-api.conf. (LP: #1028711)
  * debian/patches/fix-docs-build.patch: Fix docs build

  [ Chuck Short ]
  * New upstream version.
  * debian/control: python-xattr is no longer a required depends.
    (LP: #1031396)
  * debian/control: Move python-jsonschema to glance.
    (LP: #1030152)
  * debian/control: Start the slow transition to python-glanceclient.
 -- Chuck Short <email address hidden> Thu, 16 Aug 2012 13:58:32 -0500

Changed in glance (Ubuntu Quantal):
status: In Progress → Fix Released
Revision history for this message
Sam Morrison (sorrison) wrote :

Hi, the fix for this is wrong.

python-jsonschema is needed by the file /usr/share/pyshared/glance/schema.py which is provided by the package python-glance. The dependency needs to go there.

I'm not sure what the package glance is for these days? We don't have it installed on any of our glance-api servers or glance-registry servers. I thought it was just a helper package if you wanted to install glance-api and glance-registry in one hit.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.