Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ModifyVolume] No VolumeModifyFailed event emitted when target VAC does not exist #427

Open
AndrewSirenko opened this issue Aug 5, 2024 · 4 comments

Comments

@AndrewSirenko
Copy link
Contributor

No VolumeModifyFailed nor VolumeModify event emitted when PVC is updated to point at non-existent VAC.

I deem this as an external-resizer bug because there is no easy way for customer to see why their volume is not modifying other than checking status.modifyVolumeStatus.status and seeing Pending.

Error message in resizer container:

csi-resizer E0729 00:03:26.778429 1 modify_volume.go:91] Get VAC with vac name <VAC-NAME> in VACInformer cache failed: volumeattributesclass.storage.k8s.io "io6-class" not found


Reproduction steps:

  1. Launch pod and associated PVC (with or without VolumeAttributeClassName pointing to existent VAC).
  2. Patch PVC to non-existent VAC: kubectl patch pvc ebs-claim --patch '{"spec": {"volumeAttributesClassName": "io8-class"}}'
  3. Describe PVC
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 3, 2024
@AndrewSirenko
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 18, 2024
@sunnylovestiramisu
Copy link
Contributor

The Status should be set to Pending is the VAC does not exist. The discussion was that we do not want to reinforce the order of creating different objects(no requirement of VAC must be created before PVC etc.).

VolumeAttributesClass-ModifyVolume-Flow-v3

@AndrewSirenko
Copy link
Contributor Author

AndrewSirenko commented Dec 17, 2024

Hi @sunnylovestiramisu, thanks for the reply!

The Status should be set to Pending is the VAC does not exist.

I understand that status should be set to Pending in this case.

I raised this issue about emitting an event on the PVC mentioning missing VAC, so cluster operator can more easily see why modification never happened.

It seems that we emit an event in the provisioning path upon missing VAC:

Warning  ProvisioningFailed    1s (x3 over 2s)  ebs.csi.aws.com_ebs-csi-controller-5dc4fd4ffb-m4sr2_faa91941-2a1c-4cef-828f-64ab5a9f09 failed to provision volume with StorageClass "ebs-gp3-default": volumeattributesclasses.storage.k8s.io "gp4" not found

But a similar event is not emitted in modification path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants