Skip to content

Amazon 2022 images fail to build due to conflict between curl packages #396

@olhado

Description

@olhado

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

When running tests against the official amazonlinux:2022 image, the tests fail during the initial construction of the test image due to a conflict between curl being installed when curl-minimal is already baked into the official image.

Version

  • test-kitchen: 3.3.2
  • kitchen-docker: 2.13.0
  • kitchen-ansible: 0.56.0

Environment

ARM Mac, Docker Desktop 4.11.1

Scenario

Trying to run serverspec tests for my ansible role against Amazon Linux images.

Steps to Reproduce

  1. Set up test suite with docker as driver and transport.
  2. Create a basic test
  3. Run DOCKER_BUILDKIT=1 bundle exec kitchen create <test-suite>
  4. See error

Expected Result

Amazon 2022 images should be provisioned.

Actual Result

       #7 [ 3/19] RUN yum install -y sudo openssh-server openssh-clients which curl
       #7 sha256:[REDACTED]
       #7 2.699 Amazon Linux 2022 repository                    4.0 MB/s | 9.7 MB     00:02
       #7 3.891 Last metadata expiration check: 0:00:01 ago on Mon Aug 22 00:25:12 2022.
       #7 4.062 (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
       #7 4.062 Error:
       #7 4.062  Problem: problem with installed package curl-minimal-7.83.1-1.amzn2022.aarch64
       #7 4.062   - package curl-minimal-7.83.1-1.amzn2022.aarch64 conflicts with curl provided by curl-7.83.1-1.amzn2022.aarch64
       #7 4.062   - conflicting requests
       #7 ERROR: executor failed running [/bin/sh -c yum install -y sudo openssh-server openssh-clients which curl]: exit code: 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions