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
If you try to retrieve version 2.10.0 of role cloudalchemy.prometheus, ansible-galaxy will claim the version doesn't exist even though it's present.
STEPS TO REPRODUCE
Use the following Ansible version:
ansible 2.10.8
...
python version = 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0]
And set the following in requirements.yml:
- src: cloudalchemy.prometheus
version: 2.10.0
And finally, retrieve the role with ansible-galaxy install -r ./requirements.yml
EXPECTED RESULTS
The role is properly installed.
ACTUAL RESULTS
By fetching the role with ansible-galaxy install -r ./requirements.yml
you obtain the following:
Starting galaxy role install process
- downloading role 'prometheus', owned by cloudalchemy
[WARNING]: - cloudalchemy.prometheus was NOT installed successfully: - the specified version (2.10.0) of cloudalchemy.prometheus was not found in the list of available
versions
...
...
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
Here is the same with -vvvv:
Starting galaxy role install process
Processing role cloudalchemy.prometheus
Initial connection to galaxy_server: https://galaxy.ansible.com
...
Calling Galaxy at https://galaxy.ansible.com/api/
Found API version 'v1, v2' with Galaxy server default (https://galaxy.ansible.com/api/)
- downloading role 'prometheus', owned by cloudalchemy
Calling Galaxy at https://galaxy.ansible.com/api/v1/roles/?owner__username=cloudalchemy&name=prometheus
Calling Galaxy at https://galaxy.ansible.com/api/v1/roles/22403/versions/?page_size=50
Calling Galaxy at https://galaxy.ansible.com/api/v1/roles/22403/versions/?page=2&page_size=50
Calling Galaxy at https://galaxy.ansible.com/api/v1/roles/22403/versions/?page=3&page_size=50
[WARNING]: - cloudalchemy.prometheus was NOT installed successfully: - the specified version (2.10.0) of cloudalchemy.prometheus was not found in the list of available
versions
...
...
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
I did dig a bit into those api calls and they indeed return no version 2.10.0. But if you change the page_size value to anything else than 50 (like 40 or 60), then suddenly this version will appear in page 2.
Would this mean that the api has a pagination problem?
The text was updated successfully, but these errors were encountered:
I hit this same issue with ansible-galaxy 2.14.1. I checked the API calls using verbose mode like described above and when Galaxy returns the final page of results it repeats some version numbers like they were not sorted prior to pagination.
Bug Report
SUMMARY
If you try to retrieve version 2.10.0 of role cloudalchemy.prometheus, ansible-galaxy will claim the version doesn't exist even though it's present.
STEPS TO REPRODUCE
Use the following Ansible version:
And set the following in requirements.yml:
And finally, retrieve the role with
ansible-galaxy install -r ./requirements.yml
EXPECTED RESULTS
The role is properly installed.
ACTUAL RESULTS
By fetching the role with
ansible-galaxy install -r ./requirements.yml
you obtain the following:
Here is the same with
-vvvv
:I did dig a bit into those api calls and they indeed return no version 2.10.0.
But if you change the
page_size
value to anything else than 50 (like 40 or 60), then suddenly this version will appear in page 2.Would this mean that the api has a pagination problem?
The text was updated successfully, but these errors were encountered: