OperationalError: (OperationalError) (1054, "Unknown column 'services.disabled_reason' in 'field list'")

Bug #1194792 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

in nova-conductor.

2013-06-26 08:02:44,656.656 1487 TRACE nova.openstack.common.rpc.amqp OperationalError: (OperationalError) (1054, "Unknown column 'services.disabled_reason' in 'field list'") 'SELECT services.created_at AS services_created_at, services.updated_at AS services_updated_at, services.deleted_at AS services_deleted_at, services.deleted AS services_deleted, services.id AS services_id, services.host AS services_host, services.`binary` AS services_binary, services.topic AS services_topic, services.report_count AS services_report_count, services.disabled AS services_disabled, services.disabled_reason AS services_disabled_reason \nFROM services \nWHERE services.deleted = %s AND services.host = %s AND services.`binary` = %s \n LIMIT %s' (0, 'ubuntu.localdomain', 'nova-compute', 1)

Tags: db
Revision history for this message
Yaguang Tang (heut2008) wrote :

try do nova-manage db sync then restart nova services.

Revision history for this message
Robert Collins (lifeless) wrote :

It was a fresh environment, db sync was done before running any services.

tags: added: conductor
tags: added: db
Revision history for this message
David Ripton (dripton) wrote :

The disabled_reason column was added to the services table in migration 188. Which landed in commit c741e862fd3 on February 20, 2013.

It looks like that migration didn't run on your DB, for whatever reason, and you're using code that relies on it.

What do you see if you do "select * from migrate_version" in your nova DB?

Changed in nova:
status: New → Incomplete
Revision history for this message
adrian (awardell) wrote :

mysql> select * from migrate_version;
+---------------+------------------------------------------------------------------+---------+
| repository_id | repository_path | version |
+---------------+------------------------------------------------------------------+---------+
| nova | /usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migrate_repo | 82 |
+---------------+------------------------------------------------------------------+---------+

So what do we do to resolve this issue? I'm having the same problem.

Revision history for this message
Dan Smith (danms) wrote :

Is this still a problem? It seems clearly related to a mismatch between code version and schema version, especially as indicated by comment #4. It's been a year since this was filed, so I expect this just needs to be closed.

tags: removed: conductor
Sean Dague (sdague)
Changed in nova:
status: Incomplete → Invalid
Revision history for this message
Sean Dague (sdague) wrote :

I actually think this was probably the unbuntu cloud archive issue where the packages default to essex, but the cloud archive packages want to roll 2 releases, then don't (because we removed the ability to do that)

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.