You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
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:
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?:
🤷
The text was updated successfully, but these errors were encountered:
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>"}
What happened?
Runninig a minimal playbook with the default vars of the role generates this error:
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:
and running it:
Environment
Role version:
2.22.0
Ansible version information:
ansible 2.10.2
Variables:
all the default ones
Anything else we need to know?:
🤷
The text was updated successfully, but these errors were encountered: