STOR-3063: Add GCP regional PD e2e test for cross-zone data sync#31416
STOR-3063: Add GCP regional PD e2e test for cross-zone data sync#31416radeore wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@radeore: This pull request references STOR-3063 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 sub-task to target the "5.0.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. |
WalkthroughAdds a Ginkgo end-to-end test for GCE regional persistent disks. It validates prerequisites, provisions and mounts a regional disk, checks PV topology affinity, and verifies data access after remounting the volume in another zone. ChangesGCE regional persistent disk validation
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant GinkgoSuite
participant KubernetesAPI
participant FirstRegionalPod
participant BoundPV
participant SecondRegionalPod
GinkgoSuite->>KubernetesAPI: Create regional-pd StorageClass and PVC
GinkgoSuite->>KubernetesAPI: Create first zone-pinned pod
FirstRegionalPod->>KubernetesAPI: Write and read test content
GinkgoSuite->>KubernetesAPI: Fetch bound PV
BoundPV-->>GinkgoSuite: Return two-zone node affinity
GinkgoSuite->>KubernetesAPI: Delete first pod and create second zone-pinned pod
SecondRegionalPod->>KubernetesAPI: Read persisted test content
Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 3 warnings)
✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: radeore The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/extended/storage/gce_pd_regional.go`:
- Around line 60-63: Update the capability check in the storage test gate to
handle the error separately: fail or assert on err consistently with the
surrounding gates, then skip only when IsCapabilityEnabled returns successfully
with isStorageEnabled false. Preserve the existing skip message for genuinely
unavailable Storage capability.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: b51dffd9-508e-46cb-9b15-d377311a5b03
📒 Files selected for processing (1)
test/extended/storage/gce_pd_regional.go
|
Scheduling required tests: |
|
@radeore: The following tests 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. |
|
Risk analysis has seen new tests most likely introduced by this PR. New Test Risks for sha: 1be40ae
New tests seen in this PR at sha: 1be40ae
|
Summary
pd-standard+replication-type=regional-pd), writes data on a worker in one zone, and verifies the same data is readable from another PV affinity zone.pd-standard.TEST_CSI_DRIVER_FILES).Test plan
/openshift-tests run-test '[sig-storage][Jira:"Storage"][Driver: pd.csi.storage.gke.io] regional PD should store data and sync across zones [Suite:openshift/conformance/parallel]'Test run logs:
Summary by CodeRabbit