cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
441
Views
0
Helpful
0
Replies
Highlighted
Cisco Employee

CIMC SDK: CIMC login times out thru CIMC SDK while GUI/CLI login works

Product Name: UCS C220 M5SX
Firmware version: 4.0(4e)
imcsdk version: 0.9.7

Issue:
we notice occasionally CIMC login through CIMC SDK could fail/timedout, while manual login through CIMC GUI or ssh successful, and workaround is to reset/reboot CIMC (not power cycle server).

 

This behavior impacts our automation capability around CIMC managaement.

 

{"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "module_stderr": "ERROR:root:CIMC login timeout\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/ops_tools/cimc_utils.py\", line 22, in cimc_login\n ucs.login()\n File \"/usr/lib/python2.7/site-packages/imcsdk/imchandle.py\", line 143, in login\n return self._login(auto_refresh=auto_refresh, force=force, timeout=timeout)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcsession.py\", line 581, in _login\n response = self.post_elem(elem, timeout=timeout)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcsession.py\", line 283, in post_elem\n response_str = self.post_xml(xml_str, timeout=timeout)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcsession.py\", line 234, in post_xml\n response_str = self.post(uri=imc_uri, data=xml_str, read=read, timeout=timeout)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcsession.py\", line 210, in post\n response = self.__driver.post(uri=uri, data=data, read=read, timeout=timeout)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcdriver.py\", line 260, in post\n response = opener.open(request, timeout=timeout)\n File \"/usr/lib64/python2.7/urllib2.py\", line 431, in open\n response = self._open(req, data)\n File \"/usr/lib64/python2.7/urllib2.py\", line 449, in _open\n '_open', req)\n File \"/usr/lib64/python2.7/urllib2.py\", line 409, in _call_chain\n result = func(*args)\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcdriver.py\", line 91, in https_open\n return self.do_open(TLSConnection, req)\n File \"/usr/lib64/python2.7/urllib2.py\", line 1211, in do_open\n h.request(req.get_method(), req.get_selector(), req.data, headers)\n File \"/usr/lib64/python2.7/httplib.py\", line 1056, in request\n self._send_request(method, url, body, headers)\n File \"/usr/lib64/python2.7/httplib.py\", line 1090, in _send_request\n self.endheaders(body)\n File \"/usr/lib64/python2.7/httplib.py\", line 1052, in endheaders\n self._send_output(message_body)\n File \"/usr/lib64/python2.7/httplib.py\", line 890, in _send_output\n self.send(msg)\n File \"/usr/lib64/python2.7/httplib.py\", line 852, in send\n self.connect()\n File \"/usr/lib/python2.7/site-packages/imcsdk/imcdriver.py\", line 106, in connect\n self.timeout, self.source_address)\n File \"/usr/lib64/python2.7/socket.py\", line 562, in create_connection\n sock.connect(sa)\n File \"/usr/lib64/python2.7/socket.py\", line 224, in meth\n return getattr(self._sock,name)(*args)\n File \"/usr/lib/python2.7/site-packages/ops_tools/cimc_utils.py\", line 13, in cimc_login_timeout_handler\n raise Exception(\"CIMC login timeout\")\nException: CIMC login timeout\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}


Thanks
Ramesh S

0 REPLIES 0
Content for Community-Ad

This widget could not be displayed.