The initialize_connection() in the driver sometimes returns wrong LUN
and causes a live-migration failure.
The function searches the LUN from LD sets (attached hosts) and returns
the first hit.
The function must return an LUN of the destination host, but the first
hit may be an LUN of the source host.
This patch fixes initialize_connection() to return correct LUN by
searching with WWPN of the desitination host.
Change-Id: I102ae84204e0d88814a7d2e028f7cec118ad6b60
Closes-Bug: #1887908
(cherry picked from commit 94c1d241533397bb938682abeaa51ae74d069cb7)
Reviewed: https:/ /review. opendev. org/751572 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c55e259d59a f6a29ebef5deb61 ea01633162f7a0
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit c55e259d59af6a2 9ebef5deb61ea01 633162f7a0
Author: Naoki Saito <email address hidden>
Date: Fri Jul 17 17:30:17 2020 +0900
NEC driver: fix live-migration failure with FC
The initialize_ connection( ) in the driver sometimes returns wrong LUN
and causes a live-migration failure.
The function searches the LUN from LD sets (attached hosts) and returns
the first hit.
The function must return an LUN of the destination host, but the first
hit may be an LUN of the source host.
This patch fixes initialize_ connection( ) to return correct LUN by
searching with WWPN of the desitination host.
Change-Id: I102ae84204e0d8 8814a7d2e028f7c ec118ad6b60 b938682abeaa51a e74d069cb7)
Closes-Bug: #1887908
(cherry picked from commit 94c1d241533397b