-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix wait for idle on slow network #183
Conversation
Example before fix ```bash 2023-12-01 17:09:14 [ERROR] Timed out waiting for model: rabbitmq-server/0 [idle] active: Unit is ready neutron-api/0 [idle] active: Unit is ready glance/0 [idle] active: Unit is ready cinder/0 [idle] active: Unit is ready ... ``` and example after fix ```bash 2023-12-01 17:09:14 [ERROR] Timed out waiting for model: rabbitmq-server/0 [idle] active: Unit is ready neutron-api/0 [idle] active: Unit is ready glance/0 [idle] active: Unit is ready cinder/0 [idle] active: Unit is ready ... ```
The raise_on_blocked=True is used in pre-upgrade step, so we can raise exception immediately if any apps is in block state.
We need to use DEFAULT_TIMEOUT to be able to configure timeout if cou is run from slower network. Example without changing timeout: ```bash $ cou plan ... Verify that all OpenStack applications are in idle state ✖ 2023-12-01 17:44:45 [ERROR] Timed out waiting for model: rabbitmq-server/0 [idle] active: Unit is ready neutron-api/0 [idle] active: Unit is ready glance/0 [idle] active: Unit is ready cinder/0 [idle] active: Unit is ready ... # all apps are in idle ``` after ```bash $ cou plan ... Running cloud upgrade... Verify that all OpenStack applications are in idle state ✔ Backup mysql databases ✔ ... ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left a non-blocker suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one suggestion in-line to simply the explanatory comment. Otherwise looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
During my manual testing, I found out two issues:
DEFAULT_TIMEOUT
), but that can cause unwanted long waiting if any app is not in idle.wiat_for_idle
is not correct. Example before fix