gunzip issue when trying to replicate RabbitMQ tile using Concourse pipeline.
search cancel

gunzip issue when trying to replicate RabbitMQ tile using Concourse pipeline.

book

Article ID: 398127

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

When trying to replicate RabbitMQ tile using Concourse pipeline, the following error is returned:

ERROR: 4 files found after gunzip; expected 1

Environment

p-rabbitmq version: 2.3.5

Concourse pipeline

Cause

RabbitMQ replicator binaries are contained within a gzipped tar (tgz) file.

calculating sha sum for replicator-binaries-0.3.0.tgz.partial
Writing a list of downloaded artifact to download-file.json
➜  ~ tar zxvf replicator-binaries-0.3.0.tgz
x rabbitmq-replicator-0.3.0-darwin
x rabbitmq-replicator-0.3.0-linux
x rabbitmq-replicator-0.3.0-windows.exe
➜  ~

Resolution

Modify the pipeline to download only the replicator-binaries-0.3.0.tgz file:

➜  ~ pivnet pfs -p p-rabbitmq -r 2.3.5 --format json | jq -r '.[].aws_object_key'
p-rabbitmq/open_source_license_vmware_tanzu_rabbitmq_for_tanzu_application_service_2.3.5_ga.txt
p-rabbitmq/p-rabbitmq-2.3.5-build.1.pivotal
p-rabbitmq/replicator-binaries-0.3.0.tgz
p-rabbitmq/VMware-p-rabbitmq-2.3.5-ODP.tar.gz
➜  ~ om download-product --pivnet-host=https://network.tanzu.vmware.com -t $TOKEN -p p-rabbitmq --product-version 2.3.5 -f 'replicator-*' -o . 1>/dev/null
attempting to download the file p-rabbitmq/replicator-binaries-0.3.0.tgz from source pivnet
 7.11 MiB / 7.11 MiB [==============================================] 100.00% 0s
calculating sha sum for replicator-binaries-0.3.0.tgz.partial
Writing a list of downloaded artifact to download-file.json
➜  ~ tar zxvf replicator-binaries-0.3.0.tgz
x rabbitmq-replicator-0.3.0-darwin
x rabbitmq-replicator-0.3.0-linux
x rabbitmq-replicator-0.3.0-windows.exe
➜  ~

Additionally, modify the pipeline to use tar instead of gunzip, as the RabbitMQ replicator binaries are contained within a gzipped tar (tgz) file.