Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Horizon could not import openstack_dashboard.settings

Hello, The Base OS is CentOS 7.3.1611. I am trying to install stable/ocata using devstack. This is a new setup, didn't have any previous Openstack installed.

I was earlier getting the error about the horizon..egginfo, not found. I manually ran setup in the horizon directory and then stacked it. Now, i am getting the following error. Looks like i have posted a similar question earlier and IIRC i abandoned that setup and proceeded with my work in a different base OS and devstack installation went through. Is there a dependency issue with the base apache package or similar?

2017-04-25 10:06:57.040 | +functions-common:_safe_permission_operation:2170 sudo chown -R localadmin /opt/stack/horizon/horizon.egg-info 2017-04-25 10:06:57.056 | +lib/horizon:configure_horizon:84 cd /opt/stack/horizon 2017-04-25 10:06:57.062 | +lib/horizon:configure_horizon:84 /usr/bin/python manage.py compilemessages 2017-04-25 10:06:57.754 | Warning: Could not import Horizon dependencies. This is normal during installation. 2017-04-25 10:06:57.755 | WARNING:root:No local_settings file found. 2017-04-25 10:06:57.756 | Traceback (most recent call last): 2017-04-25 10:06:57.756 | File "manage.py", line 23, in <module> 2017-04-25 10:06:57.756 | execute_from_command_line(sys.argv) 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line 2017-04-25 10:06:57.756 | utility.execute() 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute 2017-04-25 10:06:57.756 | self.fetch_command(subcommand).run_from_argv(self.argv) 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command 2017-04-25 10:06:57.756 | commands = get_commands() 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 107, in get_commands 2017-04-25 10:06:57.756 | apps = settings.INSTALLED_APPS 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__ 2017-04-25 10:06:57.756 | self._setup(name) 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup 2017-04-25 10:06:57.756 | self._wrapped = Settings(settings_module) 2017-04-25 10:06:57.756 | File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__ 2017-04-25 10:06:57.756 | % (self.SETTINGS_MODULE, e) 2017-04-25 10:06:57.756 | ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named xstatic.pkg.jquery 2017-04-25 10:06:57.790 | +lib/horizon:configure_horizon:1 exit_trap 2017-04-25 10:06:57.797 | +./stack.sh:exit_trap:487 local r=1 2017-04-25 10:06:57.805 | ++./stack.sh:exit_trap:488 jobs -p 2017-04-25 10:06:57.812 | +./stack.sh:exit_trap:488 jobs= 2017-04-25 10:06:57.819 | +./stack.sh:exit_trap:491 [[ -n '' ]] 2017-04-25 10:06:57.826 | +./stack.sh:exit_trap:497 kill_spinner 2017-04-25 10:06:57.833 | +./stack.sh:kill_spinner:383 '[' '!' -z '' ']' 2017-04-25 10:06:57.840 | +./stack.sh:exit_trap:499 [[ 1 -ne 0 ]] 2017-04-25 10:06:57.847 | +./stack.sh:exit_trap:500 echo 'Error on exit' 2017-04-25 10:06:57.848 | Error on exit

My localrc just in case:

OFFLINE=True

enable_service n-sch

disable_service n-net

enable_service q-svc

enable_service q-agt

enable_service q-dhcp

enable_service q-l3

enable_service q-fwaas

enable_service neutron

HOST_NAME=$(hostname)

HOST_IP=172.100.100.100

SERVICE_HOST=$HOST_IP

SERVICE_HOST=$SERVICE_HOST

HOST_IP_IFACE=eth3

SERVICE_HOST_NAME=${HOST_NAME}

Q_HOST=$SERVICE_HOST

MYSQL_HOST=$SERVICE_HOST

RABBIT_HOST=$SERVICE_HOST

GLANCE_HOSTPORT=$SERVICE_HOST:9292

KEYSTONE_AUTH_HOST=$SERVICE_HOST

KEYSTONE_SERVICE_HOST=$SERVICE_HOST

VERBOSE=True

....

GIT_BASE=https://github.com

DATABASE_PASSWORD=abc123

...

HORIZON_BRANCH=stable/ocata

NEUTRON_BRANCH=stable/ocata

NOVA_BRANCH=stable/ocata

CINDER_BRANCH=stable/ocata

GLANCE_BRANCH=stable/ocata

KEYSTONE_BRANCH=stable/ocata

Thanks, KP