With Paramiko 1.13.0, the method exec_command now returns Unicode.
This causes a problem when the driver tries to build the XML returned
from the LeftHand array. The XML header returned from the array defines
the encoding as encoding=UTF-8. Therefore, we must now ensure the
encoding passed to the parser is utf-8.
closes-bug: #1298608
(cherry picked from commit 57e8cdb9dd8e24919bc2243438a6bded53491b3e)
Reviewed: https:/ /review. openstack. org/88091 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=6b05dbf4346 7b1b39fee865a94 623cdcac15f09d
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit 6b05dbf43467b1b 39fee865a94623c dcac15f09d
Author: Jim Branen <email address hidden>
Date: Fri Apr 4 13:36:42 2014 -0700
Fixes HP LeftHand driver with Paramiko 1.13.0
With Paramiko 1.13.0, the method exec_command now returns Unicode.
This causes a problem when the driver tries to build the XML returned
from the LeftHand array. The XML header returned from the array defines
the encoding as encoding=UTF-8. Therefore, we must now ensure the
encoding passed to the parser is utf-8.
closes-bug: #1298608 19bc2243438a6bd ed53491b3e)
(cherry picked from commit 57e8cdb9dd8e249
Conflicts:
cinder/ tests/test_ hplefthand. py volume/ drivers/ san/hp_ lefthand. py
cinder/
Change-Id: I7b504626e2d9a0 ee2b62820b11f56 eb136e31987