cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1199
Views
0
Helpful
1
Replies

handle.login() is hanging forever after infra install

parterda
Level 1
Level 1

Most of the time handle.login() is hanging forever.

I am creating handle as below

handle = UcsHandle("IP/host", "username", "pwd")

handle.login()

After executing  # followed ucsmsdk_samples code.

handle.set_mo(firmware_infra_pack)

handle.commit()

After commit UCS Manager reboots. On server reboot boot UcsHandle is not able to establish the connection.

i tried with force=True option too.

Though UCSM is getting upgraded to new firmware but ucsmsdk is not able to establish connection.

Thank you in advance..

Parisa

1 Reply 1

parterda
Level 1
Level 1

Root cause for this issue. in ucssession.py self._tx_lock_acquire_conditional(elem)         if self._is_stale_cookie(elem):             elem.attrib['cookie'] = self.cookie         self.dump_xml_request(elem)         xml_str = xc.to_xml_str(elem)         response_str = self.post_xml(xml_str)         self.dump_xml_response(response_str) self._tx_lock_acquire_conditional(elem) is not released in case of exception at response_str = self.post_xml(xml_str) And when login attempt is made during server is rebooting we get an exception and this lock will not be released unless we restart the program. self._tx_lock_release_conditional(elem) needs to be added in except block.

Cisco UCS X-Series Energy Efficiency Offer