cleaning Fuel DB is successful only in 50%

Bug #1404868 reported by Sergey Galkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Undecided
Unassigned

Bug Description

For cleaning Fuel DB from discovered nodes in the scale lab I use

dockerctl destroy nailgun postgres ostf keystone cobbler ; dockerctl build all

In 50% cases it working fine. But in 50% cases I have 'HTTP Error 500: Internal Server Error' or 'HTTP Error 401: Unauthorized 'after "dockerctl build all"

Some examples
ERROR: nailgun failed to start with HTTP Error 500: Internal Server Error - http://paste.openstack.org/show/153829/
HTTP Error 401: Unauthorized - http://paste.openstack.org/show/153835/

If I start 'dockerctl destroy nailgun postgres ostf keystone cobbler ; dockerctl build all' immediately after ISO deployment this issue 100% reproducible

This is impeding automation

last reproduced on
api: '1.0'
astute_sha: 16b252d93be6aaa73030b8100cf8c5ca6a970a91
auth_required: true
build_id: 2014-12-18_01-32-01
build_number: '56'
feature_groups:
- mirantis
fuellib_sha: 73332192a257ea02c40a39885c502ad1ebdf3eda
fuelmain_sha: 45caacadb878abfbd9d60e134d72229698b469c9
nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
ostf_sha: a9afb68710d809570460c29d6c3293219d3624d4
production: docker
release: '6.0'

Tags: scale
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Hi,

Why don't you just use manage.py dropdb and manage.py syncdb

Changed in fuel:
status: New → Invalid
Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

There is a correct way how to drop and create database from scratch

dockerctl shell nailgun bash -c 'manage.py dropdb'
dockerctl shell nailgun bash -c 'manage.py syncdb'

Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Do not forgot to make loaddefault - it'll load openstack.yaml fixture

dockerctl shell nailgun bash -c 'manage.py loaddefault'

Revision history for this message
Sergey Galkin (sgalkin) wrote :

Looks like

dockerctl shell nailgun bash -c 'manage.py dropdb'
dockerctl shell nailgun bash -c 'manage.py syncdb'
supervisorctl stop docker-nailgun
supervisorctl start docker-nailgun

working for me (thank you Sergii)

Revision history for this message
Sergey Galkin (sgalkin) wrote :

Thank you Igor

Full way is

dockerctl shell nailgun bash -c 'manage.py dropdb'
dockerctl shell nailgun bash -c 'manage.py syncdb'
dockerctl shell nailgun bash -c 'manage.py loaddefault'
supervisorctl stop docker-nailgun
supervisorctl start docker-nailgun

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.