View Issue Details

IDProjectCategoryView StatusLast Update
0004093Rocky-Linux-9Generalpublic2023-09-20 07:14
ReporterSagar Patil Assigned ToLouis Abel  
Status closedResolutionno change required 
Summary0004093: Rocky-linux 9.2 is unable to detect the resource on chef recipe , where as rhel 9 is capable of
DescriptionRocky-linux 9.2 is not intelligent enough to update the provider name when chef recipe is executed

The current recipe as package as resources , but rocky linux fails while execution
  Cannot find a provider for package[python-devel, python-pip] on rocky version 9.2

The same chef recipe works on Redhat 9 as shown below

Recipe: @recipe_files::/root/test.rb
  * dnf_package[python-devel, python-pip] action install
    - install version 0:3.9.16-1.el9_2.1.x86_64 of package python-devel
    - install version 0:21.2.3-6.el9.noarch of package python-pip

Running handlers:
Running handlers complete
Chef Infra Client finished, 1/1 resources updated in 15 seconds

Note: Redhat 9 updates the resource package to dnf_package and executes successfully.
We need same capability in Rockylinux 9, since all chef recipe as package resources and it needs effort to change the resource in every file

Both yum and dnf package manager are available in RockyLinux and Redhat
Steps To ReproduceSample recipe
cat test.rb
package [
] do
  action :install

when executed
chef-client -z test.rb

  Cannot find a provider for package[python-devel, python-pip] on rocky version 9.2
TagsNo tags attached.


Akemi Yagi

Akemi Yagi

2023-09-01 17:38

reporter   ~0004489

@Sagar Patil

What do you see with the following commands?

$ dnf whatprovides python-devel
$ dnf whatprovides python-pip
Louis Abel

Louis Abel

2023-09-01 20:42

administrator   ~0004491

Thank you for the report.

It is unlikely this is an issue with Rocky Linux. According to this page, only 8 is supported as a "derived platform":

Please report your issue to the Chef project.
Sagar Patil

Sagar Patil

2023-09-04 05:45

reporter   ~0004522

@Akemi Yagi
dnf whatprovides python-devel
python3-devel-3.9.16-1.el9_2.1.x86_64 : Libraries and header files needed for
                                      : Python development
Repo : @System
Matched from:
Provide : python-devel = 3.9.16-1.el9_2.1

[root@ip-10-70-7-33 ~]# yum whatprovides python-pip
python3-pip-21.2.3-6.el9.noarch : A tool for installing and managing Python3
                                : packages
Repo : @System
Matched from:
Provide : python-pip = 21.2.3-6.el9

@Louis Abel
The same works on Rhel9.2 successfully. Let me what difference Rocky9 with Rhel9
Sagar Patil

Sagar Patil

2023-09-05 14:02

reporter   ~0004555

So do we need to change the resource name from package dnf_package in all scripts?
Sagar Patil

Sagar Patil

2023-09-20 06:40

reporter   ~0004687

Its working now with new chef-client version. Old version had a problem

Issue History

Date Modified Username Field Change
2023-09-01 12:51 Sagar Patil New Issue
2023-09-01 17:38 Akemi Yagi Note Added: 0004489
2023-09-01 20:42 Louis Abel Assigned To => Louis Abel
2023-09-01 20:42 Louis Abel Status new => needinfo
2023-09-01 20:42 Louis Abel Note Added: 0004491
2023-09-04 05:45 Sagar Patil Note Added: 0004522
2023-09-05 14:02 Sagar Patil Note Added: 0004555
2023-09-20 06:40 Sagar Patil Note Added: 0004687
2023-09-20 07:14 Louis Abel Status needinfo => closed
2023-09-20 07:14 Louis Abel Resolution open => no change required