yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76579
[Bug 1777358] Re: Charm does not create database entries due to use of deprecated syncdb command
Reviewed: https://review.openstack.org/628988
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8cc055157dde9e885bae29f4bad4518da427ce97
Submitter: Zuul
Branch: master
commit 8cc055157dde9e885bae29f4bad4518da427ce97
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date: Mon Jan 7 23:48:27 2019 +0900
doc: Use `manage.py migrate`
`syncdb` subcommand was deprecated in django 1.7 and subsequently
removed in 1.9. We need to use 'manage.py migrate'.
This commit also drops a sample output of 'manage.py migrate'.
I don't think we need to maintain this kind of output and
it can change per Django release.
Closes-Bug: #1777358
Reference: https://docs.djangoproject.com/en/dev/topics/http/sessions/#using-database-backed-sessions
Change-Id: Ib3a7e50584a8deb9bee409335464163b7b1258d1
** Changed in: horizon
Status: In Progress => 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):
Fix Released
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