CMP-4116: Fix platform scan pod stuck when RawResultStorage is disabled#1097
Conversation
|
🤖 To deploy this PR, run the following command: |
rhmdnd
left a comment
There was a problem hiding this comment.
I have one recommendation about improving the test check by moving it to after the scan completes, which ensures we've exercised the conditional given the scan is done and must have gone through the aggregating phase successfully.
I'm concerned if we check PVCs too soon, we'll short-circuit the check. We take the same approach in TestScanSettingBindingNoStorage.
|
@Vincent056: This pull request references CMP-4116 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Verification pass. Really confused why this bug not observed previously. |
|
🤖 To deploy this PR, run the following command: |
|
🤖 To deploy this PR, run the following command: |
|
#1125 is needed to fix e2e |
The addResultsCollectionPods function unconditionally added the TLS volume and mount referencing the result-client-cert secret, which is only created when RawResultStorage.Enabled=true. This caused the platform scan pod to get stuck in Init:0/2 when RawResultStorage was disabled. Reuse getLogCollectorVolumeMounts and conditionally append the TLS volume, matching the existing behavior in getNodeScannerPodVolumes. Made-with: Cursor
Made-with: Cursor
cb6fa23 to
6b34394
Compare
|
🤖 To deploy this PR, run the following command: |
|
/test e2e-aws-parallel-arm |
|
@Vincent056: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test e2e-aws-parallel-arm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhmdnd, Vincent056, yuumasato The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
RawResultStorage.Enabled=false,addResultsCollectionPodsunconditionally added a TLS volume referencing theresult-client-cert-{scanName}secret, which is only created when raw result storage is enabled. This caused the platform scan pod to get stuck inInit:0/2.getLogCollectorVolumeMounts()and conditionally append the TLS volume only whenRawResultStorage.Enabled=true, matching the existing behavior ingetNodeScannerPodVolumes.TestScheduledSuitePlatformNoStoragecovering platform scans with disabled raw result storage.Made with Cursor