Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Error fetching the checksums file #319

Closed
nop33 opened this issue Nov 11, 2020 · 2 comments
Closed

Error fetching the checksums file #319

nop33 opened this issue Nov 11, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@nop33
Copy link

nop33 commented Nov 11, 2020

What happened?

Runninig a minimal playbook with the default vars of the role generates this error:

TASK [cloudalchemy.prometheus : Get checksum list] *******************************************************************
/usr/lib/python3.8/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.0) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
fatal: [my.domain.name]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Failed lookup url for https://github.com/prometheus/prometheus/releases/download/v2.22.0/sha256sums.txt : <urlopen error [Errno -2] Name does not resolve>"}

Did you expect to see some different?

Yes, to fetch the checksums file.

How to reproduce it (as minimally and precisely as possible):

Using a minimal playbook after downloading the role:

# monitoring.yml
---
- hosts: monitoring
  roles:
    - role: cloudalchemy.prometheus

and running it:

ansible-playbook monitoring.yml

Environment

  • Role version:

    2.22.0

  • Ansible version information:

    ansible 2.10.2

  • Variables:

all the default ones

  • Ansible playbook execution Logs:
PLAY [monitoring] ****************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************
ok: [my.domain.name]

TASK [cloudalchemy.prometheus : Gather variables for each operating system] ******************************************
ok: [my.domain.name] => (item=/etc/ansible/vendor_roles/cloudalchemy.prometheus/vars/debian.yml)

TASK [cloudalchemy.prometheus : Assert usage of systemd as an init system] *******************************************
ok: [my.domain.name] => {
    "changed": false,
    "msg": "All assertions passed"
}

TASK [cloudalchemy.prometheus : Get systemd version] *****************************************************************
ok: [my.domain.name]

TASK [cloudalchemy.prometheus : Set systemd version fact] ************************************************************
ok: [my.domain.name]

TASK [cloudalchemy.prometheus : Assert no duplicate config flags] ****************************************************
ok: [my.domain.name] => {
    "changed": false,
    "msg": "All assertions passed"
}

TASK [cloudalchemy.prometheus : Assert external_labels aren't configured twice] **************************************
ok: [my.domain.name] => {
    "changed": false,
    "msg": "All assertions passed"
}

TASK [cloudalchemy.prometheus : Set prometheus external metrics path] ************************************************
ok: [my.domain.name]

TASK [cloudalchemy.prometheus : Fail when prometheus_config_flags_extra duplicates parameters set by other variables] ***
skipping: [my.domain.name] => (item=storage.tsdb.retention)
skipping: [my.domain.name] => (item=storage.tsdb.path)
skipping: [my.domain.name] => (item=storage.local.retention)
skipping: [my.domain.name] => (item=storage.local.path)
skipping: [my.domain.name] => (item=config.file)
skipping: [my.domain.name] => (item=web.listen-address)
skipping: [my.domain.name] => (item=web.external-url)

TASK [cloudalchemy.prometheus : Get all file_sd files from scrape_configs] *******************************************
ok: [my.domain.name]

TASK [cloudalchemy.prometheus : Fail when file_sd targets are not defined in scrape_configs] *************************

TASK [cloudalchemy.prometheus : Alert when prometheus_alertmanager_config is empty, but prometheus_alert_rules is specified] ***
ok: [my.domain.name] => {
    "msg": "No alertmanager configuration was specified. If you want your alerts to be sent make sure to specify a prometheus_alertmanager_config in defaults/main.yml.\n"
}

TASK [cloudalchemy.prometheus : Get latest release] ******************************************************************
skipping: [my.domain.name]

TASK [cloudalchemy.prometheus : Set prometheus version to {{ _latest_release.json.tag_name[1:] }}] *******************
skipping: [my.domain.name]

TASK [cloudalchemy.prometheus : Get checksum list] *******************************************************************
/usr/lib/python3.8/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.0) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
fatal: [my.domain.name]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Failed lookup url for https://github.com/prometheus/prometheus/releases/download/v2.22.0/sha256sums.txt : <urlopen error [Errno -2] Name does not resolve>"}

NO MORE HOSTS LEFT ***************************************************************************************************

PLAY RECAP ***********************************************************************************************************
my.domain.name         : ok=10   changed=0    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0

Anything else we need to know?:
🤷

@nop33 nop33 added the bug Something isn't working label Nov 11, 2020
@nop33
Copy link
Author

nop33 commented Nov 19, 2020

After upgrading the requests package on the target machine, the warning disappeared but the error remains:

TASK [cloudalchemy.prometheus : Get checksum list] *******************************************************************
fatal: [my.domain.name]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Failed lookup url for https://github.com/prometheus/prometheus/releases/download/v2.22.0/sha256sums.txt : <urlopen error [Errno -2] Name does not resolve>"}

@nop33
Copy link
Author

nop33 commented Nov 23, 2020

My ansible controller was running alpine:edge. Changing it to alpine:3.12.1, the error disappeared. This issue helped: gliderlabs/docker-alpine#539

Closing issue.

@nop33 nop33 closed this as completed Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant