-
Notifications
You must be signed in to change notification settings - Fork 26
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
Invalid character 'E' looking for beginning of value #19
Comments
What version are you running and can you send the secret (minus creds of course)? |
Kubernetes v1.12.1
|
Can you send the version of the controller as well? |
Hi, I'm not sure what you mean by controller version, I cloned the repo yesterday and applied the configuration as stated in the README. Where would I obtain this controller version you need? Thanks |
That's enough info actually. The controller version is in the deployment manifest. Thanks! |
@asc-adean looking at the code this appears to be a response to an API call from FreeNAS but not certain yet. Did you use the default Also, what's the name of your pool in FreeNAS? Specifically, is it |
@asc-adean any luck? |
I just upgraded the deployment image from 2.3 to 2.4 and now I am having this issue as well. I've modified the two storage class providers I have to match the newer class.yaml.
One thing to note, the new class.yaml has Mountoptions as an empty map but kubectl apply complains unless it's an empty list. So I did change this to Mountoptions: []
Let me know if I can provide anything to help out. -g |
Can you share the storage class used ? According to https://godoc.org/k8s.io/api/storage/v1 , |
Sure here is one. I have tried various configuration changes. Including commenting out the mount options as well as using an empty list [], currently I was working on the assumption that it wanted something in that field so I added nolock. I have also tried a new secret file although the old default was the one that has been working fine for months with the older 2.3 image.
|
Any thoughts on how I can debug this? |
@totallyGreg can/are you running over http for the FreeNAS API? If so we can use tcpdump to observe traffic. |
Weirdly Freenas is responding with 401 Unauthorized. The secret and the credentials therein are the same as what I setup last fall.
|
I could be wrong but it looks like it's sending the base64 encoded password from the secret instead of the actual password and thus FreeNAS is responding with unauthorized. |
@totallyGreg interesting, what's the kubernetes version/environment you're running? |
1.13.4 as deployed by Rancher's RKE
I'm working on trying to understand how I can recompile the go executable with debug info so I can attach Squash to it to see exactly what's happening. Or simply add a few more informative error statements somewhere. |
@totallyGreg end up discovering anything? I also use rke so we're pretty close. I haven't updated to the latest build yet though but I have some additional tweaks to make soon to the provisioner and I'll keep an eye out for this. |
No, unfortunately I haven't had a chance to work on it for the last few weeks but I am motivated to figure it out since I can't add any more storage to my cluster (automatically) until I do. Yeah I don't understand where the EOF is coming from and my efforts to try and setup a go debug environment that could actually read the debug information wasn't very successful. |
Is there any solution to this problem? |
I haven't looked into it for a long time but may get a chance. I've actually started work on a If you find something let me know or if you can share your config files etc that would be helpful. |
|
@lmorningstar116 can you send your secrets file over as well (redact the password) and give me some details about the version of FreeNAS you have running? Just spew out as much information about the env as you can including maybe what you can share of I'll see what I can figure out.. |
@totallyGreg and @lmorningstar116 can you attempt to curl the api directly and see what you get? Something like:
Also, if possible can both of you share whether your root password has special characters and what they are? Not sure if some weird escaping thing is going on with the go http client.. |
any update on this? Running into the same problem |
Can you send the output of the appropriate curl command above for your setup? I'm 75% done writing a csi driver at this point too which will support resizing/snapshots/etc. Should be another couple weeks assuming I have some time to have it ready for some beta testing. |
Cool! ALthought im using rancher, and I dont know if i have the same API, im going to assume i need the baremetal k8s output? |
Thanks for the fast response btw. |
Nah, this has nothing to do with k8s, it's directly to your FreeNAS install (can run the command from your workstation). Rancher should work fine generally. All my clusters are rke. |
Cant seem to login for some reason, im going to guess that the "datasetname" is "mnt/{datasetname}" ? |
Yeah, send over maybe what you have in the config map for parent and I'll send the exact command... |
on root the curl request works yeah. But not using the user I want to use.. named "share" |
I dont want my kubernetes to have root acces... |
You don't want it to have root access to FreeNAS? |
well, ill try to make the secret root user then. Lets see if that works. |
The FreeNAS API only works as root...sorry. |
I only left it as a configuration option for the case that they change that policy some day.. |
What are you using for host nodes? Looks to me like you simply need to enable that service and you'll be good to go.. |
Any luck? Get the service running etc? |
Sorry haven't had the time, I appreciate your help very much. I am using a docker VM (rancherOS) to run the master node (only one node atm) |
Ill check in running that service first. Thanks, if i cant get it to work, ill make an issue. What exactly are you working on atm for the next version? What's different? |
It looks like you're not alone with rancheros missing the necessary stuff out the box but I'm sure it could be added. I'm actually a little perplexed that it's not a standard service for rancheros.
Some are from the context of just mounting stuff generally (outside of kubernetes) but the trident link is a pretty direct parallel. Not recommended but you could add the nolock option to the storage class mount options and try that too. |
HI ive read all the topics and gives some nice content, but I have no idea how this works. Am i enabling nfs on rancheros, freenas or the docker instance that runs the nodes? or on the node VM itself? |
You're trying to get nfs statd service running on the nodes that run kubelet (ie: rancheros which I assume is a VM in your case). |
Hey.
Judging by the error in Pod, there are not enough rights to mount nfs. But it is not clear how to fix the error. |
Is the share created properly in FreeNAS? Does it limit networks/ips for some reason? |
there are no network or IP restrictions. |
Are you certain you have all the appropriate nfs utils installed with stats running etc on the node(s)? What os is running on your nodes? |
Node OS: Ubuntu 18.04 |
Hmm, can you mount that same share (or another different manually created share) manually from that node to the same FreeNAS server? |
Hmm, on FreeNAS we opened the share properties and saved, after that the pod began to be created correctly. |
Interesting, delete the pod and pvc and try again and see what happens.. |
If I set the 'host' portion of secret.yml to a base64 of an IP address or a DNS hostname, I get this issue in the logs:
kubectl -n kube-system logs -f freenas-nfs-provisioner-5559b967df-js7sb
The text was updated successfully, but these errors were encountered: