tripleo-commong - get_undercloud_registry() does not support IPv6

Bug #1836057 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Harald Jensås

Bug Description

https://opendev.org/openstack/tripleo-common/src/branch/master/tripleo_common/image/image_uploader.py#L96

The code only look for AF_INET address, and not for a AF_INET6 address.
On an undercloud with IPv6 address on the br-ctlplane interface the code defaults to localhost wich causes "Image prepare failed: 404 Client Error: Not Found for url: http://localhost:8787/v2/" in /var/log/tripleo-container-image-prepare.log.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.opendev.org/670053

Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/670053
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=460b99aefb16e9a79a06b37c8a50deb1f17cd54d
Submitter: Zuul
Branch: master

commit 460b99aefb16e9a79a06b37c8a50deb1f17cd54d
Author: Harald Jensås <email address hidden>
Date: Wed Jul 10 14:39:53 2019 +0200

    Image Uploader - get_undercloud_registry IPv6

    Adds support for IPv6 undercloud in the image uploader.
    The get_undercloud_registry will look for an IPv4 address
    first, then look for an IPv6 address.

    If the address is an IPv6 address brackets are added.

    Closes-Bug: #1836057
    Change-Id: Ibc90e46ffba2b6385a4d49171761023e15e4d471

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 11.1.0

This issue was fixed in the openstack/tripleo-common 11.1.0 release.

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.