The LVM driver is reporting incorrect target_portal and target_portals
entries for IPv6 with all the targets, as it is not enclosing the
address in square brackets making it impossible for iscsiadm in OS-Brick
to tell the port appart from the IP address.
This patch makes sure that IPv6 addresses in target_portal and
target_portals are properly formatted in the [IPv6_address]:port when
the IPv6_address does not already include the square brackets.
This fix affects all the targets: IET, LIO, TGT, CXT, and SCST.
Closes-Bug: #1696866
Change-Id: Ie7053c813af8c99b5545222d4724b71061348a09
(cherry picked from commit fddb9b7962ab2d4f3b6f57faef1c090b097b60c6)
Reviewed: https:/ /review. opendev. org/678601 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=88a87b2d489 2fd8bdd3b80d138 5775c5b044c368
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 88a87b2d4892fd8 bdd3b80d1385775 c5b044c368
Author: Gorka Eguileor <email address hidden>
Date: Tue Aug 20 19:36:09 2019 +0200
Fix LVM IPv6 target portals
The LVM driver is reporting incorrect target_portal and target_portals
entries for IPv6 with all the targets, as it is not enclosing the
address in square brackets making it impossible for iscsiadm in OS-Brick
to tell the port appart from the IP address.
This patch makes sure that IPv6 addresses in target_portal and
target_portals are properly formatted in the [IPv6_address]:port when
the IPv6_address does not already include the square brackets.
This fix affects all the targets: IET, LIO, TGT, CXT, and SCST.
Closes-Bug: #1696866 9b5545222d4724b 71061348a09 f3b6f57faef1c09 0b097b60c6)
Change-Id: Ie7053c813af8c9
(cherry picked from commit fddb9b7962ab2d4