Comment 3 for bug 1506657

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/235806
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=fb1a67fe6bc919002e9a33aaf73a973fc48b7828
Submitter: Jenkins
Branch: master

commit fb1a67fe6bc919002e9a33aaf73a973fc48b7828
Author: Zhenguo Niu <email address hidden>
Date: Fri Oct 16 17:18:12 2015 +0800

    Move hash_ring refresh logic out of sync_local_state

    As sync_local_state periodic task can be disabled, which will lose
    out on hash ring refresh, so the refresh logic should be independent
    of it. this patch adds a updated_at to HashRingManager to track of
    when the ring was last refreshed, and when checks the ring is set,
    also check the age and rebuild if older than the new config option
    hash_ring_reset_interval which is default to 180s.

    Change-Id: Ie46dbf93b920543f99e11774a29878aaf27c3400
    Closes-Bug: #1506657