kafka: Fix invalid hostaddr format for IPv6 address
When IPv6 address is used for host, the hostaddr should be formatted
in [<address>]:<port> format instead of <address>:<port> format. This
ensures the correct format is used.
Closes-Bug: 1907702
Change-Id: I6f4a453a69e942d5b2d66ffeca6960b85c8bc721
(cherry picked from commit b0e28a160310613401315f23c7faac9e01403f4b)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.messaging /+/914449 /opendev. org/openstack/ oslo.messaging/ commit/ 5cb7cbfc6a9aba7 5d2695d706ed49b 2c1d4e6346
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2024.1
commit 5cb7cbfc6a9aba7 5d2695d706ed49b 2c1d4e6346
Author: Takashi Kajinami <email address hidden>
Date: Tue Feb 20 19:01:32 2024 +0900
kafka: Fix invalid hostaddr format for IPv6 address
When IPv6 address is used for host, the hostaddr should be formatted
in [<address>]:<port> format instead of <address>:<port> format. This
ensures the correct format is used.
Closes-Bug: 1907702 d5b2d66ffeca696 0b85c8bc721 401315f23c7faac 9e01403f4b)
Change-Id: I6f4a453a69e942
(cherry picked from commit b0e28a160310613