Nova DB archiving not working in rh1

Bug #1728058 reported by Ben Nemec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Ben Nemec

Bug Description

[root@overcloud-controller-0 mysql]# nova-manage db archive_deleted_rows --verbose --max_rows 100000
Option "notification_topics" from group "DEFAULT" is deprecated. Use option "topics" from group "oslo_messaging_notifications".
error: (pymysql.err.IntegrityError) (1062, u"Duplicate entry '1' for key 'PRIMARY'") [SQL: u'INSERT INTO shadow_instance_type_extra_specs (created_at, updated_at, deleted_at, deleted, id, `key`, value, instance_type_id) SELECT instance_type_extra_specs.created_at, instance_type_extra_specs.updated_at, instance_type_extra_specs.deleted_at, instance_type_extra_specs.deleted, instance_type_extra_specs.id, instance_type_extra_specs.`key`, instance_type_extra_specs.value, instance_type_extra_specs.instance_type_id \nFROM instance_type_extra_specs \nWHERE instance_type_extra_specs.deleted != %s ORDER BY instance_type_extra_specs.id \n LIMIT %s'] [parameters: (0, 99582)]

This appears to be the problem melwitt describes in https://lists.gt.net/openstack/operators/63495?page=last I will see about cleaning up the problematic shadow entries.

I believe this is causing extreme slowness in the cloud and is probably contributing to the large number of timeouts that we're seeing.

Tags: ci
Revision history for this message
Ben Nemec (bnemec) wrote :

Fixed by running "delete from shadow_instance_type_extra_specs;" against the nova db. I'm going to leave this open until I've finished archiving the nova db so that hopefully performance in rh1 will be back to normal.

Revision history for this message
Ben Nemec (bnemec) wrote :

DB is cleaned up, rh1 performance seems to be better again. There were other issues (namely rabbit) in addition to this that also had to be resolved but they have been.

Changed in tripleo:
status: Triaged → Fix Released
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.