Closed jneo8 closed 1 month ago
Update description
This error happen only you failed on wait for idle then retry pass, so it's hard to reproduce.
But after the wait_for_idle tuning PR #573 merged, we should not encounter websockets.exceptions.ConnectionClosedError
anymore. So we can resolve this one after #573 merged.
Since #573 is merged. Close this issue as resolved.
Issue description
COU generate data plan step stuck forever after we counter error on verify_cloud step.
Everything working fine if I manually remove verify_cloud step
On generate data plane step, the
juju.unit.run_action
function gets stuck if thejuju.model.wait_for_idle
function raise an exception. I suspect this issue relates to the asyncio package.The exception raise on
juju.model.wait_for_idle
is relate to networking issue, which can't be avoid.Why this not happen before?
Prior to commit 4960e6e4ba7d79969f95535402d47d5d28624799, wait_for_idle was never called before generating the plan and we make COU failed every time when
wait_for_idle
failed.A simple code to reproduce the error:
And the error message is: