Comment 8 for bug 1953552

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/825934
Committed: https://opendev.org/openstack/python-tripleoclient/commit/e1e54d2bef76959f07b6f2662c61989183d77cf4
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit e1e54d2bef76959f07b6f2662c61989183d77cf4
Author: Harald Jensås <email address hidden>
Date: Tue Dec 7 23:37:30 2021 +0100

    Use netaddr when comparing local_ip for changes

    In undercloud preflight validations the IP address in
    config is compared to the IP address on the deployed
    undercloud. For IPv6 the string discovered on the
    system may be in a different format, representing the
    same actual IP address and netmask but written using a
    different valid syntax.

    Load the existing IP and config IP as a netaddr.IPNetwork,
    and compare both the networks and IPs to ensure we compare
    the actuall address and network, not the strings.

    Closes-Bug: #1953552
    Change-Id: I42531b4e6f7b3b18ae085cc2eb36234cb306b375
    (cherry picked from commit 02b67f8e63833a783ad83ece6ecdb1f0eb080ed0)