Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbit_mq exporter cannot be download for versions > 1.0.0-RC8 #662

Open
stevegreengvl opened this issue May 5, 2023 · 1 comment
Open

Comments

@stevegreengvl
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7
  • Ruby:
  • Distribution:
  • Module version: 2.23.0

How to reproduce (e.g Puppet code you use)

prometheus::rabbitmq_exporter::version: '1.0.0-RC19'

What are you seeing

Download Failed

What behaviour did you expect instead

Download success

Output log

https://github.com/kbudde/rabbitmq_exporter/releases/download/v1.0.0-RC19/rabbitmq_exporter-1.0.0-RC19.linux-amd64.tar.gz
Not Found

Any additional information you'd like to impart

Correct URI would be
https://github.com/kbudde/rabbitmq_exporter/releases/download/v1.0.0-RC19/rabbitmq_exporter-1.0.0-RC19_linux-amd64.tar.gz

@jeee-naut
Copy link

If you use puppet code

prometheus::rabbitmq_exporter::version: '1.0.0-RC19' 
prometheus::rabbitmq_exporter::download_url: 
 https://github.com/kbudde/rabbitmq_exporter/releases/download/v1.0.0-RC19/rabbitmq_exporter_1.0.0-RC19_linux_amd64.tar.gz'

the download succeeds but the file does not extract to the intended location.
It extracts to /opt instead of /opt/rabbitmq_exporter-1.0.0-RC19.linux-amd64/

The created symlink /usr/local/bin/rabbitmq_exporter
which is what systemd uses to start the service, points into this directory

Notice: /Stage[main]/Prometheus::Rabbitmq_exporter/Prometheus::Daemon[rabbitmq_exporter]/Archive[/tmp/rabbitmq_exporter-1.0.0-RC19.tar.gz]/ensure: download archive from https://github.com/kbudde/rabbitmq_exporter/releases/download/v1.0.0-RC19/rabbitmq_exporter_1.0.0-RC19_linux_amd64.tar.gz to /tmp/rabbitmq_exporter-1.0.0-RC19.tar.gz and extracted in /opt with cleanup (corrective)

Interesting is the notice of the second puppet run
Notice: /Stage[main]/Prometheus::Rabbitmq_exporter/Prometheus::Daemon[rabbitmq_exporter]/Archive[/tmp/rabbitmq_exporter-1.0.0-RC19.tar.gz]/creates: creates changed 'archive not extracted' to extracting in /opt to create /opt/rabbitmq_exporter-1.0.0-RC19.linux-amd64/rabbitmq_exporter (corrective)

But it doesn't do what is claimed. The directory /opt/rabbitmq_exporter-1.0.0-RC19.linux-amd64/ still does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants