Closed christianmasopust closed 1 year ago
Hello, can you show versions of installed collections and playbook please? However, supported versions are 7.10 and 7.11.
Hello, can you show versions of installed collections and playbook please? However, supported versions are 7.10 and 7.11.
It's just this part of your tasks in install.yml that is failing:
- name: Retrieve product download using JBoss Network API
redhat.runtimes_common.product_search:
client_id: "{{ rhn_username }}"
client_secret: "{{ rhn_password }}"
product_type: DISTRIBUTION
product_version: "{{ amq_broker_version }}"
product_category: "{{ amq_broker_product_category }}"
register: rhn_products
delegate_to: localhost
run_once: yes
- name: Determine install zipfile from search results
ansible.builtin.set_fact:
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_path', 'match', '.*/amq-broker-' + amq_broker_version + '-bin.zip') }}"
delegate_to: localhost
run_once: yes
- name: Download AMQ Broker
redhat.runtimes_common.product_download:
client_id: "{{ rhn_username }}"
client_secret: "{{ rhn_password }}"
product_id: "{{ (rhn_filtered_products | first).id }}"
dest: "{{ local_path.stat.path }}/{{ amq_broker.bundle }}"
no_log: "{{ omit_rhn_output | default(true) }}"
delegate_to: localhost
run_once: yes
Is it somewhere mentioned that only versions >= 7.10 are supported? And even the roles README still mentions version 7.8 and 7.9...
But anyway... if you think it's not worth to fix this, feel free to close this issue :)
Good point; in general terms of Red Hat support for the collection, it will get support when used to install AMQ broker versions which are also supported.
This problem turns out to be metadata in the download portal, we are looking for a fix there or eventually in the collection.
For a quick workaround, i suggest to set
amq_broker_offline_install: True
amq_broker_version: 7.9.4
and run the playbook with the downloaded file (amq-broker-7.9.4-bin.zip) in the controller directory.
Thanks for the offline installation hint, we already tried that :) And, as we currently are testing/evaluating the Red Hat AMQ, it's not a big issue for us, later in production, we most likely will install one of the newest releases, so...
We can continue our tests so it's up to you how to fix it, just wanted to notice you about the issue.
Thanks for your help!
SUMMARY
we are starting with Red Hat AMQ deployment and planning to use the redhat.amq_broker collection. For later tests of upgrading Artemis, we want to start deploying Red Hat AMQ version 7.09.4.
First attempt was to set amq_broker_version to "7.9.4", result was that redhat.runtimes_common.product_search did not find any product:
After changing amq_broker_version to "7.09.4", product search finds the version but still we cannot download because the "rhn_filtered_products" fact is empty:
this is because the returned file_path of the search result don't use the version 7.09.4, the files are named 7.9.4 ...
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION