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".
Testing patch:
diff --git a/tripleoclient/heat_launcher.py b/tripleoclient/heat_launcher.py
index 6e7d2c8c..453c45d3 100644
--- a/tripleoclient/heat_launcher.py
+++ b/tripleoclient/heat_launcher.py
@@ -43,6 +43,7 @@ from tripleoclient.constants import (DEFAULT_HEAT_CONTAINER,
DEFAULT_TEMPLATES_DIR,
EPHEMERAL_HEAT_POD_NAME)
from tripleoclient.exceptions import HeatPodMessageQueueException
+from tripleoclient import utils as oooutils
log = logging.getLogger(__name__)
@@ -706,7 +707,7 @@ class HeatPodLauncher(HeatContainerLauncher):
return ('mysql+pymysql://'
'heat:heat@{}/heat?read_default_file='
'/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'.format(
- self._get_ctlplane_vip()))
+ oooutils.bracket_ipv6(self._get_ctlplane_vip())))
def _get_ctlplane_vip(self):
return self._decode(subprocess.check_output(
Result is slightly different:
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)")
2022-07-29 16:20:38.145 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 9 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)")
2022-07-29 16:20:48.148 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 8 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)")
2022-07-29 16:20:58.159 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 7 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)")
2022-07-29 16:21:08.171 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 6 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)")
2022-07-29 16:21:18.182 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 5 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)")
2022-07-29 16:21:28.187 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 4 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)")
2022-07-29 16:21:38.199 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 3 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)")
2022-07-29 16:21:48.202 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 2 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)")
2022-07-29 16:21:58.213 2 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 1 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)")
ERROR: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '2620:dead:beef:4::3' ([Errno 101] Network is unreachable)")
(Background on this error at: http://sqlalche.me/e/13/e3q8)
2022-07-29 16:22:08.616 172061 WARNING tripleoclient.utils.safe_write [-] The output file /home/stack/overcloud-deploy/overcloud/overcloud-deployment_status.yaml will be overriden: subprocess.CalledProcessError: Command '['sudo', 'podma$', 'run', '--rm', '--user', 'heat', '--volume', '/home/stack/overcloud-deploy/overcloud/heat-launcher/heat.conf:/etc/heat/heat.conf:z', '--volume', '/home/stack/overcloud-deploy/overcloud/heat-launcher:/home/stack/overcloud-deploy/overc$oud/heat-launcher:z', 'localhost/tripleo/openstack-heat-api:ephemeral', 'heat-manage', 'db_sync']' returned non-zero exit status 1.
We probably need to enable IPv6 in podman networking.
[root@undercloud ~]# podman network ls a2542ba43ef33eb 990d0999ee1b992 4b557b7be53c0b7 a1bb9",
"network_ interface" : "podman0",
"created" : "2022-07- 29T16:37: 09.084636812Z" ,
"subnets" : [
" subnet" : "10.88.0.0/16",
" gateway" : "10.88.0.1"
"ipv6_ enabled" : false,
"internal" : false,
"dns_ enabled" : false,
"ipam_ options" : {
"driver" : "host-local"
NETWORK ID NAME DRIVER
2f259bab93aa podman bridge
[root@undercloud ~]# podman network inspect 2f259bab93aa
[
{
"name": "podman",
"id": "2f259bab93aaaa
"driver": "bridge",
{
}
],
}
}
]