Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property collector cache #132

Open
wants to merge 9 commits into
base: stable/queens-m3
Choose a base branch
from

Conversation

mmidolesov2
Copy link

Reverted poll task for collecting instance info into the cache and reverted to the initial idea of property collector intercepting events in VC and storing properties of the instance into the cache. Due to issues with possible collision between the periodic task _sync_power_states and the arbitary time in which the property collector is bringing the queued changes we have inconsistencies in the power states of the instances. So one approach presented here is to remove the cached "powerState" in power_on/off methods which should cause the following scenarios:
-We poll the power-state before we get a change from the property-collector, then it should trigger a load from the vsphere-api
-We receive the update on time from power-off/on task in the property-collector, then the value is updated in the cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants