Ask Your Question
0

run_test.sh errors on Parent Module 'nova manage'

asked 2011-08-18 23:02:36 -0500

updated 2014-04-21 04:28:05 -0500

smaffulli gravatar image

I have followed the instructions for the Xen setup: http://wiki.openstack.org/XenServerDe...

Everything is great up until I run the run_tests.sh -x -N line.

I get the output in the log of (sorry for long paste):

ERROR: <nose.suite.ContextSuite context=nova.tests>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
    return func()
  File "/home/localadmin/openstack/nova/nova/tests/__init__.py", line 47, in setup
    from nova.network import manager as network_manager
  File "/home/localadmin/openstack/nova/nova/network/manager.py", line 65, in <module>
    from nova.compute import api as compute_api
  File "/home/localadmin/openstack/nova/nova/compute/__init__.py", line 19, in <module>
    from nova.compute.api import API
  File "/home/localadmin/openstack/nova/nova/compute/api.py", line 30, in <module>
    import nova.image
  File "/home/localadmin/openstack/nova/nova/image/__init__.py", line 25, in <module>
    from nova.image import glance as glance_image_service
  File "/home/localadmin/openstack/nova/nova/image/glance.py", line 33, in <module>
    from nova.image import service
ImportError: cannot import name service
-------------------- >> begin captured logging << --------------------
2011-08-18 17:00:31,813 DEBUG nova.utils [-] Inner Exception: No module named kombu.connection from (pid=1237) import_class /home/localadmin/openstack/nova/nova/utils.py:64
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 0 tests in 0.024s

FAILED (errors=1)
/usr/local/lib/python2.7/dist-packages/nose/plugins/manager.py:383: RuntimeWarning: Unable to load plugin xcover = nosexcover:XCoverage: (coverage 3.5 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('coverage==3.4'))
  RuntimeWarning)
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
2011-08-18 17:00:31,813 DEBUG nova.utils [-] Inner Exception: No module named kombu.connection from (pid=1237) import_class /home/localadmin/openstack/nova/nova/utils.py:64
/home/localadmin/openstack/nova/bin/nova-manage:56: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import gettext
/home/localadmin/openstack/nova/bin/nova-manage:57: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import glob
/home/localadmin/openstack/nova/bin/nova-manage:58: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import json
/home/localadmin/openstack/nova/bin/nova-manage:59: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import math
/home/localadmin/openstack/nova/bin/nova-manage:60: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import netaddr
/home/localadmin/openstack/nova/bin/nova-manage:61: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import os
/home/localadmin/openstack/nova/bin/nova-manage:62: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import sys
/home/localadmin/openstack/nova/bin/nova-manage:63: RuntimeWarning: Parent module 'nova_manage' not found while handling absolute import
  import time
/home ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2011-08-22 19:38:22 -0500

vishvananda gravatar image

updated 2014-04-21 04:29:02 -0500

smaffulli gravatar image

Looks like you need to install glance. You can install it via pip -> pip install glance. Glance has a dependency on kombu. You can apt-get install python-kombu from the glance core ppa or you can try to pip install it

edit flag offensive delete link more

Comments

Thanks Vish Ishaya, that solved my question.

shmcfarl gravatar imageshmcfarl ( 2011-08-22 20:18:07 -0500 )edit
0

answered 2011-08-18 23:12:34 -0500

It actually looks like anyting with nova-manage is hosed.

I get the following no matter what I do with nova-manage:

./bin/nova-manage Traceback (most recent call last): File "./bin/nova-manage", line 82, in <module> from nova import image File "/home/localadmin/openstack/nova/nova/image/__init__.py", line 25, in <module> from nova.image import glance as glance_image_service File "/home/localadmin/openstack/nova/nova/image/glance.py", line 42, in <module> GlanceClient = utils.import_class('glance.client.Client') File "/home/localadmin/openstack/nova/nova/utils.py", line 65, in import_class raise exception.ClassNotFound(class_name=class_str) nova.exception.ClassNotFound: Class Client could not be found

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-18 23:02:36 -0500

Seen: 138 times

Last updated: Apr 21 '14