[DNM] [update] fix: stop control plane check during split variant post-services tests#3978
Draft
Valkyrie00 wants to merge 1 commit into
Conversation
…tests In the split update variant, the continuous control plane check runs in the background creating and deleting VMs in a loop. When post-services tests (tobiko) execute between the services and system update phases, they discover transient VMs in BUILD state and fail with HTTP 409 conflicts. Stop the control plane check before running the post-services tests and restart it afterward so it continues monitoring during the system update phase. The ping test is left running since it only pings an existing VM and does not create new resources. Closes: OSPCIX-1381 Signed-off-by: Vito Castellano <vcastell@redhat.com>
Contributor
|
Skipping CI for Draft Pull Request. |
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
This is a targeted fix to unblock the job which is currently failing due to a race condition between the continuous control plane check and tobiko tests.
A more comprehensive solution, such as adding a pause/resume mechanism to the control plane check scripts or reworking how background tests interact with the split update variant, could be evaluated as a follow-up.
Problem
Some jobs fails because tobiko tests encounter VMs in
BUILDstate during the post-services test phase.The root cause is a race condition: the continuous control plane check (
cifmw_update_control_plane_check) runsworkload_launch.shin an infinite loop, creating and tearing down VMs every few seconds.In the split variant, tests run between the services update and system update phases while this loop is still active.
Tobiko lists all servers, finds a VM mid-creation, and fails:
novaclient.exceptions.Conflict: Cannot 'reboot' instance ... while it is in vm_state building (HTTP 409)Proposed solution
Stop the control plane check before running the post-services tests in
update_variant_split.yml, then restart it so it monitors the system update phase as well.The ping test is not stopped because it only runs
pingagainst an existing VM and does not create any new OpenStack resources.Each control plane check run produces PID-scoped log files (
control-plane-test-<PID>.log), so the stop/restart cycle creates two separate runs with independent validation, no log collision.Closes: OSPCIX-1381
Assisted-By: Cursor