ansible-middleware / amq_streams

Apache License 2.0
9 stars 7 forks source link

Unable to install using the AMQ Streams binaries #36

Closed rmarting closed 1 year ago

rmarting commented 1 year ago
SUMMARY

The parameters to declare the Kafka binaries are aligned with the current Kafka package artifact, however they are not valid to use with the AMQ Streams package artifact.

I tried to deploy the AMQ Streams using the binaries availables in the Red Hat Customer Portal (amq-streams--bin.zip), however the installation fails just because the output folder is not the same expected by the playbooks.

Using the following vars in a playbook:

    # Installation offline
    #amq_streams_common_skip_download: true
    amq_streams_common_offline_install: true
    amq_streams_common_product_version: 2.4.0
    amq_streams_common_version: "{{ amq_streams_common_product_version }}"
    amq_streams_common_archive_file: "amq-streams-{{ amq_streams_common_product_version }}-bin.zip"
    amq_streams_common_download_dir: "/tmp"

The output in the final host is:

[rhmw@f38mw01 opt]$ ll
total 0
drwxrwxrwx. 1 root               root        68 Apr 21 09:16 kafka_2.13-3.4.0.redhat-00006
drwxr-xr-x. 1 amq_streams_broker amq_streams  0 Jun 28 16:42 kafka_2.4.0

The AMQ Streams package artificat contains the binaries inside of a folder including the scala-kafka-redhat versions. That pattern does not fit with the expected in the parameters.

ISSUE TYPE
COLLECTION VERSION
main branch
STEPS TO REPRODUCE

Use a playbook defining the variables for the AMQ Streams binaries, something similar to:

    # Installation offline
    #amq_streams_common_skip_download: true
    amq_streams_common_offline_install: true
    amq_streams_common_product_version: 2.4.0
    amq_streams_common_version: "{{ amq_streams_common_product_version }}"
    amq_streams_common_archive_file: "amq-streams-{{ amq_streams_common_product_version }}-bin.zip"
    amq_streams_common_download_dir: "/tmp"
EXPECTED RESULTS

Right installation using the AMQ Streams binaries

ACTUAL RESULTS

Different folders created not aligned with the patterns expected:

[rhmw@f38mw01 opt]$ ll
total 0
drwxrwxrwx. 1 root               root        68 Apr 21 09:16 kafka_2.13-3.4.0.redhat-00006
drwxr-xr-x. 1 amq_streams_broker amq_streams  0 Jun 28 16:42 kafka_2.4.0
rpelisse commented 1 year ago

There is actually nothing to be fixed here, because, to install the downstream version (amq_streams) one would use the downstream version of this collection (so redhat.amq_streams, instead of middleware_automation.amq_streams). This version of the collection will have the right default value for Red Hat AMQ Streams (which means not only the download URL, but also the right home for the binaries).

So, I'm closing this issue, we'll revisit this downstream when we release the first version of redhat.amq_streams.

rmarting commented 1 year ago

Thanks for the update! I will rest it as soon the downstream version is released.