Open shakalandy opened 1 month ago
It breaks for official Grafana OSS docker images too.
e.g.
Grafana
$ curl localhost:3000/api/health
{
"database": "ok",
"version": "11.4.0-205570",
"commit": "403b60723d9960b29c1ad9b1fd5b22b3bc340bef"
Ansible
fatal: [localhost]: FAILED! => {
(...)
init__\n File \"/tmp/ansible_community.grafana.grafana_folder_payload_6beyh4e6/ansible_community.grafana.grafana_folder_payload.zip/ansible_collections/community/grafana/plugins/modules/grafana_folder.py\", line 305, in get_version\nValueError: invalid literal for int() with base 10: '0-205570'\n"
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
SUMMARY
The Version Check currently done is broken against the recent Grafana Security Release (Grafana v11.2.2+security-01 )
The error was: ValueError: invalid literal for int() with base 10: '2+security-01
ISSUE TYPE
COMPONENT NAME
All Grafana Modules using the Version check, if not disabled via skip_version_check
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Ubuntu 24.04.1 LTS on ansible host
STEPS TO REPRODUCE
EXPECTED RESULTS
Playbook works
ACTUAL RESULTS
Playbook throws an error as the grafana version string can't be interpreted
Possible Workaround: enable skip_version_check: