image-builder exit with error CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 328
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 9
Description
**What happened**:
Following instructions to create ubuntu image for baremetal
https://anywhere.eks.amazonaws.com/docs/reference/artifacts/#build-bare-metal-node-images
When I run
Setup image-builder and group, setup env vars, download image-builder
```
image-builder build --os ubuntu --hypervisor baremetal --release-channel 1-26
```
I get error at the end
```
------------------- 2023-05-30T14:39:49.151+0000 Starting target=deps-raw -------------------
make -C image-builder/images/capi deps-raw
make[1]: Entering directory '/home/image-builder/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-builder/image-builder/images/capi'
hack/ensure-ansible.sh
Starting galaxy collection install process
Process install dependency map
ERROR! Unexpected Exception, this is probably a bug: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
to see the full traceback, use -vvv
make[1]: *** [Makefile:114: deps-raw] Error 250
make[1]: Leaving directory '/home/image-builder/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-builder/image-builder/images/capi'
make: *** [Makefile:241: deps-raw] Error 2
make: Leaving directory '/home/image-builder/eks-anywhere-build-tooling/projects/kubernetes-sigs/image-builder'
2023/05/30 10:39:49 Error executing image-builder for raw hypervisor: failed to run command: exit status 2
```
**What you expected to happen**:
I want to create image for ubuntu for Intel Nuc, since bottlerocket is not working.
**How to reproduce it (as minimally and precisely as possible)**:
Running
```
image-builder build --os ubuntu --hypervisor baremetal --release-channel 1-26
```
**Anything else we need to know?**:
**Environment**:
Environment
```
>echo $EKSA_RELEASE_VERSION
v0.15.4
>whoami
image-builder
>pwd
/home/image-builder
>lsb_release -a
Description: Ubuntu 22.10
>uname -a
Linux mickey-NUC10i3FNH 5.19.0-42-generic #43-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 18:21:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
Contributor guide
Research direction
Start with image-builder/images/capi/hack/ensure-ansible.sh and the deps-raw target at image-builder/images/capi/Makefile:114. Re-run image-builder build --os ubuntu --hypervisor baremetal --release-channel 1-26, using Ansible's -vvv output if needed, and compare the dependency versions involved. Done means the deps-raw step completes and the Ubuntu baremetal image build proceeds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, go, ubuntu
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100