Receive error 'invalid character 'T' looking for beginning of value' when deploying a pod using a CIFS volume.
Issue
When deploying a pod with a CIFS volume, we receive one of the errors below:
-Special character case in networkPath
Oct 29 13:12:33 something.example.com atomic-openshift-node[5064]: E1029 13:12:33.727620 5064 driver-call.go:253] Failed to unmarshal output for command: mount, output: "{ \"status\": \"Failure\", \"message\": \"Failed to mount //something.example.com/path/blah\040blah at /var/lib/origin/openshift.local.volumes/pods/0f939a66-1a09-11eb-9d7a-0050568c201f/volumes/openshift.io~cifs/cifs2. mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)\" }\n", error: invalid character '0' in string escape code
Oct 29 13:12:33 something.example.com atomic-openshift-node[5064]: W1029 13:12:33.727704 5064 driver-call.go:144] FlexVolume: driver call failed: executable: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/openshift.io~cifs/cifs, args: [mount /var/lib/origin/openshift.local.volumes/pods/0f939a66-1a09-11eb-9d7a-0050568c201f/volumes/openshift.io~cifs/cifs2 {"kubernetes.io/fsType":"cifs","kubernetes.io/pod.name":"blah-2kjn4","kubernetes.io/pod.namespace":"blahns","kubernetes.io/pod.uid":"0f939a66-1a09-11eb-9d7a-0050568c201f","kubernetes.io/pvOrVolumeName":"cifs2","kubernetes.io/readwrite":"rw","kubernetes.io/secret/password":"xxxx","kubernetes.io/secret/username":"blah","kubernetes.io/serviceAccount.name":"default","mountOptions":"file_mode=0770,dir_mode=0770","networkPath":"//something.example.com/path/blah\040blah"}], error: exit status 1, output: "{ \"status\": \"Failure\", \"message\": \"Failed to mount //something.example.com/path/blah\040blah at /var/lib/origin/openshift.local.volumes/pods/0f939a66-1a09-11eb-9d7a-0050568c201f/volumes/openshift.io~cifs/cifs2. mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)\" }\n"
or
-Space character in networkPath
Oct 29 13:22:49 something.example.com atomic-openshift-node[5064]: W1029 13:22:49.662053 5064 driver-call.go:144] FlexVolume: driver call failed: executable: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/openshift.io~cifs/cifs, args: [mount /var/lib/origin/openshift.local.volumes/pods/11c26268-1a0b-11eb-9d7a-0050568c201f/volumes/openshift.io~cifs/cifs2 {"kubernetes.io/fsType":"cifs","kubernetes.io/pod.name":"blah-ff9df","kubernetes.io/pod.namespace":"blahns","kubernetes.io/pod.uid":"11c26268-1a0b-11eb-9d7a-0050568c201f","kubernetes.io/pvOrVolumeName":"cifs2","kubernetes.io/readwrite":"rw","kubernetes.io/secret/password":"xxxx","kubernetes.io/secret/username":"blah","kubernetes.io/serviceAccount.name":"default","mountOptions":"file_mode=0770,dir_mode=0770","networkPath":"//something.example.com/path/blah blah"}], error: exit status 1, output: "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\n File \"/usr/lib64/python2.7/json/__init__.py\", line 290, in load\n **kw)\n File \"/usr/lib64/python2.7/json/__init__.py\", line 338, in loads\n return _default_decoder.decode(s)\n File \"/usr/lib64/python2.7/json/decoder.py\", line 366, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/usr/lib64/python2.7/json/decoder.py\", line 382, in raw_decode\n obj, end = self.scan_once(s, idx)\nValueError: Invalid control character at: line 1 column 545 (char 544)\n{ \"status\": \"Failure\", \"message\": \"Network path Is not Found\" }\n"
Oct 29 13:22:49 something.example.com atomic-openshift-node[5064]: E1029 13:22:49.662389 5064 nestedpendingoperations.go:267] Operation for "\"flexvolume-openshift.io/cifs/11c26268-1a0b-11eb-9d7a-0050568c201f-cifs2\" (\"11c26268-1a0b-11eb-9d7a-0050568c201f\")" failed. No retries permitted until 2020-10-29 13:24:51.662332674 -0400 EDT m=+1487760.051085329 (durationBeforeRetry 2m2s). Error: "MountVolume.SetUp failed for volume \"cifs2\" (UniqueName: \"flexvolume-openshift.io/cifs/11c26268-1a0b-11eb-9d7a-0050568c201f-cifs2\") pod \"blah-ff9df\" (UID: \"11c26268-1a0b-11eb-9d7a-0050568c201f\") : invalid character 'T' looking for beginning of value"
Environment
Openshift 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.