Error "getaddrinfo() thread failed to start" when creating openstack 17.1 horizon container image

Solution Verified - Updated -

Environment

  • Red Hat OpenStack Platform 17.1
  • Podman 1.6.4

Issue

Error getaddrinfo() thread failed to start when creating openstack 17.1 horizon container customized image with podman.

Resolution

Update podman to a compatible version as 2.2.1 or 3.0.1 or use a openstack node to build the image.

Also, follow the docs.

Root Cause

A system outside openstack was used to create the customized image and the podman in this system was outdated.

Diagnostic Steps

  1. Try to create a image.
Curl error (6): Couldn't resolve host name for <repo url>/yum/repodata/repomd.xml [getaddrinfo() thread failed to start]
Error: Failed to download metadata for repo <repo url>: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
  1. Try to curl the repomd.xml file
[host]$ curl -v http://<build-server-hostname>/<build-path>/yum/repodata/repomd.xml
  1. Check podman version
[host]$ podman version

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments