manage.py dropdb/syncdb/loaddefault don't work

Asked by Drazic Lin

I cloned the latest fuel codes from git and made iso. Then fuel server is installed successfully. When I created some environments, just tried to clean all of them with /usr/bin/manage.py dropdb but failed.

Traceback (most recent call last):
  File "./var/lib/docker/devicemapper/mnt/5acb848c8df3a7051a0708980fa1286e09c925f0b4f8e017973d66bae94aacbb/rootfs/usr/bin/manage.py", line 302, in <module>
    action(params) if action else parser.print_help()
  File "./var/lib/docker/devicemapper/mnt/5acb848c8df3a7051a0708980fa1286e09c925f0b4f8e017973d66bae94aacbb/rootfs/usr/bin/manage.py", line 195, in action_dropdb
    from nailgun.db import dropdb
ImportError: No module named nailgun.db

Not familiar with the way of fuel version 5.1 to 6.0 to reset the server, just need a hand. Appreciate.

Question information

Language:
English Edit question
Status:
Solved
For:
Fuel for OpenStack Edit question
Assignee:
No assignee Edit question
Solved by:
Evgeny Kozhemyakin
Solved:
Last query:
Last reply:
Revision history for this message
Best Evgeny Kozhemyakin (ekozhemyakin) said :
#1

Hello, Drazic

Many services run in containers now.
Please try to use the command inside the nailgun container.

dockerctl shell nailgun
/usr/bin/manage.py dropdb

Revision history for this message
Drazic Lin (drazic-lin) said :
#2

Thanks Evgeny Kozhemyakin, that solved my question.