-
Notifications
You must be signed in to change notification settings - Fork 41
check_resource | Remove check for current/desired-state in wait-sriov.yml #701
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
Conversation
📝 WalkthroughWalkthroughThe wait-sriov.yml task was simplified by removing the extraction and checks of both "current-state" and "desired-state" annotations from the SriovNetworkNodeState resource. Now, it only waits for the resource’s sync status to be "Succeeded" and that the resource exists. Changes
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 52s |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 51s |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 48s |
recheck |
1 similar comment
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 49s |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 54s |
recheck |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 48s |
Thanks Ramon, I started to experience this yesterday, I suspect SRIOV operator changed. |
from change #701: |
6a3c566
to
091ba08
Compare
In fact, I've tested in 4.12 with SPK and it failed because no network annotation is used there to report the "Idle" status, it's just used the syncStatus field, so I've refactored again the code. |
Build succeeded. ✔️ dci-rpm-build-el8 SUCCESS in 2m 54s |
from change #701: |
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
Before merging can we ensure those annotations are really not in use and the failure is not something else? I found previous jobs without those annotations and it didn't fail, why it is failing now? 2025-06-08 2025-06-09 2025-06-03 2025-05-25 On the other hand I do see the checked annotations in these jobs: 2025-06-09
@ramperher did you find something that confirms the syncstatus is enough? |
@tonyskapunk , all the jobs you were quoting were using an older version of wait-sriov playbook from the check_resource role. This changed the 9th of June with my change to document other SRIOV setups for example-cnf, including Mellanox support: ec7cdb6#diff-d4875c737e9f1aa17619dc88fa6d49137f1e474fd6fa4fab763f48eb669d8712 For this, I improved the SriovNetworkNodeState check, to use From what I've extracted from daily jobs, I could see that:
So, with this change, I'm just returning to the original check, which is just to check the syncStatus, but still using the cleaner approach with If you don't mind, I will include this conclusion in the PR description and merge the change. |
SUMMARY
It's not true that all the SriovNetworkNodeState checks have the SRIOV annotations present, e.g. https://www.distributed-ci.io/jobs/e655be15-f3ce-410b-8e75-a9476c50d4ae/jobStates?sort=date&task=625d5c02-78c2-4779-b561-2346840feacc, the task is failing because all checks were passing but desired-state annotation was not in place.
From what I've extracted from daily jobs, I could see that:
"sriovnetwork.openshift.io/current-state"
is present from OCP 4.14"sriovnetwork.openshift.io/desired-state"
annotation looks like present from OCP 4.16, since daily jobs with that version and higher ones are passing, e.g. https://www.distributed-ci.io/jobs/724add53-e2bb-4c01-91a9-e41cd305b5ab/jobStatesSo, with this change, I'm just returning to the original check, which is just to check the syncStatus, just to be compliant with all available OCP releases. but still using the cleaner approach with
json_query
, introduced in this PR: #661It's true that it would be more precise to also use the two network annotations aforementioned, but with the syncStatus it should be fine; typically, syncStatus moves to Succeeded once the annotations (if they're defined) are in Idle status.
ISSUE TYPE
Tests
Test-Hints: no-check