-
Notifications
You must be signed in to change notification settings - Fork 27
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
filesystem is not resized when restoring from snapshot/cloning to larger size than origin #100
filesystem is not resized when restoring from snapshot/cloning to larger size than origin #100
Conversation
c676ada
to
02a379b
Compare
02a379b
to
75c0805
Compare
@RomanBednar: GitHub didn't allow me to assign the following users: arahamad-zz. 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. In response to this:
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. |
b5b3f5a
to
d05d445
Compare
/assign @ambiknai |
d05d445
to
528af82
Compare
/retest |
@arahamad-zz PTAL as well since you might have more context about it. |
With our existing driver, I was not able to recreate the issue Could you please help to explain why this change is required.
|
You probably did recreate the issue but looking at the output you did not check the filesystem size of the PVC restored from snapshot - that's where the problem is. Use |
Thanks @RomanBednar . I am going to pull this code, build an image and do e2e in our CSI driver. |
I have verified e2e functionality and works as expected. @arahamad could you pls take a look in to the PR once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just see if you can implement these changes in https://github.com/IBM/ibm-csi-common which will require very less changes in this repo
528af82
to
a3f4ed6
Compare
Tested on real cluster to verify resizing works in current version of the patch. I've build a driver with changes here in vendor dir and then moved them to separate PR.
Tests here will fail until the changes are merged in library and version here gets bumped. @arahamad and @ambiknai PTAL and review again. |
@RomanBednar New release created - https://github.com/IBM/ibm-csi-common/releases/tag/v1.1.2 Could you please do necessary changes in this PR to use |
VolumeMountUtils is already instantiated in init() of ibmcsidriver module so there is no need for this line of code.
In order to allow testing of code that includes command sequence we need to change the driver so it can accept a list of fake commands.
This is the actual fix for resizing filesystem when volume is restored from a snapshot to larger size
a3f4ed6
to
c115007
Compare
@RomanBednar: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@RomanBednar Could you change ibm-csi-common version to new release - https://github.com/IBM/ibm-csi-common/releases/tag/v1.1.3 |
f01b47f
to
1f145af
Compare
@ambiknai Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
please verify changes as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ambiknai, arahamad, RomanBednar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel IBM/ibm-csi-common#69 is now merged. |
Resolves #85
Sanity tests need to be disabled (or fixed) first: kubernetes/test-infra#27795