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 pluginpath for cephfs #460

Merged
merged 1 commit into from
Jul 29, 2019
Merged

Fix pluginpath for cephfs #460

merged 1 commit into from
Jul 29, 2019

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Jul 4, 2019

Describe what this PR does

make pluginpath configurable for cephfs

@Madhu-1 Madhu-1 force-pushed the fix-pluginapath branch 3 times, most recently from 0399fa6 to c17f8ec Compare July 4, 2019 10:23
cmd/cephcsi.go Outdated
@@ -52,6 +53,8 @@ var (
volumeMounter = flag.String("volumemounter", "", "default volume mounter (possible options are 'kernel', 'fuse')")
mountCacheDir = flag.String("mountcachedir", "", "mount info cache save dir")
metadataStorage = flag.String("metadatastorage", "", "metadata persistence method [node|k8s_configmap]")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Madhu-1 no newline required here.

klog.Infof("Driver: %v version: %v", driverName, version)

// Configuration
PluginFolder = pluginFolder
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be you can use a different arg name in func().. but even this is fine but one can miss the case of the letter and be confused.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jul 11, 2019

@humblec @ShyamsundarR @poornimag PTAL

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@humblec
Copy link
Collaborator

humblec commented Jul 25, 2019

@Madhu-1 can you please add the issue Link in the PR description ?

@humblec
Copy link
Collaborator

humblec commented Jul 25, 2019

@ShyamsundarR @poornimag Please review. This PR is pretty old , so ping with a timeout :)

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jul 25, 2019

Fixes: #458

@humblec
Copy link
Collaborator

humblec commented Jul 29, 2019

As discussed in slack, I am merging this PR.

@humblec humblec merged commit c7d990a into ceph:master Jul 29, 2019
wilmardo pushed a commit to wilmardo/ceph-csi that referenced this pull request Jul 29, 2019
@jianglingxia
Copy link

@Madhu-1
the pr merge v1.2.0,but i use the csi driver v1.0,then i put the pr code to v1.0 version and make cephcsi,use the bin to build a image then deploy the two pod ,but create a pvc can not dynamic create pv and volume

the provisioner logs ,i check the mointors i set in configmap :
[root@node-7:/home/ubuntu]$ docker logs c44ec2b8c9fd
E0823 06:01:06.345306 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:06.346736 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:06.857286 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:06.857351 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:07.865603 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:07.865630 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:09.879447 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:09.879544 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:13.888292 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:13.888312 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:21.946793 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:21.946814 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set
E0823 06:01:37.963374 1 controllerserver.go:59] validation of volume options failed: either monitors or monValueFromSecret should be set
E0823 06:01:37.963398 1 utils.go:109] GRPC error: rpc error: code = InvalidArgument desc = either monitors or monValueFromSecret should be set

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

@jianglingxia there are a lot of changes between v1.0.0 and v1.2.0.

from the error, it looks like csi is not able to fetch mon values. btw how you are passing mon values?

@jianglingxia
Copy link

yes,the v1.0.0 and v1.2.0 has a lot of changes, the mon values i writer the configmap and create configmap

because that my kubernetes cluster version is v1.13,so then use the csi version v1.0.0,can you give my some idea?thanks

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

@jianglingxia cephcsi v1.2.0 works with Kube 1.13. why you are using v1.0.0?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

@jianglingxia if you want to use v1.0.0 can you add monitors in storageclass and try?

@jianglingxia
Copy link

can i use k8s v1.13 and use csi version v1.2.0? thanks
but why before i use your images madhupr001/cephcsi:canary can right?and the storageclass do not add moniors

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

yes you can use cephcsi v1.2.0 with kube 1.13

@jianglingxia
Copy link

but
#524 the issue if use multi replicas must need k8s v1.14

the pr kubernetes-csi/external-provisioner#249 merge the sidecar,the k8s code change it when support multi replicas ?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

you can use a single replica. refer templates from v1.13 folder example https://github.com/ceph/ceph-csi/tree/master/deploy/rbd/kubernetes/v1.13

@jianglingxia
Copy link

sorry i see the pr label v1.2.0, but the branch and realeas can not find v1.2.0,only v1.0.0 and v1.1.0

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Aug 23, 2019

yes, we have only released v1.1.0 and v1.0.0 we are yet to release v1.2.0 this month End.

if you are testing ceph-csi you can use the master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants