package curl-minimal-7.76.1-14.el9.x86_64 conflicts with curl provided by curl-7.76.1-12.el9.x86_64

Bug #1953156 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

CentOS stream 9 container build job is failing with following errors [1]:

```
Error:
 Problem: problem with installed package curl-minimal-7.76.1-14.el9.x86_64
  - package curl-minimal-7.76.1-14.el9.x86_64 conflicts with curl provided by curl-7.76.1-12.el9.x86_64
  - package curl-minimal-7.76.1-12.el9.x86_64 conflicts with curl provided by curl-7.76.1-12.el9.x86_64
  - conflicting requests
  - package curl-minimal-7.76.1-14.el9.x86_64 conflicts with curl provided by curl-7.76.1-14.el9.x86_64
  - package curl-minimal-7.76.1-12.el9.x86_64 conflicts with curl provided by curl-7.76.1-14.el9.x86_64
```

Repos used: [2]
```
[quickstart-centos-appstreams]
name=quickstart-centos-appstreams
baseurl=http://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/
gpgcheck=0
enabled=1
module_hotfixes=True

[quickstart-centos-base]
name=quickstart-centos-base
baseurl=http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/
gpgcheck=0
enabled=1
```

The above issue can be reproduced easily in centos:stream9 container image.
By doing dnf install curl.

With in the container-image centos:stream9
https://gitlab.com/redhat/centos-stream/release-engineering/kickstarts/-/commit/d6ebbbf4209d639bac9af9e712ba8892b81c449a

added curl-minimal and libcurl-minimal.

and when curl is getting installed, it is showing the above error.

In order to fix the issue.
we have two options:
1. dnf install curl -y --allowerasing
2. remove curl from https://opendev.org/openstack/tripleo-common/src/branch/master/container-images/tcib/base/base.yaml#L67 and use curl-minimal

On UBI9 image
```
[chandankumar@fedora base]$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/centos/centos stream9 8f3ace74d41b 43 hours ago 154 MB
registry.access.redhat.com/ubi9-beta/ubi latest 28b0a4b69d9b 7 weeks ago 229 MB
[chandankumar@fedora base]$ podman run -it 28b0a4b69d9b bash
[root@b553a860474a /]# rpm -qa | grep curl
libcurl-minimal-7.76.1-11.el9.x86_64
curl-minimal-7.76.1-11.el9.x86_64
[root@b553a860474a /]#
```

https://bugzilla.redhat.com/show_bug.cgi?id=2005874 has more info around libcurl-minimal.

Logs:
[1]. https://logserver.rdoproject.org/97/36997/6/check/periodic-tripleo-ci-build-containers-centos-9-push-master/da4b5de/logs/container-builds/b0772636-6188-4fd3-a22d-310961b45597/base/base-build.log

[2]. https://logserver.rdoproject.org/97/36997/6/check/periodic-tripleo-ci-build-containers-centos-9-push-master/da4b5de/etc/yum.repos.d/quickstart-centos-base.repo

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
chandan kumar (chkumar246) wrote :

[root@f4d310baa845 /]# rpm -qa | grep curl
curl-7.61.1-22.el8.x86_64
libcurl-7.61.1-22.el8.x86_64
[root@f4d310baa845 /]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 (Ootpa)
[root@f4d310baa845 /]#

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/820382
Committed: https://opendev.org/openstack/tripleo-common/commit/98aa48e8343a3f61a7dceb463114e6f4b9b56e0d
Submitter: "Zuul (22348)"
Branch: master

commit 98aa48e8343a3f61a7dceb463114e6f4b9b56e0d
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Fri Dec 3 18:58:26 2021 +0530

    Install curl for EL8 only

    In CentOS stream9 and UBI 9 image, curl-minimal is already
    installed in the image.

    The curl installation conflicts with curl-minimal package.
    So we are restricting curl installation to cs8 only.

    Closes-Bug: #1953156

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I8da32dcfcba243b7cecfee0f1a6e423ee1dbd8fb

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 16.3.0

This issue was fixed in the openstack/tripleo-common 16.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.