CherryPicked: [cnv-4.22] [Storage] DV stop status functions #6527
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #6527"
general
weight: 0.35
RoniKishner
##### What this PR does / why we need it:
In
DataVolumeobject, you can passstop_status_funcandstop_status_func_kwargsinto.wait_for_dv_successmethod and make it fail sooner than the set timeout. Thestop_status_funcis passed in the sampler and checked every second so you can inject checking DV status or if the DV creation restarted 3 times, etc. and stop it preliminary based on real status, not timeout.This will reduce the time for some storage tests because the method won't have to solely wait for timeout to fail.
##### Which issue(s) this PR fixes:
https://redhat.atlassian.net/browse/CNV-28143
##### Special notes for reviewer:
##### jira-ticket:
https://redhat.atlassian.net/browse/CNV-98966
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Improved clone and DataVolume readiness handling by detecting excessive restart attempts.
* Prevented readiness checks from waiting indefinitely when restart thresholds are reached.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
##### Backport details:
cnv-4.222b6c70c5e1fa638732cbb1fa18640d417b3cc4bftests/storage/stop_status_utils.pyhelper.cnv-4.22utilities.constantsimport and adding the helper import.Linked Jira work:
---
_Generated by Codex · Agents: Codex (primary) · Skills: backport-cnv-tests · Models: GPT-6 (exact runtime variant unavailable)_