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

openebs(LVM model) use csi-resizer to expand pv failed #223

Closed
karony opened this issue Sep 21, 2022 · 5 comments
Closed

openebs(LVM model) use csi-resizer to expand pv failed #223

karony opened this issue Sep 21, 2022 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@karony
Copy link

karony commented Sep 21, 2022

No description provided.

@karony karony changed the title resizer openebs use csi-resizer failed Sep 21, 2022
@karony karony changed the title openebs use csi-resizer failed openebs(LVM model) use csi-resizer to expand pv failed Sep 21, 2022
@karony
Copy link
Author

karony commented Sep 21, 2022

Backgroud:
I expand pv size for a statefulset with 6 pods, but 3 pod pv expand size fail. I make sure I have enough disk.

log and pod info

[kube-prod01@ip-10-128-155-67 ~]$ kubectl describe pvc elasticsearch-data-uat-es-data-4 -n di-elk-spsec-hids-data 
Name:          elasticsearch-data-uat-es-data-4
Namespace:     di-elk-spsec-hids-data
StorageClass:  localpv-lvm
Status:        Bound
Volume:        pvc-99c528da-a213-45b7-87bb-0d89978fa5d4
Labels:        common.k8s.elastic.co/type=elasticsearch
               elasticsearch.k8s.elastic.co/cluster-name=spsec-hids-data-uat
               elasticsearch.k8s.elastic.co/statefulset-name=spsec-hids-data-uat-es-data
Annotations:   pv.kubernetes.io/bind-completed: yes
               pv.kubernetes.io/bound-by-controller: yes
               volume.beta.kubernetes.io/storage-provisioner: local.csi.openebs.io
               volume.kubernetes.io/selected-node: ip-10-169-3-154
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      1025Gi
Access Modes:  RWO
VolumeMode:    Filesystem
Used By:       spsec-hids-data-uat-es-data-4
Events:
  Type     Reason                  Age                  From                                   Message
  ----     ------                  ----                 ----                                   -------
  Warning  ExternalExpanding       87s (x2 over 5h15m)  volume_expand                          Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC.
  Warning  VolumeResizeFailed      84s (x2 over 5h15m)  external-resizer local.csi.openebs.io  Mark PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4" as file system resize required failed: can't patch status of  PVC di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4 with Operation cannot be fulfilled on persistentvolumeclaims "elasticsearch-data-uat-es-data-4": the object has been modified; please apply your changes to the latest version and try again
  Normal   Resizing                83s (x4 over 5h15m)  external-resizer local.csi.openebs.io  External resizer is resizing volume pvc-99c528da-a213-45b7-87bb-0d89978fa5d4
  Normal   VolumeResizeSuccessful  81s (x2 over 5h15m)  external-resizer local.csi.openebs.io  Resize volume succeeded
"di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"
I0915 02:34:05.114673       1 controller.go:291] Started PVC processing "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"
I0915 02:34:05.883143       1 request.go:600] Waited for 768.003478ms due to client-side throttling, not priority and fairness, request: PATCH:[https://172.16.0.1:443/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status](https://172.16.0.1/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status)
I0915 02:34:05.888246       1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"di-elk-spsec-hids-data", Name:"elasticsearch-data-uat-es-data-4", UID:"99c528da-a213-45b7-87bb-0d89978fa5d4", APIVersion:"v1", ResourceVersion:"285193539", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-99c528da-a213-45b7-87bb-0d89978fa5d4
I0915 02:34:07.683416       1 request.go:600] Waited for 792.792301ms due to client-side throttling, not priority and fairness, request: PATCH:[https://172.16.0.1:443/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status](https://172.16.0.1/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status)
E0915 02:34:07.687589       1 controller.go:282] Error syncing PVC: Mark PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4" as file system resize required failed: can't patch status of  PVC di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4 with Operation cannot be fulfilled on persistentvolumeclaims "elasticsearch-data-uat-es-data-4": the object has been modified; please apply your changes to the latest version and try again
I0915 02:34:07.687623       1 controller.go:291] Started PVC processing "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"
I0915 02:34:07.687654       1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"di-elk-spsec-hids-data", Name:"elasticsearch-data-uat-es-data-4", UID:"99c528da-a213-45b7-87bb-0d89978fa5d4", APIVersion:"v1", ResourceVersion:"285193539", FieldPath:""}): type: 'Warning' reason: 'VolumeResizeFailed' Mark PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4" as file system resize required failed: can't patch status of  PVC di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4 with Operation cannot be fulfilled on persistentvolumeclaims "elasticsearch-data-uat-es-data-4": the object has been modified; please apply your changes to the latest version and try again
I0915 02:34:08.283740       1 request.go:600] Waited for 595.550153ms due to client-side throttling, not priority and fairness, request: PATCH:[https://172.16.0.1:443/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status](https://172.16.0.1/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status)
I0915 02:34:08.290961       1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"di-elk-spsec-hids-data", Name:"elasticsearch-data-uat-es-data-4", UID:"99c528da-a213-45b7-87bb-0d89978fa5d4", APIVersion:"v1", ResourceVersion:"285193644", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-99c528da-a213-45b7-87bb-0d89978fa5d4
I0915 02:34:09.683940       1 request.go:600] Waited for 794.616164ms due to client-side throttling, not priority and fairness, request: PATCH:[https://172.16.0.1:443/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status](https://172.16.0.1/api/v1/namespaces/di-elk-spsec-hids-data/persistentvolumeclaims/elasticsearch-data-uat-es-data-4/status)
I0915 02:34:09.689026       1 controller.go:533] Resize PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4" finished
I0915 02:34:09.689071       1 controller.go:291] Started PVC processing "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"
I0915 02:34:09.689081       1 controller.go:334] No need to resize PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"
I0915 02:34:09.689093       1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"di-elk-spsec-hids-data", Name:"elasticsearchdata-uat-es-data-4", UID:"99c528da-a213-45b7-87bb-0d89978fa5d4", APIVersion:"v1", ResourceVersion:"285193644", FieldPath:""}): type: 'Normal' reason: 'VolumeResizeSuccessful' Resize volume succeeded
I0915 02:34:09.689378       1 controller.go:291] Started PVC processing "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4"

I don't know the reason for this error Error syncing PVC: Mark PVC "di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4" as file system resize required failed: can't patch status of PVC di-elk-spsec-hids-data/elasticsearch-data-uat-es-data-4 with Operation cannot be fulfilled on persistentvolumeclaims "elasticsearch-data-uat-es-data-4": the object has been modified; please apply your changes to the latest version and try again

Can you give me some hint from the message.

Version info
kubernetes: 1.22.5
csi-resizer: 1.2

very thank you!

@k8s-triage-robot
Copy link

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

This bot triages issues and PRs 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 or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR 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 Dec 20, 2022
@k8s-triage-robot
Copy link

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

This bot triages issues and PRs 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 or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 19, 2023
@k8s-triage-robot
Copy link

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

This bot triages 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:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2023
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

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

This bot triages 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:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

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

/close not-planned

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/test-infra repository.

sunnylovestiramisu added a commit to sunnylovestiramisu/external-resizer that referenced this issue Apr 12, 2023
6613c398 Merge pull request kubernetes-csi#223 from sunnylovestiramisu/update
0e7ae993 Update k8s image repo url
77e47cce Merge pull request kubernetes-csi#222 from xinydev/fix-dep-version
155854b0 Fix dep version mismatch
8f839056 Merge pull request kubernetes-csi#221 from sunnylovestiramisu/go-update
1d3f94dd Update go version to 1.20 to match k/k v1.27
e322ce5e Merge pull request kubernetes-csi#220 from andyzhangx/fix-golint-error
b74a5120 test: fix golint error
aa61bfd0 Merge pull request kubernetes-csi#218 from xing-yang/update_csi_driver
7563d196 Update CSI_PROW_DRIVER_VERSION to v1.11.0
a2171bef Merge pull request kubernetes-csi#216 from msau42/process
cb987826 Merge pull request kubernetes-csi#217 from msau42/owners
a11216e4 add new reviewers and remove inactive reviewers
dd986754 Add step for checking builds
b66c0824 Merge pull request kubernetes-csi#214 from pohly/junit-fixes
b9b6763b filter-junit.go: fix loss of testcases when parsing Ginkgo v2 JUnit
d4277839 filter-junit.go: preserve system error log
38e11468 prow.sh: publish individual JUnit files as separate artifacts

git-subtree-dir: release-tools
git-subtree-split: 6613c3980d1e418bebb7bc49d64c977cfff85671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

3 participants