Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Slider 0.80
-
None
Description
Slider version 0.80 with secured cluster.
Attempt to create a component with characters like dash '-' or many other characters fail to bring up the component with error. It seems the only valid character in component name besides [A-Z][a-z[0-9] is underscore '_'.
Per discussion, dash is a allowed character and should work, hence filing jira.
I recreated issue with OOB jmemcached by creating component name my-name.
The component fails to come up. The component agent log shows following error.
INFO 2016-01-12 20:52:02,484 NetUtil.py:45 - Calling url received 200
INFO 2016-01-12 20:52:02,487 Controller.py:140 - Registering with the server at https://host36:46236/ws/v1/slider/agents/container_1452195922769_0005_01_000002___my-name/register with data '{"tags": "", "timestamp": 1452631922486, "expectedState": 0, "responseId": -1, "actualState": 0, "logFolders": {}, "agentVersion": "1", "allocatedPorts": {}, "appVersion": null, "publicHostname": "host38", "label": "container_1452195922769_0005_01_000002___my-name"}'
INFO 2016-01-12 20:52:02,487 security.py:89 - SSL Connect being called.. connecting to the server
INFO 2016-01-12 20:52:02,568 security.py:51 - SSL connection established. Two-way SSL authentication is turned off on the server.
INFO 2016-01-12 20:52:02,617 Controller.py:183 - Unable to connect to: https://host38:46236/ws/v1/slider/agents/container_1452195922769_0005_01_000002___my-name/register
Traceback (most recent call last):
File "/data/yarn/local/usercache/foo/appcache/application_1452195922769_0005/filecache/10/slider-agent.tar.gz/slider-agent/agent/Controller.py", line 142, in registerWithServer
regResp = json.loads(response)
File "/usr/lib64/python2.6/json/_init_.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
The AM log shows AM not getting container heartbeat (since container start has error), marks container lost (-100) and keeps attempting to get new container.