curl package installation on Rocky 9.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Critical
|
Neil Hanlon |
Bug Description
Hi,
Rocky Linux 9.3. openstack-ansible master git.
When run
scripts/
Got error as:
fatal: [localhost]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: problem with installed package curl-7.
The curl package has been installed y default, and it is required by dnf package.
Update file "ests/roles/
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #1 |
Feng Zhang (fengzhang2023) wrote : | #2 |
Hi
I believe it has this patch included already. I cloned the whole trpository. and then checkout the maste.
Feng Zhang (fengzhang2023) wrote : | #3 |
Sorry correct tip:
I cloned the whole repository. and then checkout the master.
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #4 |
Ok, yes, I missed that you wrote originally that you've commented out "/usr/bin/curl" line, which means patch is there.
We will look into that shortly.
Changed in openstack-ansible: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #5 |
I'm actually not able to reproduce the issue. I've just spawned a Rocky host from latest image. On the first login `curl-minimal` was already installed. With that `dnf install /usr/bin/curl` is happy and does not claim any conflict.
[rocky@
[root@server-
Last metadata expiration check: 0:07:23 ago on Tue Dec 12 10:12:48 2023.
Package curl-minimal-
Dependencies resolved.
Nothing to do.
Complete!
[root@server-
And eventually ./scripts/
I've also tried a sample playbook that tries to install `/usr/bin/curl` using package module and it passed without raising any issues.
So in fact I am not able to reproduce the issue.
However, from what I see in your first output, you currently have `curl` installed - not `curl-minimal`. But I am pretty sure that Rocky 9.3 goes with `curl-minimal` out of the box.
So how you ended up with `curl` being installed there? Was it some older image upgraded with DNF to 9.3, like 9.1 or 9.0?
As I assume that this exact difference (of having curl instead of curl-minimal out of the box) what potentially leads to the issue.
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-ansible (master) | #6 |
Related fix proposed to branch: master
Review: https:/
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #7 |
Please disregard that automated message above - it was linked wrongly.
Feng Zhang (fengzhang2023) wrote : | #8 |
Hi,
I downloaded the ISO file from Rocky web site, and installed it on a bare metal machine.
Feng Zhang (fengzhang2023) wrote : | #9 |
Looks like the curl is installed by default in this way(from ISO), not curl-minimal. Maybe add some options for DNF can avoid throwing out an error, instead a warning message should be enough.
Feng Zhang (fengzhang2023) wrote : | #10 |
The ISO is 9.3
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #11 |
Can you kindly check if `dnf install /usr/bin/curl` does error out with the pretty much same conflict?
Feng Zhang (fengzhang2023) wrote : | #12 |
Here is the result:
dnf install /usr/bin/curl
Last metadata expiration check: 2:09:04 ago on Tue 12 Dec 2023 08:14:43 AM EST.
Package curl-7.
Dependencies resolved.
Nothing to do.
Complete!
Feng Zhang (fengzhang2023) wrote : | #13 |
and also:
dnf install curl-minimal
Last metadata expiration check: 2:10:19 ago on Tue 12 Dec 2023 08:14:43 AM EST.
Error:
Problem: problem with installed package curl-7.
- package curl-minimal-
- package curl-minimal-
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Changed in openstack-ansible: | |
assignee: | nobody → Neil Hanlon (nhanlon) |
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #14 |
Hi,
Sorry for the delay.
We eventually do not try to install curl or curl-minimal explicitly - instead we always do try installation of `/usr/bin/curl` which should not raise any issue or conflict as both packages do satisfy the requirement.
As you wrote in the beginning of the report - you had "/usr/bin/curl" line in vars file, that should be a safe option.
I'm still not able to reproduce the issue, though it might be that OpenStack image I'm trying to use is completely different from the ISO image that's being used for servers.
Just out of interest, have you tried to use `dnf swap curl curl-minimal`?
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ): | #15 |
Ok, right after I wrote an update - I was able to reproduce the issue. For that, I had to swap curl-minimal that's being installed in my image with curl, and then run a sample and easy playbook:
- hosts: localhost
tasks:
- package:
name: /usr/bin/curl
state: present
[root@server-
libcurl-
curl-7.
[root@server-
Running dnf install directly does not result in any issues:
[root@server-
Last metadata expiration check: 2:33:20 ago on Thu Dec 28 12:18:50 2023.
Package curl-7.
Dependencies resolved.
Nothing to do.
Complete!
[root@server-
However running the playbook does:
TASK [package] *******
fatal: [localhost]: FAILED! => {"changed": false, "failures": [], "msg": "Depsolve Error occurred: \n Problem: problem with installed package curl-7.
Running `dnf swap curl curl-minimal` does solve the issue though
Changed in openstack-ansible: | |
status: | Triaged → Confirmed |
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #16 |
So I'm inclined to think that this is an Ansible bug originally, thus I've submitted a bug report for it:
https:/
What to do with our code is a different story though...
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master) | #17 |
Fix proposed to branch: master
Review: https:/
Changed in openstack-ansible: | |
status: | Confirmed → In Progress |
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-openstack_hosts (master) | #18 |
Fix proposed to branch: master
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-openstack_hosts (master) | #19 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1584983367b6bf0
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:12:36 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I0f1bd3aa3dbce9
Changed in openstack-ansible: | |
status: | In Progress → Fix Released |
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-openstack_hosts (stable/2023.2) | #20 |
Fix proposed to branch: stable/2023.2
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-openstack_hosts (stable/2023.1) | #21 |
Fix proposed to branch: stable/2023.1
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-openstack_hosts (stable/zed) | #22 |
Fix proposed to branch: stable/zed
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master) | #23 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 60a1196fe69730d
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:11:38 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-openstack_hosts (stable/2023.2) | #24 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.2
commit 26f13a7a108dc16
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:12:36 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I0f1bd3aa3dbce9
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-openstack_hosts (stable/2023.1) | #25 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit 6b0f7753c566ca3
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:12:36 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I0f1bd3aa3dbce9
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-openstack_hosts (stable/zed) | #26 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit 99e6ab829dc7c54
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:12:36 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I0f1bd3aa3dbce9
tags: | added: in-stable-zed |
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/2023.2) | #27 |
Fix proposed to branch: stable/2023.2
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/2023.1) | #28 |
Fix proposed to branch: stable/2023.1
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/zed) | #29 |
Fix proposed to branch: stable/zed
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/2023.1) | #30 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit 6c5217aa89a43fa
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:11:38 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38
(cherry picked from commit 60a1196fe69730d
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/zed) | #31 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit bd6d6437f5ca542
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:11:38 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38
(cherry picked from commit 60a1196fe69730d
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/2023.2) | #32 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.2
commit fda9704cee25587
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:11:38 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
[1] https:/
Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38
(cherry picked from commit 60a1196fe69730d
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 28.0.1 | #33 |
This issue was fixed in the openstack/
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 27.4.0 | #34 |
This issue was fixed in the openstack/
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 26.5.0 | #35 |
This issue was fixed in the openstack/
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 29.0.0.0b1 | #36 |
This issue was fixed in the openstack/
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (unmaintained/yoga) | #37 |
Fix proposed to branch: unmaintained/yoga
Review: https:/
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (unmaintained/yoga) | #38 |
Reviewed: https:/
Committed: https:/
Submitter: "Zuul (22348)"
Branch: unmaintained/yoga
commit e82e562bfbeee08
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Dec 28 19:11:38 2023 +0100
Skip installing curl for EL
Due to the bug in Ansible [1] it does not resolve requirement of /usr/bin/curl
properly, always trying to install `curl-minimal`, which would fail on systems with
already installed `curl`.
Since `curl` presence is essential for DNF, we should be able to skip installation
of curl to EL systems, as they are all shipped with it as of today.
It's also removing CentOS 8 Stream jobs as it reached EOL.
[1] https:/
Depends-On: https:/
Closes-Bug: #2046172
Change-Id: I65d3fa2e3d6d38
(cherry picked from commit 60a1196fe69730d
tags: | added: in-unmaintained-yoga |
Hi there,
Thanks for reporting that.
Actually, it's quite weird that you are facing this issue. I believe it should have been fixed a while ago and backported back to yoga with this patch: /review. opendev. org/c/openstack /openstack- ansible/ +/872896
https:/
Can you kindly confirm that you do have this patch, but still experiencing issues?