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

Fix raw block volume resizing for EBS #346

Closed
gnufied opened this issue Aug 15, 2019 · 20 comments · Fixed by #695
Closed

Fix raw block volume resizing for EBS #346

gnufied opened this issue Aug 15, 2019 · 20 comments · Fixed by #695
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Milestone

Comments

@gnufied
Copy link
Contributor

gnufied commented Aug 15, 2019

We need to fix raw block volume resizing (NodeExpandVolume) to not resize the volume if given volume_path in resize request is a block device and not a mounted file system.

@gnufied
Copy link
Contributor Author

gnufied commented Aug 15, 2019

@wongma7 will you have time to fix this?

@gnufied gnufied changed the title Fix raw block volume resizing Fix raw block volume resizing for EBS Aug 15, 2019
@wongma7
Copy link
Contributor

wongma7 commented Aug 15, 2019

/assign
Yes, will have a look

@leakingtapan
Copy link
Contributor

leakingtapan commented Aug 15, 2019

It's more explicit to return NodeExpansionRequired=false during ControllerExpandVolume call when the controller block volume expansion is requested. But I also realized that volume capability is not passed into ControllerExpandVolume which makes controller harder to know if is this request for block or filesystem.

@wongma7
Copy link
Contributor

wongma7 commented Aug 15, 2019

Yeah, @leakingtapan let's help review container-storage-interface/spec#381 & container-storage-interface/spec#380 to get volume capability passed to ControllerExpandVolume

@leakingtapan
Copy link
Contributor

We need to fix raw block volume resizing (NodeExpandVolume) to not resize the volume if given volume_path in resize request is a block device and not a mounted file system.

I can understand not do node resize for block volume. But what does not a mounted file system mean?

@gnufied

@gnufied
Copy link
Contributor Author

gnufied commented Aug 15, 2019

the volume_path specified in NodeExpandVolumeRequest field could be a mount point (or a directory with file system) or it could be a block device (such as /dev/xvdba). We should be able to differentiate between two and only resize the volume if volume_path is a mounted file system and not a raw block device. I think skipping fs resize if mount_path is a raw block device should do the job.

@leakingtapan
Copy link
Contributor

/assign @sreis

@k8s-ci-robot
Copy link
Contributor

@leakingtapan: GitHub didn't allow me to assign the following users: sreis.

Note that only kubernetes-sigs members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @sreis

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.

@zhucan
Copy link
Member

zhucan commented Nov 15, 2019

@gnufied what's version with the kubernetes support NodeExpandVolume for raw block volume? v1.14&v1.15 doesn't support it?

@leakingtapan
Copy link
Contributor

@zhucan There is not feature flag for raw block volume expansion, it fall under ExpandCSIVolumes flag, which is beta since 1.16

@zhucan
Copy link
Member

zhucan commented Nov 19, 2019

@leakingtapan Yes, In my kubernetes cluster(v1.15.0), The expansion(NodeExpandVolume) for raw block not be called.

@leakingtapan
Copy link
Contributor

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 15, 2020
@leakingtapan leakingtapan modified the milestones: 0.5, 0.6 Mar 1, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 May 30, 2020
@frittentheke
Copy link
Contributor

/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 Jun 2, 2020
@frittentheke
Copy link
Contributor

@leakingtapan I took the liberty to "unstale" this ... should bugs, especially those you already triaged and marked as such, ever go stale?

@leakingtapan
Copy link
Contributor

Thx for doing this. It looks fejta-bot isn’t smart enough to figure out if the issue is triaged or not... and I don’t have more time to work on the fix

@leakingtapan leakingtapan modified the milestones: 0.6, 0.7 Aug 9, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 7, 2020
@frittentheke
Copy link
Contributor

/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 9, 2020
@ayberk
Copy link
Contributor

ayberk commented Jan 12, 2021

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Jan 12, 2021
@AndyXiangLi
Copy link
Contributor

/assign
looking into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants