tripleo container's healthcehck fails in undercloud with no_proxy and IPv6 env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Nozomi Kawamoto |
Bug Description
Description
==================
In the case that the undercloud is installed with IPv6 and the no_proxy environment variable is set, healthcheck of some tripleo containers fails.
The helathcheck raise an exception `ValueError: too many values to unpack (expected 2)`.
https:/
It's because the socket.
https:/
~~~
For AF_INET6 address family, a four-tuple (host, port, flowinfo, scope_id) is used, where flowinfo and scope_id represent the sin6_flowinfo and sin6_scope_id members in struct sockaddr_in6 in C. For socket module methods, flowinfo and scope_id can be omitted just for backward compatibility. Note, however, omission of scope_id can cause problems in manipulating scoped IPv6 addresses.
~~~
https:/
~~~
socket.
Return the remote address to which the socket is connected. This is useful to find out the port number of a remote IPv4/v6 socket, for instance. (The format of the address returned depends on the address family — see above.) On some systems this function is not supported.
~~~
Therefore I guess below line have to be supported for IPv6.
https:/
Steps to reproduce
==================
1. Define no_proxy environment variable in /etc/environment on director node.
2. Install undercloud with IPv6.
3. Execute healthcheck script in an one of `unhealthy` containers.
$ sudo podman exec --user root keystone /openstack/
Expected result
==================
Completing the healthcheck without any errors.
Actual result
==================
The healthcheck fails and the some container's health status become `unhealthy`.
Environment
==================
- RHOSP 17.0.1(Wallaby)
- RHEL 9.0(Plow)
- openstack-
- python3-
- openstack-
Logs & Configs
==================
N/A
Changed in tripleo: | |
assignee: | nobody → Nozomi Kawamoto (nkawamot) |
tags: | added: tripleo-common |
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- common/ +/872316
Review: https:/