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)
Reviewed: https:/ /review. opendev. org/c/openstack /python- tripleoclient/ +/825934 /opendev. org/openstack/ python- tripleoclient/ commit/ e1e54d2bef76959 f07b6f2662c6198 9183d77cf4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit e1e54d2bef76959 f07b6f2662c6198 9183d77cf4
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 18ae085cc2eb362 34cb306b375 83ad83ece6ecdb1 f0eb080ed0)
Change-Id: I42531b4e6f7b3b
(cherry picked from commit 02b67f8e63833a7