Charm does not create database entries due to use of deprecated syncdb command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Akihiro Motoki | ||
OpenStack Dashboard Charm |
Fix Released
|
High
|
Frode Nordahl |
Bug Description
I'm trying to deploy the openstack-dashboard charm in a bionic LXD container. As I want to be able to use Keystone v3, I have related the charm to the percona-cluster charm through the use of the shared-db interface.
However, during the charm's installation I see the following error in the logs;
unit-openstack-
unit-openstack-
Despite this, the charm completes installation and can be reached via the browser. However, upon login an error is thrown in the Apache logs - attached as openstack-
Due to the syncdb error during the installation, the database is never created on the shared-db - hence the traceback on login.
The syncdb command was deprecated in Django 1.7 and removed in 1.9. The version of Django in this charm/bionic is 1.11.11, hence the error. Instead, the syncdb command has been replaced with makemigrations and migrate, see https:/
As this was a fresh installation, I manually ran manage.py migrate. After this, no tracebacks were observed in the Apache logs.
Charm version: 259
Changed in charm-openstack-dashboard: | |
importance: | Undecided → High |
milestone: | none → 18.08 |
status: | New → Triaged |
tags: | added: stable-backport |
Changed in charm-openstack-dashboard: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
importance: | Undecided → Low |
As a temporary workaround it is possible to get a functional dashboard by deploying the openstack-dashboard without the shared-db relation (it does also work with Keystone v3). Having said that, we do of course want to fix this as soon as possible.