run: Verify SNR conditions with non-existent node name w/ wao #118
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
<!-- coderabbit-ai-generated:v1 -->
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: skip review by coderabbit.ai -->
[!IMPORTANT]
## Draft PR not reviewed
> Draft PRs are not automatically reviewed by default.
> - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger a manual review
> To automatically review draft PRs, update your CodeRabbit configuration:
>> reviews: > auto_review: > drafts: true >
<!-- end of auto-generated comment: skip review by coderabbit.ai -->
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jonahsussman for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":["jonahsussman"]} -->
this looks stupid
@abrugaro hrm.. you'll want to comment on this
ran a larger non-destructive suite.. Note.. due to race conditions, this will fail if SNR starts disabled and is enabled by the test.
whayutin@whayutin-thinkpadp1gen7:~/OPENSHIFT/git/MEDIK8S/rhwa-system-tests$ ginkgo -v --fail-fast --label-filter="$ECO_TEST_LABELS" ./tests/snr-operator 2>&1 | tee /tmp/waosnr7
Ginkgo detected a version mismatch between the Ginkgo CLI and the version of Ginkgo imported by your packages:
Ginkgo CLI Version:
2.33.0
Mismatched package versions found:
2.32.0 used by snr-operator
Ginkgo will continue to attempt to run but you may see errors (including flag
parsing errors) and should either update your go.mod or your version of the
Ginkgo CLI to match.
To install the matching version of the CLI run
go install github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file. Alternatively you can use
go run github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file to invoke the matching version of the
Ginkgo CLI.
If you are attempting to test multiple packages that each have a different
version of the Ginkgo library with a single Ginkgo CLI that is currently
unsupported.
2026/11/04 12:12:16 Creating new GeneralConfig struct
2026/11/04 12:12:16 Creating new Medik8sConfig struct
2026/11/04 12:12:16 Creating new GeneralConfig struct
2026/11/04 12:12:16 Creating new GeneralConfig struct
Running Suite: SNR - /home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator
[medik8s, snr]
==============================================================================================
Random Seed: 1793819535
Will run 15 of 26 specs
------------------------------
[BeforeSuite]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/snr_suite_test.go:46
STEP: Ensuring the SNR operand is enabled and Available @ 11/04/26 12:12:16.934
[BeforeSuite] PASSED [0.264 seconds]
------------------------------
SNR Post Deployment tests Verify SNR resources are installed and running [operator:snr, 54205, test_id:54205, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:daemonset]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:45
STEP: Get SNR deployment object and verify readiness @ 11/04/26 12:12:17.199
STEP: Verifying SelfNodeRemediationConfig exists @ 11/04/26 12:12:17.351
STEP: Verifying SNR DaemonSet pods are running @ 11/04/26 12:12:17.437
STEP: Verifying SNR DaemonSet pods do not set hostPort (KSV024) @ 11/04/26 12:12:17.551
STEP: Verifying SNR controller-manager pods are running @ 11/04/26 12:12:17.596
• [0.585 seconds]
------------------------------
SNR Post Deployment tests RHWA-1984: Verify SNR DaemonSet containers set readOnlyRootFilesystem (KSV014) [operator:snr, 1984, test_id:1984, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:daemonset]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:125
STEP: Waiting for SNR DaemonSet pods to be running @ 11/04/26 12:12:17.785
STEP: Verifying SNR DaemonSet containers set readOnlyRootFilesystem (KSV014) @ 11/04/26 12:12:17.832
• [0.096 seconds]
------------------------------
SNR Post Deployment tests Verify only Automatic remediation template exists [operator:snr, 71010, test_id:71010, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:143
STEP: Verifying Automatic SelfNodeRemediationTemplate exists @ 11/04/26 12:12:17.881
STEP: Verifying remediation strategy is Automatic @ 11/04/26 12:12:17.929
STEP: Verifying unsupported templates do not exist @ 11/04/26 12:12:17.929
• [0.133 seconds]
------------------------------
SNR Post Deployment tests Verify SNR CSV annotations [operator:snr, 52136, test_id:52136, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:olm]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:196
[SKIPPED] in [It] - /home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:201 @ 11/04/26 12:12:18.015
S [SKIPPED] [0.000 seconds]
SNR Post Deployment tests [It] Verify SNR CSV annotations [operator:snr, 52136, test_id:52136, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:olm]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:196
[SKIPPED] SNR is a WAO operand on this run: there is no per-operand CSV to assert on, only the workload-availability-operator bundle
In [It] at: /home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:201 @ 11/04/26 12:12:18.015
------------------------------
SNR Post Deployment tests Verify SNR CSV metadata [operator:snr, 70705, test_id:70705, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:olm]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:236
[SKIPPED] in [It] - /home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:241 @ 11/04/26 12:12:18.015
S [SKIPPED] [0.000 seconds]
SNR Post Deployment tests [It] Verify SNR CSV metadata [operator:snr, 70705, test_id:70705, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:olm]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:236
[SKIPPED] SNR is a WAO operand on this run: there is no per-operand CSV to assert on, only the workload-availability-operator bundle
In [It] at: /home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/post_deployment.go:241 @ 11/04/26 12:12:18.015
------------------------------
SNR Must-Gather Diagnostics Verify SNR must-gather collects diagnostic data [Serial, operator:snr, 50774, test_id:50774, disruption:nondestructive, tier:acceptance, platform:any, component:controller, frequency:weekly]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/must_gather.go:33
STEP: Verifying SNR deployment is Ready @ 11/04/26 12:12:18.015
STEP: Detecting cluster topology @ 11/04/26 12:12:18.139
STEP: Resolving the RHWA must-gather image @ 11/04/26 12:12:18.214
must-gather image using default: quay.io/medik8s/must-gather:latest
STEP: Creating artifact directory for must-gather output @ 11/04/26 12:12:18.214
STEP: Capturing cluster state before must-gather for validation @ 11/04/26 12:12:18.214
STEP: Running oc adm must-gather @ 11/04/26 12:12:18.329
Using must-gather image quay.io/medik8s/must-gather:latest (digest sha256:9d3dcb2ee24f8cc8c8c6fe288948fcb65c61605a7feb41df1cfc6b2b4c4f0f05)
must-gather output saved to /tmp/ginkgo2731353922/snr-must-gather-803858318/oc-adm-must-gather.log
STEP: Collecting gathered file paths @ 11/04/26 12:12:37.057
STEP: Validating node YAMLs for all cluster nodes @ 11/04/26 12:12:37.059
Node YAMLs collected: 6/6
STEP: Validating SNR CRD definitions are present @ 11/04/26 12:12:37.059
STEP: Validating SNR controller and agent pod data is collected @ 11/04/26 12:12:37.059
SNR pod data collected: 8/8
STEP: Cleaning up leftover must-gather namespaces @ 11/04/26 12:12:37.059
Cleaning up leftover must-gather namespace: openshift-must-gather-lx7xv
• [19.497 seconds]
------------------------------
SSS
------------------------------
SNR Unsupported Strategy tests Verify SNR with unsupported NodeDeletion strategy is rejected [operator:snr, 60877, test_id:60877, tier:acceptance, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/unsupported_strategy.go:41
STEP: Verify SNR and SNRT CRDs exist @ 11/04/26 12:12:37.512
STEP: Creating SNR with NodeDeletion remediationStrategy @ 11/04/26 12:12:37.624
• [0.158 seconds]
------------------------------
SNR Unsupported Strategy tests Verify SNRT with unsupported NodeDeletion strategy is rejected [operator:snr, 60822, test_id:60822, tier:acceptance, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/unsupported_strategy.go:63
STEP: Verify SNR and SNRT CRDs exist @ 11/04/26 12:12:37.67
STEP: Creating SelfNodeRemediationTemplate with NodeDeletion strategy @ 11/04/26 12:12:37.753
• [0.136 seconds]
------------------------------
SS
------------------------------
SNR Processing Condition tests when SNR has nhc-timed-out annotation Verify SNR conditions with nhc-timed-out annotation [operator:snr, 60881, test_id:60881, tier:acceptance, disruption:nondestructive, platform:any, frequency:weekly, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/processing_conditions.go:55
STEP: Verify SNR deployment is ready @ 11/04/26 12:12:37.806
STEP: Creating SNR with nhc-timed-out annotation @ 11/04/26 12:12:37.913
STEP: Waiting for Processing and Succeeded conditions to reflect NHC timed-out state @ 11/04/26 12:12:37.97
• [0.253 seconds]
------------------------------
SNR Processing Condition tests when SNR targets a non-existent node Verify SNR conditions with non-existent node name [operator:snr, 70584, test_id:70584, tier:acceptance, disruption:nondestructive, platform:any, frequency:weekly, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/processing_conditions.go:105
STEP: Verifying test node name does not exist in the cluster @ 11/04/26 12:12:38.059
STEP: Creating SNR with non-existent node name @ 11/04/26 12:12:38.148
STEP: Waiting for Processing and Succeeded conditions to reflect node-not-found state @ 11/04/26 12:12:38.199
• [5.293 seconds]
------------------------------
SNR NetworkPolicy tests Verify SNR manages the agent DaemonSet NetworkPolicy [operator:snr, 1645, test_id:1645, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:network-policy]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/network_policy.go:70
STEP: Verifying the default SelfNodeRemediationConfig is ready @ 11/04/26 12:12:43.353
STEP: Verifying the NetworkPolicy self-node-remediation-ds-np exists for the default SelfNodeRemediationConfig @ 11/04/26 12:12:43.398
STEP: Verifying the NetworkPolicy is owned by the SelfNodeRemediationConfig CR @ 11/04/26 12:12:43.476
STEP: Verifying the NetworkPolicy's static ingress and egress rules @ 11/04/26 12:12:43.476
STEP: Deleting the NetworkPolicy and verifying the operator recreates it @ 11/04/26 12:12:43.476
STEP: Setting EndpointHealthCheckUrl and verifying the egress ipBlock rule resolves to its IP @ 11/04/26 12:12:48.628
STEP: Verifying the four static egress rules survive alongside the new ipBlock rule @ 11/04/26 12:12:48.734
STEP: Simulating a DNS flip and verifying the egress ipBlock rule updates to the new IP @ 11/04/26 12:12:48.776
STEP: Validating NetworkPolicy stability under rapid EndpointHealthCheckUrl changes (race test) @ 11/04/26 12:12:53.922
STEP: AfterAll: restoring original EndpointHealthCheckUrl on the default SNRC @ 11/04/26 12:13:29.294
• [45.993 seconds]
------------------------------
SNR CRD and Negative Validation tests Verify CRD description of safeTimeToAssumeNodeRebootedSeconds [operator:snr, 60824, test_id:60824, tier:smoke, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/crd_negative.go:42
STEP: Verify SNR admission webhook is ready before running webhook-dependent tests @ 11/04/26 12:13:29.346
STEP: Getting SelfNodeRemediationConfig CRD @ 11/04/26 12:13:29.496
STEP: Extracting safeTimeToAssumeNodeRebootedSeconds description from storage version @ 11/04/26 12:13:29.539
• [0.194 seconds]
------------------------------
SNR CRD and Negative Validation tests Verify non-default SNRC creation is rejected [operator:snr, 50961, test_id:50961, tier:acceptance, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/crd_negative.go:81
STEP: Attempting to create a non-default SelfNodeRemediationConfig @ 11/04/26 12:13:29.54
• [0.048 seconds]
------------------------------
SNR CRD and Negative Validation tests Verify invalid values in SNRC are rejected [operator:snr, 47330, test_id:47330, tier:acceptance, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/crd_negative.go:101
STEP: Creating SNRC with invalid string duration values @ 11/04/26 12:13:29.587
STEP: Creating SNRC with too-small duration values @ 11/04/26 12:13:29.626
• [0.075 seconds]
------------------------------
SNR CRD and Negative Validation tests Verify lastError is captured for non-existent node [operator:snr, 50583, test_id:50583, tier:acceptance, disruption:nondestructive, platform:any, frequency:presubmit, component:controller]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/tests/crd_negative.go:170
STEP: Verifying test node name does not exist in the cluster @ 11/04/26 12:13:29.662
STEP: Creating SNR with non-existent node name @ 11/04/26 12:13:29.702
STEP: Verifying lastError field is populated @ 11/04/26 12:13:29.749
• [0.183 seconds]
------------------------------
SSSSSS
------------------------------
[AfterSuite]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/snr_suite_test.go:72
STEP: Reporting the state the SNR operand ended the run in @ 11/04/26 12:13:29.846
AfterSuite: operand selfNodeRemediation phase=Available (left enabled on purpose)
AfterSuite: operand selfNodeRemediation running=true (self-node-remediation-controller-manager 2/2)
STEP: Sweeping up SelfNodeRemediation CRs the suite left behind @ 11/04/26 12:13:29.982
[AfterSuite] PASSED [0.178 seconds]
------------------------------
[ReportAfterSuite]
/home/whayutin/OPENSHIFT/git/MEDIK8S/rhwa-system-tests/tests/snr-operator/snr_suite_test.go:171
[ReportAfterSuite] PASSED [0.005 seconds]
------------------------------
[ReportAfterSuite] Autogenerated ReportAfterSuite for --junit-report
autogenerated by Ginkgo
[ReportAfterSuite] PASSED [0.001 seconds]
------------------------------
Ran 13 of 26 Specs in 73.089 seconds
SUCCESS! -- 13 Passed | 0 Failed | 0 Pending | 13 Skipped
PASS
Ginkgo ran 1 suite in 1m14.22763358s
Test Suite Passed
whayutin@whayutin-thinkpadp1gen7:~/OPENSHIFT/git/MEDIK8S/rhwa-system-tests$
We were excluding this check in upstream testing as well, as the images built from main may not have the correct CSV.
if !helpers.IsDownstream() {
Skip("CSV product annotations are absent when ECO_IS_DOWNSTREAM=false")
}
weshayutin
reusing existing tests, just adding pre and post functions to enable wao / snr . Also ensuring clean up is tagged for wao. I need to sit on this.. but it's working :)