** Changed in: charm-openstack-dashboard
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1777358

Title:
  Charm does not create database entries due to use of deprecated syncdb
  command

Status in OpenStack openstack-dashboard charm:
  Fix Released
Status in OpenStack Dashboard (Horizon):
  New

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-dashboard-4: 20:39:39 DEBUG 
unit.openstack-dashboard/4.shared-db-relation-changed Unknown command: 'syncdb'
  unit-openstack-dashboard-4: 20:39:39 DEBUG 
unit.openstack-dashboard/4.shared-db-relation-changed Type 'manage.py help' for 
usage.

  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-dashboard-charm-traceback.txt - and the login
  fails.

  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://docs.djangoproject.com/en/dev/topics/migrations/ .

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1777358/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to