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

[PVC Expand]A special case will case pvc updated, but not expand lv by lvm-node #220

Open
esimest opened this issue Feb 7, 2023 · 4 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@esimest
Copy link

esimest commented Feb 7, 2023

Description

As https://github.com/openebs/lvm-localpv/blob/v0.8.x/design/lvm/images/resize_sequence_diagram.jpg show
If happen:

  1. step "Mark PVC As Filesystem resize required" Failed.
  2. Skip NodeExpandVolume
  3. run whole steps again

But when executing this process for the second time, it will happen:

  1. ControllerExpandVolume return fsResizeRequired=nil because of https://github.com/openebs/lvm-localpv/blob/develop/pkg/driver/controller.go#L544
  2. step "Mark PVC As Filesystem resize required" skipped, and run markPVCResizeFinished.(mark pvc update finished)
  3. skip NodeExpandVolume

Conclusion

So In above case, it will happen pvc updated finsihed but lv didn't resize

Describe

lv can resize normally even if above case happen.

@dung-tien-nguyen
Copy link
Contributor

dung-tien-nguyen commented Aug 26, 2023

Make sure that when you run the command lvs, lvm corresponds to the PV which is doing the resize error, has the status "-wi-ao----"

If the status is: "-wi-a-----" means that the pv is generated but not used by any container at all. This also results in resize failure (since kubelet doesn't trigger NodeExpandVolume event to lvm node )

image

@abhilashshetty04
Copy link
Contributor

@esimest Thanks for reporting the issue. Can you please let us know how did you reproduce this?

@dsharma-dc
Copy link
Contributor

Would be helpful to get some more clear details about the reproducing the problem so that we can look into it. Please share the user action details to help better. Also, as mentioned by @dung-tien-nguyen , the filesystem will not expand until the volume is published i.e. used by an application.

@avishnu avishnu added this to the v4.2 milestone Sep 19, 2024
@avishnu
Copy link
Member

avishnu commented Sep 19, 2024

Further investigation needed. Investigation scoped for v4.2.

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

Successfully merging a pull request may close this issue.

5 participants