OpenStack VirtualBox, Vagrant dashboard installation problem

Asked by David Clark

When following the instructions for VirtualBox/Vagrant/Chef install on OSX here:
http://docs.openstack.org/cactus/openstack-compute/admin/content/openstack-compute-installation-using-virtualbox-vagrant-and-chef.html

I get an error when the dashboard part of the project is being built with the vagrant up command.

python manage.py syncdb --noinput
DEBUG:nose.plugins.manager:DefaultPluginManager load plugin sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy
/srv/dashboard/django-nova/src/django_nova/models.py:25: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 219, in execute
    self.validate()
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
    self._populate()
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 61, in _populate
    self.load_app(app_name, True)
  File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 76, in load_app
    app_module = import_module(app_name)
  File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
ImportError: No module named django_nova_syspanel

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

Hmm, not sure how that got into the default recipes. I'll take a look at this this afternoon.

Vish

On Apr 25, 2011, at 1:31 PM, David Clark wrote:

> New question #154226 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/154226
>
> When following the instructions for VirtualBox/Vagrant/Chef install on OSX here:
> http://docs.openstack.org/cactus/openstack-compute/admin/content/openstack-compute-installation-using-virtualbox-vagrant-and-chef.html
>
> I get an error when the dashboard part of the project is being built with the vagrant up command.
>
> python manage.py syncdb --noinput
> DEBUG:nose.plugins.manager:DefaultPluginManager load plugin sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy
> /srv/dashboard/django-nova/src/django_nova/models.py:25: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
> import sha
> Traceback (most recent call last):
> File "manage.py", line 11, in <module>
> execute_manager(settings)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
> utility.execute()
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
> self.execute(*args, **options.__dict__)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 219, in execute
> self.validate()
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 249, in validate
> num_errors = get_validation_errors(s, app)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 35, in get_validation_errors
> for (app_name, error) in get_app_errors().items():
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
> self._populate()
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 61, in _populate
> self.load_app(app_name, True)
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 76, in load_app
> app_module = import_module(app_name)
> File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
> __import__(name)
> ImportError: No module named django_nova_syspanel
>
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Vish Ishaya (vishvananda) said :
#2

looks like it may be an issue in dashboard trunk. It should work without it or as a workaround you can comment out the dashboard include in openstack-cookbooks here:

cookbooks/nova/recipes/default.rb

On Apr 25, 2011, at 1:31 PM, David Clark wrote:

> New question #154226 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/154226
>
> When following the instructions for VirtualBox/Vagrant/Chef install on OSX here:
> http://docs.openstack.org/cactus/openstack-compute/admin/content/openstack-compute-installation-using-virtualbox-vagrant-and-chef.html
>
> I get an error when the dashboard part of the project is being built with the vagrant up command.
>
> python manage.py syncdb --noinput
> DEBUG:nose.plugins.manager:DefaultPluginManager load plugin sqlalchemy = sqlalchemy.test.noseplugin:NoseSQLAlchemy
> /srv/dashboard/django-nova/src/django_nova/models.py:25: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
> import sha
> Traceback (most recent call last):
> File "manage.py", line 11, in <module>
> execute_manager(settings)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
> utility.execute()
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
> self.execute(*args, **options.__dict__)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 219, in execute
> self.validate()
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 249, in validate
> num_errors = get_validation_errors(s, app)
> File "/usr/local/lib/python2.6/dist-packages/django/core/management/validation.py", line 35, in get_validation_errors
> for (app_name, error) in get_app_errors().items():
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 146, in get_app_errors
> self._populate()
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 61, in _populate
> self.load_app(app_name, True)
> File "/usr/local/lib/python2.6/dist-packages/django/db/models/loading.py", line 76, in load_app
> app_module = import_module(app_name)
> File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
> __import__(name)
> ImportError: No module named django_nova_syspanel
>
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Todd Willey (xtoddx) said :
#3

I updated the openstack-cookbooks. Should work for you now if you pull the new ones.

Can you help with this problem?

Provide an answer of your own, or ask David Clark for more information if necessary.

To post a message you must log in.