WMI object caching causes issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-win |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When WMI object caching is enabled and the vm ports get recreated (e.g. after a rebuild), the cache contains invalid entries (references of the old ports).
Because of those entries, some operations will not work as expected. For example, ports will not be connected to vswitches (as os-win will think that the ports are already bound, judging by the cached ports). Also, metrics will not be enabled for those ports (as this operation requires the ports to be connected to a vswitch), basically breaking the nova instance rebuild operation.
Trace: http://
os-win already provides a public method that recreates the cache, but none for removing ports from the cache. Besides, relying on os-win consumers to cleanup the cache whenever a port gets removed may be too much.
We should disable the cache by default, especially considering the countless issues we had because of it. Also, the config option description should provide a proper warning.
Changed in os-win: | |
status: | New → Fix Released |
Related fix proposed to branch: master /review. openstack. org/615570
Review: https:/