-
Notifications
You must be signed in to change notification settings - Fork 47
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
Intermittent deadlocks in zaza #580
Comments
Looking into the linked issue, it appears it got stuck1 in async def async_block_until_all_units_idle(model_name=None, timeout=2700):
"""Block until all units in the given model are idle.
An example accessing this function via its sync wrapper::
block_until_all_units_idle('modelname')
:param model_name: Name of model to query.
:type model_name: str
:param timeout: Time to wait for status to be achieved
:type timeout: float
"""
model = await get_model(model_name)
await block_until_auto_reconnect_model(
lambda: units_with_wl_status_state(
model, 'error') or model.all_units_idle(),
model=model,
timeout=timeout)
errored_units = units_with_wl_status_state(model, 'error')
if errored_units:
raise UnitError(errored_units) The relevant code in libjuju: def all_units_idle(self):
"""Return True if all units are idle.
"""
for unit in self.units.values():
unit_status = unit.data['agent-status']['current']
if unit_status != 'idle':
return False
return True This check is run in an async loop that includes an
Footnotes |
Since commit b393baa models are intermittently stuck initializing vault, and they appear to get stuck here:
zaza/zaza/model.py
Line 919 in 93a51a8
The text was updated successfully, but these errors were encountered: