Skip to content

Commit

Permalink
Fix issue with control host bootstrap
Browse files Browse the repository at this point in the history
Due to the changes in the galaxy API, we saw the following error:

```
ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'
to see the full traceback, use -vvv
Failed to install Ansible collections from /home/stack/rav/cl5/venvs/kayobe/share/kayobe/requirements.yml via Ansible Galaxy: returncode 250
```

This is because netcommon is pulled in as a dependency of the
dellemc.os10 collection. Explitly install the collection using the
old API is a workaround for the issue. The constaints are taken from
galaxy.yml in the dellemc.os10 collection. The constraint was >=1.0.0
but it later versions is constrained to <3.0.0.

Change-Id: I45e9f50a7306a5647702788ec5c19d0c7933e685
Partial-Bug: 2038088
  • Loading branch information
jovial committed Oct 3, 2023
1 parent 6041ae0 commit efb0259
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fixes:
- |
Fixes an issue installing the ansible.netcommon collection during
control host bootstrap/upgrade. This was due to a recent change
in the galaxy API. See bug
`LP#2038088 <https://bugs.launchpad.net/kayobe/+bug/2038088`__.
for more details.
4 changes: 3 additions & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ collections:
- name: https://opendev.org/openstack/ansible-collection-kolla
type: git
version: stable/yoga
- name: ansible.netcommon
source: https://old-galaxy.ansible.com
version: '>=1.0.0,<3.0.0'
- name: dellemc.os10
version: 1.1.1

roles:
- src: ahuffman.resolv
version: 1.3.1
Expand Down

0 comments on commit efb0259

Please sign in to comment.