Now, the content of the files involved here isn't THAT weird imho - the playbook looks like:
- connection: local
gather_facts: true
hosts: localhost
name: Generate localhost facts
- connection: local
gather_facts: false
hosts: all
name: Generate container file(s)
roles:
- role: tripleo_container_image_build
vars:
tcib_args:
TRIPLEO_ANSIBLE_REQ: /usr/share/openstack-tripleo-common-containers/container-images/kolla/tripleo-ansible-ee/requirements.yaml
which makes sense.
The inventory, on the other hand.... it explains why ansible tries to get the python_interpreter so many times[2]. I'm wondering if we couldn't pass the python interpreter as a host var via the inventory - especially since we're passing, right now, the tcib_python_version to the CLI... Maybe something to consider?
In any cases: the build is stuck here. Nothing is showing up in the log. The last line therein is:
2022-11-15 13:50:32,019 p=68068 u=stack n=ansible | <designate-backend-bind9> EXEC /bin/sh -c '/usr/bin/python3.9 && sleep 0'
and it's been like that for the time it took to make this comment here - over 7 minutes (with data gathering and so on).
The ansible.log is in the same state, so it's not doing things in the background I'd say... And the process listing doesn't show anything like that.
I see the following possibilities:
- either ensure we're not running too many things in parallel with the second "playbook" (using "serial: X" option)
- see what happens if we pass the ansible_python_interpreter to the inventory
- ... any other ideas?
While testing locally:
running the command to build things[1] launches apparently 99 processes such as:
/usr/bin/python3.9 /usr/bin/ ansible- playbook -i /tmp/tripleos0h 7wdgf/hosts. yaml -vvv /tmp/tripleos0h 7wdgf/tripleo- multi-playbook. yaml
Now, the content of the files involved here isn't THAT weird imho - the playbook looks like: container_ image_build ANSIBLE_ REQ: /usr/share/ openstack- tripleo- common- containers/ container- images/ kolla/tripleo- ansible- ee/requirements .yaml
- connection: local
gather_facts: true
hosts: localhost
name: Generate localhost facts
- connection: local
gather_facts: false
hosts: all
name: Generate container file(s)
roles:
- role: tripleo_
vars:
tcib_args:
TRIPLEO_
which makes sense.
The inventory, on the other hand.... it explains why ansible tries to get the python_interpreter so many times[2]. I'm wondering if we couldn't pass the python interpreter as a host var via the inventory - especially since we're passing, right now, the tcib_python_version to the CLI... Maybe something to consider?
In any cases: the build is stuck here. Nothing is showing up in the log. The last line therein is: backend- bind9> EXEC /bin/sh -c '/usr/bin/python3.9 && sleep 0'
2022-11-15 13:50:32,019 p=68068 u=stack n=ansible | <designate-
and it's been like that for the time it took to make this comment here - over 7 minutes (with data gathering and so on).
The ansible.log is in the same state, so it's not doing things in the background I'd say... And the process listing doesn't show anything like that.
I see the following possibilities: python_ interpreter to the inventory
- either ensure we're not running too many things in parallel with the second "playbook" (using "serial: X" option)
- see what happens if we pass the ansible_
- ... any other ideas?
[1] openstack tripleo container image build \ access. redhat. com/ubi9: latest \
--extra- config /home/stack/ extra_config. yaml \ ntos9 \ 6ae76ee320b90dc 0a \ repos.d: /etc/distro. repos.d: z \ rpm-gpg: /etc/pki/ rpm-gpg: z \ vars:/etc/ dnf/vars: z \ container- builds \
--tcib- extras tcib_release=9 \
--tcib- extras tcib_python_ version= 3.9 >/home/ stack/container _image_ build.log 2>&1
--base registry.
--debug --distro centos \
--exclude neutron-mlnx-agent \
--namespace tripleomasterce
--prefix openstack \
--push --registry 127.0.0.1:5000 \
--tag adaac75f69ae93d
--volume /etc/yum.
--volume /etc/pki/
--volume /etc/dnf/
--work-dir /home/stack/
all: connection: local common | join(' ') }} && dnf clean all cgi-bin/ aodh && chmod 755 /var/www/ cgi-bin/ aodh && cgi-bin/ aodh/ && sed -i -r 's,^(Listen conf/httpd. conf && sed -i -r 's,^(Listen 443),#\1,'
/etc/ httpd/conf. d/ssl.conf openstack- tripleo- common/ healthcheck/ aodh-api /openstack/ healthcheck healthcheck 1:5000/ tripleomasterce ntos9/openstack -aodh-base: adaac75f69ae93d 6ae76ee320b90dc 0a packages: container- builds/ b53ac1db- 40c7-40b1- bf9d-7fb3d1b10a fc/base/ os/aodh- base/aodh- api python_ version: '3.9' container- builds/ b53ac1db- 40c7-40b1- bf9d-7fb3d1b10a fc/base/ os/aodh- base/aodh- api connection: local bin/uid_ gid_manage aodh common | join(' ') }} && dnf clean all 1:5000/ tripleomasterce ntos9/openstack -os:adaac75f69a e93d6ae76ee320b 90dc0a packages: aodh-common container- builds/ b53ac1db- 40c7-40b1- bf9d-7fb3d1b10a fc/base/ os/aodh- base python_ version: '3.9' container- builds/ b53ac1db- 40c7-40b1- bf9d-7fb3d1b10a fc/base/ os/aodh- base
hosts:
aodh-api:
ansible_
tcib_actions:
- run: dnf -y install {{ tcib_packages.
&& rm -rf /var/cache/dnf
- run: mkdir -p /var/www/
cp -a /usr/bin/aodh-api /var/www/
80),#\1,' /etc/httpd/
- run: ln -s /usr/share/
&& chmod a+rx /openstack/
tcib_distro: centos
tcib_from: 127.0.0.
tcib_meta:
name: aodh-api
tcib_
common:
- httpd
- mod_ssl
- openstack-aodh-api
- python3-ldappool
- python3-mod_wsgi
tcib_path: /home/stack/
tcib_
tcib_release: '9'
workdir: /home/stack/
aodh-base:
ansible_
tcib_actions:
- run: bash /usr/local/
- run: dnf -y install {{ tcib_packages.
&& rm -rf /var/cache/dnf
tcib_distro: centos
tcib_from: 127.0.0.
tcib_meta:
name: aodh-base
tcib_
common:
- openstack-
tcib_path: /home/stack/
tcib_
tcib_release: '9'
workdir: /home/stack/
[.....]