404 Client Error: Not Found for url: tripleo-container-image-prepare.log

Bug #1847141 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

This is related to https://bugs.launchpad.net/bugs/1836057, but it is a new issue.

netifaces.ifaddresses('br-ctlplane') does not always return the 'local_ip' of the undercloud as the first one in the list of netifaces.AF_INET6 addresses. This causes the undercloud to try to use the 'undercloud_public_host', the 'undercloud_admin_host' or in potentially the link-local address.

>>> addrs = netifaces.ifaddresses('br-ctlplane')
>>> [addr for addr in addrs[netifaces.AF_INET6]]
[
  {'netmask': 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
   'addr': 'fd12:3456:789a:1::2'},
  {'netmask': 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
   'addr': 'fd12:3456:789a:1::3'},
  {'netmask': 'ffff:ffff:ffff:ffff::',
   'addr': 'fd12:3456:789a:1::1'}, <-- local_ip is idx=2 not idx=0
  {'netmask': 'ffff:ffff:ffff:ffff::',
   'addr': 'fe80::f816:3eff:fe6b:5586%br-ctlplane'}
]

The apache ip vhost only listen to the 'local_ip', so the container-image-prepare fails.

description: updated
description: updated
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/687305

Changed in tripleo:
status: Triaged → In Progress
summary: - 404 Client Error: Not Found for url: ripleo-container-image-prepare.log
+ 404 Client Error: Not Found for url: tripleo-container-image-prepare.log
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/687305
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=162e3a00069d9e1aba1487eda8427ab3f45aac77
Submitter: Zuul
Branch: master

commit 162e3a00069d9e1aba1487eda8427ab3f45aac77
Author: Harald Jensås <email address hidden>
Date: Mon Oct 7 21:07:02 2019 +0200

    Get undercloud name in get_undercloud_registry()

    With IPv6 the netifaces.ifaddresses does not always
    return the local_ip of the undercloud as the first
    address. Simply picking the first address in the list
    of netifaces.AF_INET6 addresses does not always work.

    Also, for Docker/Podman using an IPv6 address in a
    docker reference is invalid. A name must be used:
      https://github.com/containers/libpod/issues/3516

    This change uses socket.gethostname() to find the
    hostname and then does a lookup in /etc/hosts using
    'getent hosts <shortname>.ctlplane'. If the entry exist
    the fqdn in the hosts entry is used.

    Related-Bug: #1836578
    Closes-Bug: #1847141
    Change-Id: I23b8ca6a3f481781d9d91e1a5d83ab1311a272e2

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.3.0

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

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

Related fix proposed to branch: master
Review: https://review.opendev.org/690780

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-common (master)

Change abandoned by Harald Jensås (<email address hidden>) on branch: master
Review: https://review.opendev.org/690780
Reason: We need to be able to autodetect prior to podman-baremetal-ansible.yaml, so validation on insecure registries is a flawed idea. see: https://bugs.launchpad.net/tripleo/+bug/1849590

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-tripleoclient (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/690805

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-tripleoclient (master)

Change abandoned by Alex Schultz (<email address hidden>) on branch: master
Review: https://review.opendev.org/690805
Reason: This review is > 90 days without comment, and failed Zuul the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results. For more details check policy https://specs.openstack.org/openstack/tripleo-specs/specs/policy/patch-abandonment.html

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.