lock not purged if engine restarted

Bug #1610609 reported by Chaoyi Huang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kingbird
Fix Released
High
Dimitri Mazmanov

Bug Description

If kingbird engine was restarted(use Ctrl+C to exit kingbird-engine to repeat this bug, it may happen in production if the node is powered-off suddenly, or other reason), then the lock will be remained in the DB, the periodic sync-job can't get the lock, while no sync-job is running.

Revision history for this message
Dimitri Mazmanov (sorantis) wrote :

I've registered a blueprint that covers a more general problem https://blueprints.launchpad.net/kingbird/+spec/engine-reporting
The blueprint should also fix this bug

Changed in kingbird:
milestone: none → 1.0.0
assignee: nobody → Dimitri Mazmanov (sorantis)
importance: Undecided → High
Changed in kingbird:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kingbird (master)

Reviewed: https://review.openstack.org/353386
Committed: https://git.openstack.org/cgit/openstack/kingbird/commit/?id=62fea4fa062f23ba99e095796f7a8014498ca735
Submitter: Jenkins
Branch: master

commit 62fea4fa062f23ba99e095796f7a8014498ca735
Author: Dimitri Mazmanov <email address hidden>
Date: Wed Aug 10 13:07:32 2016 +0200

    Add service registry

    The proposed service registry provides a mechanism to track all running
    kingbird engines by making them periodically update service entries in
    the database. If one of the engines fails to update the database it will
    be removed from the registry and corresponding lock entries will also be
    purged.

    Change-Id: Ifd785073343c5873f69dfb10146f1957d7b92264
    Closes-Bug: #1610609
    Implements: blueprint engine-reporting

Changed in kingbird:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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