-
Notifications
You must be signed in to change notification settings - Fork 100
feat(provisioning): extra format options (mkfs
) added
#335
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
base: develop
Are you sure you want to change the base?
Conversation
e931f2c
to
de805a6
Compare
6a46aef
to
6fc3b35
Compare
2cf836e
to
3c59634
Compare
How is the new formatOptions going to be set by user? via storageclass? There is no mkfsOptions unlike mountOptions as provided by storageclass. |
I think |
Hi
So, It will work if you add it to storageclass |
Also there is no test for the mounter itself |
|
You can run this manually and document here the steps to set formatOptions. |
It's my first time that I'm contributing to this project so I just looked for where mountOptions is handled to handle formatOptions too |
Hello again I'm using NixOS, and I can't run |
I checked out more and I saw that we have to put this on where we are mounting volume for the first time, So there is no need to add this into |
3c59634
to
a699854
Compare
a699854
to
72528d1
Compare
@mhkarimi1383 |
golint-ci returns error
I think to update to |
Would you like to do that as part of this PR? or instead try using a |
I can do both, whatever is Ok :) |
Thanks, I'd say then try using a compatible |
Ok, I will revert my changes to go.mod, etc. And will change the package again |
I have fixed package versions and switched to a correct version of mount utils And I was able to build project successfully and tests passed |
@mhkarimi1383 , Let me have a look at it. |
@mhkarimi1383 I did try locally also. I got stuck myself because of PVC not getting Bound. FInally figured out that it was due to GO int limitation which was causing parsing issue. All test in develop passes after this fix. For failure in current PR. It seems to be failing during the mount. Pod is not going into Running state. This PR involves changes to mount logic also. Can you please test it manually also.
|
Will apply https://patch-diff.githubusercontent.com/raw/openebs/lvm-localpv/pull/387.patch locally and will do build and test |
This patch is unrelated to the errors that we have on this PR. You might have to look into mount code changes that was done. |
Found the problem with this, package main
import (
"fmt"
"strings"
)
func main() {
splitted := strings.Split("", " ")
fmt.Println(len(splitted))
fmt.Println(splitted[0])
} will print
This will cause the format command to be something like mkfs.ext4 "" -F -m0 ./a.img |
Now every thing is correct, I just have to work on the test case
|
82e68bd
to
213b661
Compare
Also I found test problem Containers are not able to do |
213b661
to
4067009
Compare
Found the issue, We are using deployments to test things but here I only need the container to success fully exit |
40d40c3
to
eb67ccf
Compare
@abhilashshetty04, @tiagolobocastro I have done with tests ;) |
Also it's good to make tests to run in parallel in CI I think |
Lets do a separate PR for that. We dont have bors or similar utility inplace for that right now in localpv repo. |
Yeah we should check if we don't have any naming conflicts, etc in resources that are creating in K8s but ginkgo has support for parallel tests |
Got it. We definately check it out. |
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.
Thanks, Please squash commits before merging @mhkarimi1383
I will |
0b06ecf
to
4283d66
Compare
1421cdb
to
3931703
Compare
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
3931703
to
7a6fcb2
Compare
@abhilashshetty04 I had to recreate branch and apply diff of the PR, Because of some merge commits, etc. |
Pull Request template
Please, go through these steps before you submit a PR.
Why is this PR required? What issue does it fix?:
adding extra format (
mkfs
) options to newly created Volumesalso switched from deprecated
utils/monut
tomount-utils
to be able to add this feature and moving from an old package to a maintained oneWhat this PR does?:
Refactor to new mount utils package and change format and mount function
Does this PR require any upgrade changes?:
No, But requires document updates for StorageClasses
If the changes in this PR are manually verified, list down the scenarios covered::
Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>