Live Migration failure: 'ascii' codec can't encode characters in position 251-252
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
Rocky |
Fix Released
|
Medium
|
Tobias Urdin |
Bug Description
when i do live migration,it raise the error as below:
2018-05-03 18:38:00.838 1570085 ERROR nova.virt.
I have two computer node: compute1 ,compute2.
The instance created at compute2 migrate to compute1 and migrate back to compute2 is work well.
But the instance created at compute1 migrate to compute2 will make a fault as above.
The two node configure file is same as well.
affects: | trove → nova |
Changed in nova: | |
status: | Invalid → Incomplete |
status: | Incomplete → New |
tags: |
added: libvirt removed: nova openstack |
I has solved this issue. python2. 7/dist- packages/ nova/virt/ libvirt/ guest.py ,line number is 666. 'utf-8' ) as below ,which solved the issue.
It is a error encode from unicode use direct with str() function.
The source code is in /usr/lib/
I has change str(value) to value.encode(
# migrateToURI3 via params must not be unicode.
LOG. debug(" Params items : %s" %params.items())
params = {key: value.encode( 'utf-8' ) if isinstance(value, unicode)
else value
for key, value in params.items()}
if six.PY2: