Skip to content

ansible.eda.event_stream - custom uuid parameter does not function #489

@JamesOwen99

Description

@JamesOwen99

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that event-driven-ansible collection is open source software provided for free and that I might not receive a timely response.

Bug Summary

https://console.redhat.com/ansible/automation-hub/repo/published/ansible/eda/content/module/event_stream/ outlines that it is possible to specify a custom uuid when creating an event stream.
However if a valid and unique uuid is supplied, it is not configured in the resulting event stream, which instead reverts to the default behaviour of auto-generating a random uuid.

Environment

cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.2 LTS"

python3 --version
Python 3.12.3

ansible-galaxy collection list
...
Collection           Version     
-------------------- ------------
ansible.eda          2.10.0 

Steps to reproduce

  1. Install ansible.eda collection
  2. setup vars to point to your instance of aap + associated aap creds
  3. run playbook to create event stream with a static/custom uuid ie:
- name: Configure wanted EDA Event Streams
  ansible.eda.event_stream:
    controller_host: "{{ _controller_hostname }}"
    controller_username: "{{ _controller_username | default(omit) }}"
    controller_password: "{{ _controller_password | default(omit) }}"
    controller_token: "{{ _controller_oauthtoken | default(omit) }}"
    validate_certs: "{{ _controller_validate_certs }}"
    organization: "example_org"
    name: "event_stream_1"
    credential_name: "event_stream_cred"
    forward_events: "true"
    uuid: "d49d806b-34af-4d4b-9ea5-354787bb9ad7"
    state: present

4.observe resulting event stream, which should have a uuid of "d49d806b-34af-4d4b-9ea5-354787bb9ad7", but if consistent with my results will have a event stream with a different, auto-generated uuid

Actual results

Event stream with the following url was created
https://example.aap.url.com/eda-event-streams/api/eda/v1/external_event_stream/7bae884a-0432-4e4b-93f3-85641a090ab8/post/

Expected results

Event stream with the following url (including custom uuid) should be created
https://example.aap.url.com/eda-event-streams/api/eda/v1/external_event_stream/d49d806b-34af-4d4b-9ea5-354787bb9ad7/post/

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions