Agent doesn't reconnect (apparently) to the controller 
-------------------------------------------------------

                 Key: AMBARI-115
                 URL: https://issues.apache.org/jira/browse/AMBARI-115
             Project: Ambari
          Issue Type: Bug
            Reporter: Devaraj Das
            Assignee: Eric Yang


I had a case where I shut down the controller while it was processing a 
heartbeat. The agent threw an exception and didn't reconnect after the 
controller was brought up.

2011-10-27 16:42:47,915 Controller.py:77 - {"hardwareProfile": {"ramSize": 0, 
"netSpeed": 1000, "coreCount": 8, "diskCount"
: 0, "cpuSpeed": 0, "cpuFlag": ""}, "timestamp": 1319758967914, "idle": true, 
"hostname": "Devaraj-Dass-MacBook-Pro.local", "responseId": -1}
Traceback (most recent call last):
  File "Controller.py", line 115, in <module>
    main()
  File "Controller.py", line 112, in main
    controller.run()
  File "Controller.py", line 79, in run
    f = urllib2.urlopen(req)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 124, in urlopen
    return _opener.open(url, data, timeout)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 389, in open
    response = meth(req, response)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 421, in error
    result = self._call_chain(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 361, in _call_chain
    result = func(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 852, in http_error_401
    url, req, headers)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 830, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 840, in retry_http_basic_auth
    return self.parent.open(req)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 383, in open
    response = self._open(req, data)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 401, in _open
    '_open', req)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 361, in _call_chain
    result = func(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 1141, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 line 1114, in do_open
    r = h.getresponse()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
 line 950, in getresponse
    response.begin()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
 line 390, in begin
    version, status, reason = self._read_status()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
 line 354, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to