Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The role infra.aap_utilities.aap_setup_install won't pick up a successful execution of setup.sh #265

Open
itzome opened this issue Jan 13, 2025 · 2 comments
Labels
bug Something isn't working new

Comments

@itzome
Copy link

itzome commented Jan 13, 2025

Summary

The role infra.aap_utilities.aap_setup_install won't pick up a successful execution of setup.sh and keeps polling for the full async duration (>2h).

Issue Type

  • Bug Report

Ansible, Collection, Docker/Podman details

ansible --version
ansible [core 2.17.4]
  config file = None
  configured module search path = ['/app/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /app/.local/lib/python3.11/site-packages/ansible
  ansible collection location = /app/.ansible/collections:/usr/share/ansible/collections
  executable location = /app/.local/bin/ansible
  python version = 3.11.8 (main, Feb 19 2024, 22:58:08) [GCC 12.2.1 20220924] (/usr/bin/python3)
  jinja version = 3.1.4
  libyaml = True

ansible-galaxy collection list
Collection                               Version
---------------------------------------- -------
ansible.posix                            1.6.2  
community.general                        10.2.0 
infra.aap_utilities                      2.5.2
community.docker                         3.10.3 
community.general                        9.0.1  
containers.podman                        1.13.0 
kubernetes.core                          3.1.0
  • ansible installation method: pip

OS / ENVIRONMENT

Playbooks are running in gitlab CI. But the error is reproducable outside as well.

Desired Behavior

Role should continue after the setup.sh successfully finishes.

Actual Behavior

Role configures AAP correctly but never finishes the configuration playbook run

TASK [infra.aap_utilities.aap_setup_install : Run the Ansible Automation Platform setup program] ***
ASYNC POLL on ansible-xxx: jid=j535819395173.439 started=1 finished=0
ASYNC POLL on ansible-xxx: jid=j535819395173.439 started=1 finished=0
ASYNC POLL on ansible-xxx: jid=j535819395173.439 started=1 finished=0
ASYNC POLL on ansible-xxx: jid=j535819395173.439 started=1 finished=0
runner-xxx:~$ ls -al .ansible_async/j535819395173.439 
-rw-r--r--    1 ansible  ansible    2058474 Jan 13 13:33 .ansible_async/j535819395173.439
runner-xxx:~$ 

At the end of this file it confirms the run was successful:

The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2025-01-13-13:26:15.log.

STEPS TO REPRODUCE

Import the aap_setup_install Role into a playbook

    - name: Install AAP and configure certificates
      block:
        - name: Import infra.aap_utilities.aap_setup_install  # noqa: run-once[task]
          delegate_to: localhost
          run_once: true
          ansible.builtin.import_role:
            name: infra.aap_utilities.aap_setup_install
@itzome itzome added bug Something isn't working new labels Jan 13, 2025
@djdanielsson
Copy link
Contributor

what version of AAP are you trying to install?

@itzome
Copy link
Author

itzome commented Jan 18, 2025

version 2.4-7 is currently deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
None yet
Development

No branches or pull requests

2 participants