Slider version 0.80 with secured cluster

Use case is to create a component reflecting user name. It seems the only
valid character in component name besides [A-Z][a-z[0-9] is underscore '_'.

Attempt to create a component with characters like dash '-' or many other
characters fail to bring up the component with error like below where
<COMP-NAME>
is the component name containing offending character

INFO 2015-12-24 18:55:40,605 Controller.py:140 - Registering with the
server at
https://host1:41613/ws/v1/slider/agents/container_1450746204314_0043_01_000002___<COMP-NAME>/register
with data '{"tags": "", "timestamp": 1450983340604, "expectedState": 0,
"responseId": -1, "actualState": 0, "logFolders": {}, "agentVersion": "1",
"allocatedPorts": {}, "appVersion": null, "publicHostname": "host2",
"label": "container_1450746204314_0043_01_000002___<COMP-NAME>"}'
INFO 2015-12-24 18:55:40,605 security.py:89 - SSL Connect being called..
connecting to the server
INFO 2015-12-24 18:55:40,695 security.py:51 - SSL connection established.
Two-way SSL authentication is turned off on the server.
INFO 2015-12-24 18:55:40,745 Controller.py:183 - Unable to connect to:
https://host1:41613/ws/v1/slider/agents/container_1450746204314_0043_01_000002___<COMP-NAME>/register

Traceback (most recent call last):
  File
"/data/yarn/local/usercache/foo/appcache/application_1450746204314_0043/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


Any thoughts ?

Thanks,

Reply via email to