Repository navigation
tests, net, libs, nncp: On update/patch, assure correct status update - #733
Merged
Merged
Conversation
Signed-off-by: Edward Haas <edwardh@redhat.com>
|
Report bugs in Issues The following are automatically added:
Available user actions:
Supported /retest check runs
Supported labels
|
ghost
requested a review
from RoniKishner
April 10, 2025 18:28
ghost
requested review from
Anatw,
dbasunag,
dshchedr,
sbahar619,
vsibirsk and
yossisegev
April 10, 2025 18:28
polarion-jenkins
previously approved these changes
Apr 10, 2025
Contributor
Author
|
@rnetser , this is the follow up requested. @yossisegev , @Anatw , I will need help to verify this one. |
EdDev
commented
Apr 10, 2025
EdDev
force-pushed
the
wait-for-nncp-status-update
branch
from
April 11, 2025 07:19
e258b2e to
440e2ec
Compare
polarion-jenkins
previously approved these changes
Apr 14, 2025
Signed-off-by: Edward Haas <edwardh@redhat.com>
Contributor
Author
|
change: Added new commit to remove condition class and fix cleanup method signature. |
polarion-jenkins
approved these changes
Apr 14, 2025
yossisegev
approved these changes
Apr 15, 2025
Anatw
approved these changes
Apr 15, 2025
Anatw
left a comment
Contributor
There was a problem hiding this comment.
Thank you, nice and elegant.
Contributor
Author
|
Verification:
Logs show: And checking that the bridge is still on the node confirmed the problem.
Logs show: And checking the node confirmed that the bridge is not there. /verified |
Collaborator
|
/ldtm |
rnetser
approved these changes
Apr 17, 2025
Collaborator
|
/lgtm |
|
New container for quay.io/openshift-cnv/openshift-virtualization-tests:latest published |
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.
What this PR does / why we need it:
When mutating an existing NNCP object, it is common to wait for a
condition status of success (condition type "Available").
However, it has been observed or bare-metal clusters that the observed
condition is the previous one and is not reflecting the actual state
after the spec update/patch.
In order to handle these cases, the condition timestamp is used to
assure it has been updated post the change.
Other alternatives have been found unsafe, like the option of waiting
for an intermediate state (e.g. "progressing"). It is unsafe because the
state is in transition and that can be quicker than the sampling
performed by the test tools.
The current NNCP object updates the spec only when performing the
clean-up step (on teardown). At that step the previous created
interfaces are being removed.
Any future exposure of update/patch requires this technique to assure
successful operation.
This change also introduces mypy validation on the new tests/network/libs package.
Which issue(s) this PR fixes:
Special notes for reviewer:
This is following the solution introduced in RedHatQE/openshift-python-wrapper#2354 with some tweaks.
jira-ticket: