VMware driver:reconnection didn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.vmware |
Incomplete
|
Undecided
|
xhzhf |
Bug Description
version:
Juno 2014.2.1
Detailed Process:
1. nova-compute can not connect to rabbitMQ and nova-compute does not execute any regular task because of some reason.
2. the session will expire after a few hours.
3. regular task collects nodes hardware info and fail
4. nova-compute try to judge session is active
5._is_current_
6.when executing str(msg), msg is encoded by utf-8, my vCenter is chinese version. so throw UnicodeEncodeError
7.reconnection will not work. Then we have to restart nova-compute
Stack:
TRACE oslo.vmware.api Traceback (most recent call last):
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api result = f(*args, **kwargs)
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api if self._is_
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api userName=
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api excep, details)
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api super(VimFaultE
TRACE oslo.vmware.api File "/usr/lib/
TRACE oslo.vmware.api self.msg = str(message)
TRACE oslo.vmware.api UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
Suggested Solution:
when logging to vCenter, we set local to 'en'. we will not encounter encode/decode problem.
Changed in nova: | |
assignee: | nobody → xhzhf (guoyongxhzhf) |
affects: | nova → oslo.vmware |
What version of oslo.vmware are you using? I couldn't match the line numbers with any recent release.