manager.py dropdb is stuck

Bug #1483195 reported by Dmitriy Kruglov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Python (Deprecated)

Bug Description

Rebuild the db is not possible because the process is stuck on dbopdb stage

Step to reproduce:
1) enter to docker nailgun container
2) manage.py dropdb && manage.py syncdb && manage.py loaddefault

The workaround is restart postgres and/or nailgun container.

ISO info:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "150"
  build_id: "2015-08-09_09-17-24"
  nailgun_sha: "58c080206cc17137b124744a40218c89beb6bb28"
  python-fuelclient_sha: "e069d9fde92451ec7f555342951807c5528e96e5"
  fuel-agent_sha: "57145b1d8804389304cd04322ba0fb3dc9d30327"
  fuel-nailgun-agent_sha: "e01693992d7a0304d926b922b43f3b747c35964c"
  astute_sha: "e1d3a435e5df5b40cbfb1a3acf80b4176d15a2dc"
  fuel-library_sha: "1851b4dff75170dbd63f6e15cde734e348e86d27"
  fuel-ostf_sha: "c7f745431aa3c147f2491c865e029e0ffea91c47"
  fuelmain_sha: "bdca75d0256338519c7eddd8a840ee6ecba7f992"

Revision history for this message
Ivan Ponomarev (ivanzipfer) wrote :

This is a db sync problem.
I think this happen when previous transaction is not closed.
The workaround is restart postgres or nailgun container.

Changed in fuel:
assignee: Ivan Ponomarev (ivanzipfer) → Fuel Python Team (fuel-python)
description: updated
summary: - Preserving custom partitions doesn't work
+ manager.py dropdb is stuck
Revision history for this message
Evgeniy L (rustyrobot) wrote :

Workaround is to stop statssenderd, since it's doesn't affect deployment and has workaround, lower the priority to High, because I've seen many times that people have problem with that.

Changed in fuel:
importance: Critical → High
status: New → Confirmed
description: updated
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

It's not a workaround, it's the only right solution. We can't drop db schema if some other process uses it. The only right choice here is to make:

  $ supervisorctl stop all
  $ manage.py dropdb && manage.py syncdb && manage.py loaddefault
  $ supervisorctl start all

Move it to Invalid, since there's nothing that should be fixed.

Changed in fuel:
status: Confirmed → Invalid
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.