If live_migration_inbound_addr is set in nova.conf, value of the option
will be saved under target_connect_addr in migrate_data. Unfortunately,
the type of value saved in target_connect_addr is unicode, therefore
when creating URI for live migration over dedicated interface we are
ending up with unicode type which is not acceptable by libvirt. To fix
the issue let's convert URI explictly back to string.
Change-Id: I651cc7a45fe06a2b6d81e007c4faf62947ee3203
Closes-Bug: #1638625
(cherry picked from commit 90f5a727e98a59c648c0dc4222050857d59edab2)
Reviewed: https:/ /review. openstack. org/404810 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a098e72c197 7ceaff087a0d071 e930940878feee
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit a098e72c1977cea ff087a0d071e930 940878feee
Author: Pawel Koniszewski <email address hidden>
Date: Tue Nov 29 17:13:37 2016 +0100
Convert live migration uri back to string
If live_migration_ inbound_ addr is set in nova.conf, value of the option
will be saved under target_connect_addr in migrate_data. Unfortunately,
the type of value saved in target_connect_addr is unicode, therefore
when creating URI for live migration over dedicated interface we are
ending up with unicode type which is not acceptable by libvirt. To fix
the issue let's convert URI explictly back to string.
Change-Id: I651cc7a45fe06a 2b6d81e007c4faf 62947ee3203 648c0dc42220508 57d59edab2)
Closes-Bug: #1638625
(cherry picked from commit 90f5a727e98a59c