No route to host installing os_keystone offline

asked 2020-03-27 13:05:35 -0500

fmallard gravatar image

Hi everyone,

I'm try to install a stack offline with Openstack-Ansible (Stein version) on CentOS 7.6.1810 hosts.

I'm new to Openstack, so I pretty much copied the https://docs.openstack.org/openstack-ansible/stein/user/test/example.html (test example) for my deployment.

I've successfuly mirrored Python and Yum dependencies, installed the deployment host and 3 target hosts. I wanted to modify as few playbooks as possible, so I have a machine reverse-proxying accesses to internet resources to our local mirrors, using dnsmasq and nginx.

Then I executed setup-hosts.yml and setup-infrastructure.yml playbooks without errors (after a period of trial and error).

However, when executing the setup-openstack.yml playbook, I'm encountering an error on the os_keystone.yml playbook.

First error, yum packages systemd-devel and openldap-devel are missing and cause a failure during the python_venv_build phase.

Here is the log extract, the line is huge I tried to extract relevant information. The error is encounterd when trying to connect on port 8181 :

fatal: [infra1_keystone_container-6ee0460a]: FAILED! => [...] (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.httpconnection object="" at="" 0x7f2d2c4cd7d0="">: Failed to establish a new connection: [Errno 113] No route to host',)': /os-releases/19.0.6/centos-7.6-x86_64\n WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.httpconnection object="" at="" 0x7f2d2c4cd290="">: Failed to establish a new connection: [Errno 113] No route to host',)': /os-releases/19.0.6/centos-7.6-x86_64\n Running command python setup.py egg_info\n Cannot find libsystemd or libsystemd-journal:\n\n Package libsystemd was not found in the pkg-config search path.\n Perhaps you should add the directory containing libsystemd.pc'\n to the PKG_CONFIG_PATH environment variable\n No package 'libsystemd' found\n\n Package libsystemd-journal was not found in the pkg-config search path.\n Perhaps you should add the directory containinglibsystemd-journal.pc'\n to the PKG_CONFIG_PATH environment variable\n No package 'libsystemd-journal' found\n\nERROR: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-install-Q1CazD/systemd-python/\nWARNING: You are using pip version 19.1, however version 20.0.2 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}

I managed to bypass this issue by installing manually systemd-devel and openldap-devel into the container, only to fail shortly after during the Database creation with another "No route to host" error when connecting to the galera cluster.

With a colleague, we investigated and found that the firewall was blocking some requests between containers. After opening port 3306 on machine infra1 we were able to create the database, and figured out our network is broken.

Is there a config option I missed for an offline installation ? I did not see any error during the first two playbooks execution, I assume each role creates the suited firewall rules so I don't understand why we have such errors and fear further errors in ... (more)

edit retag flag offensive close merge delete