Skip to content

problem pulling in a particular EDA rulebook activation with filetree_create #88

Open
@sdunne

Description

@sdunne

Summary

I have 2 EDA rulebook activations in 2.5-10 and only one of them was pulled in successfully.

Issue Type

  • Bug Report

Ansible, Collection, Controller details

AAP 2.5-10 containerized install - single node.

ansible --version
ansible [core 2.16.14]
  config file = /home/sdunne/export25/ansible.cfg
  configured module search path = ['/home/sdunne/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/sdunne/export25/collections:/home/sdunne/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.9 (main, Dec  9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.11)
  jinja version = 3.1.5
  libyaml = True

ansible-galaxy collection list
# /home/sdunne/export25/collections/ansible_collections
Collection                       Version     
-------------------------------- ------------
ansible.controller               4.6.9       
ansible.eda                      2.6.0       
ansible.hub                      1.0.0       
ansible.platform                 2.5.20250312
infra.aap_configuration          3.1.0       
infra.aap_configuration_extended 1.0.0-devel

Controller version
Automation Controller Version
4.6.8
Event Driven Automation Version
1.1.4
Automation Hub Version
4.10.1
  • ansible installation method: one of source, pip, OS package, EE
    containerized install of 2.5-10 on single node

filetree-create-eda-error.txt

OS / ENVIRONMENT

RHEL 9.5

Desired Behavior

Actual Behavior

the error message for the task is included as a file below.

Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:

  • playbook / task
  • configuration file / list
  • error

STEPS TO REPRODUCE

See attached.

Here is the playbook I'm running:

[sdunne@rhel9export export25]$ cat export2.yml

  • hosts: localhost

    connection: local

    gather_facts: false

    vars_files:

    • secrets.yml

    vars:
    aap_hostname: "{{ controller_hostname }}"
    aap_password: "{{ controller_password }}"
    aap_username: admin
    aap_validate_certs: false
    #controller_validate_certs: false
    #filetree_create_output_dir: /tmp/filetree_output2
    #aap_oauthtoken: "{{ aap_oauthtoken }}"

    pre_tasks:

    • name: "Setup authentication (block)"
      block:
      • name: "Get the Authentication Token for the future requests"
        ansible.builtin.uri:
        url: "https://{{ aap_hostname }}/api/gateway/v1/tokens/"
        user: "{{ aap_username }}"
        password: "{{ aap_password }}"
        method: POST
        force_basic_auth: true
        validate_certs: "{{ aap_validate_certs }}"
        status_code: 201
        register: authtoken_res

      • name: "Set the oauth token to be used since now"
        ansible.builtin.set_fact:
        aap_oauthtoken: "{{ authtoken_res.json.token }}"
        aap_oauthtoken_url: "{{ authtoken_res.json.url }}"
        no_log: "{{ controller_configuration_filetree_create_secure_logging | default('false') }}"
        when: aap_oauthtoken is not defined
        tags:

      • always

    roles:

    • infra.aap_configuration_extended.filetree_create

    post_tasks:

    • name: "Delete the Authentication Token used"
      ansible.builtin.uri:
      url: "https://{{ aap_hostname }}{{ aap_oauthtoken_url }}"
      user: "{{ aap_username }}"
      password: "{{ aap_password }}"
      method: DELETE
      force_basic_auth: true
      validate_certs: "{{ aap_validate_certs }}"
      status_code: 204
      when: aap_oauthtoken_url is defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions