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.
Reviewed: https:/ /review. openstack. org/235806 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=fb1a67fe6bc 919002e9a33aaf7 3a973fc48b7828
Committed: https:/
Submitter: Jenkins
Branch: master
commit fb1a67fe6bc9190 02e9a33aaf73a97 3fc48b7828
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 ring_reset_ interval which is default to 180s.
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_
Change-Id: Ie46dbf93b92054 3f99e11774a2987 8aaf27c3400
Closes-Bug: #1506657