Yup, we ran into this race in update_from_provider_tree as well, for which we made _clear_provider_cache_for_tree().
https://github.com/openstack/nova/blob/71478c3eedd95e2eeb219f47460603221ee249b9/nova/scheduler/client/report.py#L1330-L1341
We should invoke same when _refresh_associations fails.
...Possibly *from* _refresh_associations itself.
...Keeping in mind that that guy is recursive :)
Yup, we ran into this race in update_ from_provider_ tree as well, for which we made _clear_ provider_ cache_for_ tree().
https:/ /github. com/openstack/ nova/blob/ 71478c3eedd95e2 eeb219f47460603 221ee249b9/ nova/scheduler/ client/ report. py#L1330- L1341
We should invoke same when _refresh_ associations fails.
...Possibly *from* _refresh_ associations itself.
...Keeping in mind that that guy is recursive :)