My name space: Galaxy NG
My GH repositories: konstruktoid (konstruktoid) / Repositories · GitHub
Baseline role: v0.1.1 in Galaxy-NG, v0.1.5 in Old Galaxy (Ansible Galaxy)
Galaxy NG shows it was updated 15 days ago: v0.1.0, Ansible Galaxy v0.1.2 with last import 18 days ago
Galaxy NG is correct but Galaxy NG isn’t
2 Likes
I have the same problem. For me, the versions are outdated on both the old and new Galaxies.
I get the error:
File "/venv/lib64/python3.11/site-packages/galaxy_importer/schema.py", line 522, in parse
[40](https://github.com/geoffreyvanwyk/ansible-role-moodle/actions/runs/6433373176/job/17470295521#step:5:41)
raise exc.LegacyRoleSchemaError("unknown field in galaxy_info") from e
Unknown field in galaxy_info.
I checked and saw all the fields in my meta/main.yml are valid: https://github.com/geoffreyvanwyk/ansible-role-moodle/blob/v1.2.6/meta/main.yml
It is a pity that it does not say which field.
The error is raised in this code: https://github.com/ansible/galaxy-importer/blob/master/galaxy_importer/schema.py
It is now fixed with my latest import.
Run ansible-galaxy role import -vvv --api-key *** $(echo geoffreyvanwyk/ansible-role-moodle | cut -d/ -f1) $(echo geoffreyvanwyk/ansible-role-moodle | cut -d/ -f2)
ansible-galaxy [core 2.15.5]
config file = None
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/ansible
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/hostedtoolcache/Python/3.11.6/x64/bin/ansible-galaxy
python version = 3.11.6 (main, Oct 3 2023, 04:42:57) [GCC 11.4.0] (/opt/hostedtoolcache/Python/3.11.6/x64/bin/python)
jinja version = 3.1.2
libyaml = True
No config file found; using defaults
Created /home/runner/.ansible/galaxy_token
Successfully submitted import request 2052427529857801528107197227152615223
role imported successfully
The correct version number (matching the latest tag in Github) also appears on Galaxy now.
I deleted all the failed tags since the last successful one on Github.