oslo messaging fails to send message with kafka driver and ipv6

Bug #1907702 reported by cooldharma06
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Medium
Takashi Kajinami

Bug Description

Oslo messaging fails to send message notification to kafka broker in ipv6 environment.

branch: stable.victoria
Messaging server: kafka and kafka-2.6.0
Platform: Ubuntu-18.04

Configuration:

[oslo_messaging_notifications]
transport_url = kafka://kafkauser:testpass@[fd00::10:0:0:27]:9092,kafkauser:testpass@[fd00::10:0:0:30]:9092,kafkauser:testpass@[fd00::10:0:0:29]:9092/
driver = messagingv2
topics = test_kafka_topic

In logs we are not getting any error messages related to this.

Changed in oslo.messaging:
assignee: nobody → cooldharma06 (cooldharma06)
description: updated
Changed in oslo.messaging:
status: New → In Progress
Changed in oslo.messaging:
assignee: cooldharma06 (cooldharma06) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.messaging (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/oslo.messaging/+/766666
Reason: I'll abandon this because of inactivity. Will submit a more complete fix later.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)
Changed in oslo.messaging:
assignee: nobody → Takashi Kajinami (kajinamit)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.opendev.org/c/openstack/oslo.messaging/+/909517
Committed: https://opendev.org/openstack/oslo.messaging/commit/b0e28a160310613401315f23c7faac9e01403f4b
Submitter: "Zuul (22348)"
Branch: master

commit b0e28a160310613401315f23c7faac9e01403f4b
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
    Change-Id: I6f4a453a69e942d5b2d66ffeca6960b85c8bc721

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/oslo.messaging/+/914448

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/oslo.messaging/+/914449

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/oslo.messaging/+/914450

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/oslo.messaging/+/914449
Committed: https://opendev.org/openstack/oslo.messaging/commit/5cb7cbfc6a9aba75d2695d706ed49b2c1d4e6346
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 5cb7cbfc6a9aba75d2695d706ed49b2c1d4e6346
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
    Change-Id: I6f4a453a69e942d5b2d66ffeca6960b85c8bc721
    (cherry picked from commit b0e28a160310613401315f23c7faac9e01403f4b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/oslo.messaging/+/914450
Committed: https://opendev.org/openstack/oslo.messaging/commit/da1706e62c8bf488fb1fcdaaa4d2ba09138c67c7
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit da1706e62c8bf488fb1fcdaaa4d2ba09138c67c7
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
    Change-Id: I6f4a453a69e942d5b2d66ffeca6960b85c8bc721
    (cherry picked from commit b0e28a160310613401315f23c7faac9e01403f4b)
    (cherry picked from commit 5cb7cbfc6a9aba75d2695d706ed49b2c1d4e6346)
    (cherry picked from commit 8be07d3a6e3ec4d3e1a78203951fe39ebd1036d6)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/oslo.messaging/+/914448
Committed: https://opendev.org/openstack/oslo.messaging/commit/8be07d3a6e3ec4d3e1a78203951fe39ebd1036d6
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 8be07d3a6e3ec4d3e1a78203951fe39ebd1036d6
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
    Change-Id: I6f4a453a69e942d5b2d66ffeca6960b85c8bc721
    (cherry picked from commit b0e28a160310613401315f23c7faac9e01403f4b)
    (cherry picked from commit 5cb7cbfc6a9aba75d2695d706ed49b2c1d4e6346)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.