Skip to content

OCPBUGS-80930: Add VolumeAttributesClass e2e test manifests for Azure disk#538

Open
radeore wants to merge 1 commit intoopenshift:mainfrom
radeore:vac-azuredisk
Open

OCPBUGS-80930: Add VolumeAttributesClass e2e test manifests for Azure disk#538
radeore wants to merge 1 commit intoopenshift:mainfrom
radeore:vac-azuredisk

Conversation

@radeore
Copy link
Copy Markdown

@radeore radeore commented Mar 27, 2026

Summary

  • Added ultrassd-manifest.yaml with VolumeAttributesClass support for running
    Kubernetes external storage e2e tests against the managed-csi-ultrassd
    StorageClass.
  • Added volumeattributesclass.yaml defining an UltraSSD-backed
    VolumeAttributesClass with custom IOPS and throughput parameters

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: f08de092-6b72-443f-bd5b-aaba588492f1

📥 Commits

Reviewing files that changed from the base of the PR and between 72cb5b6 and 6aaee72.

📒 Files selected for processing (2)
  • test/e2e/azure-disk/ultrassd-manifest.yaml
  • test/e2e/azure-disk/volumeattributesclass.yaml
✅ Files skipped from review due to trivial changes (2)
  • test/e2e/azure-disk/ultrassd-manifest.yaml
  • test/e2e/azure-disk/volumeattributesclass.yaml

📝 Walkthrough

Walkthrough

Two new files were added under test/e2e/azure-disk/. ultrassd-manifest.yaml is an e2e test manifest (ShortName: azuredisk) that reuses an existing StorageClass (FromExistingClassName: managed-csi-ultrassd), enables snapshot testing (SnapshotClass: FromName), sources volume attributes from file (VolumeAttributesClass: FromFile), and declares CSI DriverInfo for disk.csi.azure.com (size range 4Gi–16Ti, fstypes xfs,ext4, mount option dirsync), topology key topology.disk.csi.azure.com/zone, listed driver capabilities, and pod/PV timeouts. volumeattributesclass.yaml adds a VolumeAttributesClass named ultrassd-azuredisk-vac for disk.csi.azure.com with diskIOPSReadWrite: "1000" and diskMBpsReadWrite: "200".

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@test/e2e/azure-disk/ultrassd-manifest.yaml`:
- Line 28: Update the UltraSSD manifest so the storage class/property
onlineExpansion is set to true (change the current onlineExpansion: false to
onlineExpansion: true) to reflect Azure UltraSSD and CSI driver v1.34+ support
for online volume expansion; modify the ultrassd manifest entry that defines
onlineExpansion so e2e tests exercise online expansion scenarios correctly.

In `@test/e2e/azure-disk/volumeattributesclass.yaml`:
- Around line 6-8: Update the volumeattributesclass parameters to match the
Azure Disk CSI driver's documented casing by renaming DiskIOPSReadWrite ->
diskIOPSReadWrite and DiskMBpsReadWrite -> diskMBpsReadWrite in the YAML, and
verify that the numeric values (1000 IOPS, 200 MBps) are appropriate for the
intended disk SKU/size (since Azure enforces size-dependent IOPS/MBps limits)
before committing.
🪄 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), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 6906e604-82b1-4ebc-a3c2-cf02a6745948

📥 Commits

Reviewing files that changed from the base of the PR and between 2ae0025 and 72cb5b6.

📒 Files selected for processing (2)
  • test/e2e/azure-disk/ultrassd-manifest.yaml
  • test/e2e/azure-disk/volumeattributesclass.yaml

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 30, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: radeore
Once this PR has been reviewed and has the lgtm label, please assign romanbednar for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@radeore
Copy link
Copy Markdown
Author

radeore commented Mar 31, 2026

/retest-required

@radeore
Copy link
Copy Markdown
Author

radeore commented Mar 31, 2026

/test hypershift-e2e-aks

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 1, 2026

/test ?

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 1, 2026

/test e2e-azure-csi-volumeattributesclass

1 similar comment
@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 1, 2026

/test e2e-azure-csi-volumeattributesclass

@radeore
Copy link
Copy Markdown
Author

radeore commented Apr 1, 2026

'e2e-azure-csi-volumeattributesclass' is failing due to default storageClass issue, fixed this issue in openshift/release#77248

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 3, 2026

/test e2e-azure-csi-volumeattributesclass

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 3, 2026

/retitle OCPBUGS-80930: Add VolumeAttributesClass e2e test manifests for Azure disk

@openshift-ci openshift-ci bot changed the title OCPBUGS-80930 | Add VolumeAttributesClass e2e test manifests for Azure disk OCPBUGS-80930: Add VolumeAttributesClass e2e test manifests for Azure disk Apr 3, 2026
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 3, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@radeore: This pull request references Jira Issue OCPBUGS-80930, which is invalid:

  • expected the bug to target the "4.22.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Summary

  • Added ultrassd-manifest.yaml with VolumeAttributesClass support for running
    Kubernetes external storage e2e tests against the managed-csi-ultrassd
    StorageClass.
  • Added volumeattributesclass.yaml defining an UltraSSD-backed
    VolumeAttributesClass with custom IOPS and throughput parameters

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.

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 3, 2026

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Apr 3, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@Phaow: This pull request references Jira Issue OCPBUGS-80930, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @Phaow

Details

In response to this:

/jira refresh

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Apr 3, 2026
@openshift-ci openshift-ci bot requested a review from Phaow April 3, 2026 03:10
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 3, 2026

@radeore: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-azure-csi-volumeattributesclass 6aaee72 link false /test e2e-azure-csi-volumeattributesclass

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@Phaow
Copy link
Copy Markdown
Contributor

Phaow commented Apr 3, 2026

The new failure caused by UltraSSD_LRS only support None caching mode, in vac test jobs we must add explicit cachingMode for UltraSSD StorageClass. I opened openshift/release#77362 fix it, let's see whether we still needs some extra configurations.

...
2026-04-03T02:30:16.010555510Z E0403 02:30:16.010526       1 utils.go:110] GRPC error: rpc error: code = Internal desc = Attach volume pvc-c815310f-5489-4680-abf4-a6bbb84ace72 to instance ci-op-pb7r2m8f-ccb8f-tbtr9-worker-eastus2-xgxk2 failed with PUT https://management.azure.com/subscriptions/d38f1e38-4bed-438e-b227-833f997adf6a/resourceGroups/ci-op-pb7r2m8f-ccb8f-tbtr9-rg/providers/Microsoft.Compute/virtualMachines/ci-op-pb7r2m8f-ccb8f-tbtr9-worker-eastus2-xgxk2
2026-04-03T02:30:16.010555510Z --------------------------------------------------------------------------------
2026-04-03T02:30:16.010555510Z RESPONSE 400: 400 Bad Request
2026-04-03T02:30:16.010555510Z ERROR CODE: InvalidParameter
2026-04-03T02:30:16.010555510Z --------------------------------------------------------------------------------
2026-04-03T02:30:16.010555510Z {
2026-04-03T02:30:16.010555510Z   "error": {
2026-04-03T02:30:16.010555510Z     "code": "InvalidParameter",
2026-04-03T02:30:16.010555510Z     "message": "Storage Account type UltraSSD_LRS is not supported with caching type ReadOnly. Please use caching type None.",
2026-04-03T02:30:16.010555510Z     "target": "dataDisk.caching"
2026-04-03T02:30:16.010555510Z   }
2026-04-03T02:30:16.010555510Z }
2026-04-03T02:30:16.010555510Z --------------------------------------------------------------------------------
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants