Bug 2112444

Summary: [IPv6]invalid literal for int() with base 10: 'dead:beef:4::3'
Product: Red Hat OpenStack Reporter: Jason Paroly <jparoly>
Component: python-tripleoclientAssignee: Harald Jensås <hjensas>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: astillma, grosenbe, hbrock, hjensas, jamsmith, jhakimra, joflynn, jschluet, jslagle, mariel, mburns, psedlak, pweeks, ramishra, rheslop, spower
Target Milestone: gaKeywords: Triaged
Target Release: 17.0Flags: joflynn: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-0.20220720020862.fa5422f.el9ost python-tripleoclient-16.4.1-0.20220705111521.23dbe54.el9ost Doc Type: Bug Fix
Doc Text:
IPv6 is supported on the provisioning network in the Red Hat OpenStack Platform (RHOSP) 17.0 GA release.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:24:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jason Paroly 2022-07-29 18:07:54 UTC
Description of problem:
IPv6 Overcloud deployment fails due to IPv6 bracket wrapping problem in tripleoclient head launcher: Ephemeral heat/rabbitmq fail to start on IPv6 undercloud

Version-Release number of selected component (if applicable):


How reproducible:
every time

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

upstream bug: https://bugs.launchpad.net/tripleo/+bug/1983121

2022-07-29 15:30:04.031 113897 INFO tripleoclient.heat_launcher [-] Checking that message bus (rabbitmq) is upESC[00m
ERROR: invalid literal for int() with base 10: 'dead:beef:4::3'

Looks like a IPv6 bracket wrapping issue, since the actual address is "2620:dead:beef:4::3".

Comment 1 Jason Paroly 2022-07-29 18:08:38 UTC
Proposed patch: https://review.opendev.org/c/openstack/python-tripleoclient/+/851597

Comment 2 Harald Jensås 2022-07-29 19:28:16 UTC
There is another issue hiding behind the IPv6 address bracket issue.
Podman networking is not configured for IPv6 networking, so the ephemeral container is unable to connect to the database which is listening on an IPv6 interface.

022-07-29 16:20:23.207 172061 INFO tripleoclient.v1.overcloud_deploy.DeployOvercloud [-] Using ephemeral heat for stack operation
2022-07-29 16:20:24.165 172061 INFO tripleoclient.heat_launcher [-] Skipping container image pull.
2022-07-29 16:20:24.173 172061 INFO tripleoclient.heat_launcher [-] Checking that database is up
2022-07-29 16:20:24.577 172061 INFO tripleoclient.heat_launcher [-] Checking that message bus (rabbitmq) is up
2022-07-29 16:20:28.131 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 10 attempts left.: oslo_db.exception.DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '2620:dead:beef:4::3'
 ([Errno 101] Network is unreachable)")


Proposed a second patch to ensure we configure container netavark for IPv6 - https://review.opendev.org/c/openstack/tripleo-ansible/+/851608

Comment 23 errata-xmlrpc 2022-09-21 12:24:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543

Comment 25 Red Hat Bugzilla 2023-12-22 04:25:07 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days