Keystone token_flush cron job running at the same time in the controller node causes deadlock

Bug #1402795 reported by Haneef Ali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
High
Haneef Ali

Bug Description

Keystone token_flush is a cron job and it is scheduled to run at the same time in all the nodes. Running the same cron job at the same time causes both deadlock and transaction time out in other nodes. It is better to run the the job just in bootstrap node

Haneef Ali (haneef)
Changed in tripleo:
assignee: nobody → Haneef Ali (haneef)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-image-elements (master)

Fix proposed to branch: master
Review: https://review.openstack.org/141882

Changed in tripleo:
status: New → In Progress
Revision history for this message
Haneef Ali (haneef) wrote :

Detail description of the defect.

Token flush does
     Select expiry date
     delete based on expiry date

Select will take READ lock and delete will take exclusive ROW lock in mysql. So if the same operation is running on all the controller nodes, then other nodes will be unnecessaily waiting for the lock since all of them expects LOCK for the same rows.

Easy way to figure to check is, to grep for transaction read time out message in all the controller nodes. You will always see read time out in all the controller node except one for a particular run

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

https://review.openstack.org/#/c/142420/ is an alternative suggestion on how to solve this.

James Polley (tchaypo)
Changed in tripleo:
importance: Undecided → Critical
importance: Critical → High
Dan Prince (dan-prince)
Changed in tripleo:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-image-elements (master)

Change abandoned by Dan Prince (<email address hidden>) on branch: master
Review: https://review.openstack.org/141882

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.