Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArtifactsNotFound for opensuse-leap platform #379

Open
demiph opened this issue Apr 12, 2022 · 0 comments
Open

ArtifactsNotFound for opensuse-leap platform #379

demiph opened this issue Apr 12, 2022 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@demiph
Copy link

demiph commented Apr 12, 2022

Version:

3.12

Environment:

Platform: opensuse-leap
Platform Version: 15.1

Scenario:

I am looking to use the mixlib library to install chef-client on an OpenSUSE platform. This fails with a Mixlib::Install::Backend::ArtifactsNotFound error. Further investigations shows that the chef_client_updater cookbook uses the Mixlib::Install.detect_platform method which gives the follow
chef (17.10.3)> Mixlib::Install.detect_platform => {:platform=>"opensuse-leap", :platform_version=>"15.1", :architecture=>"x86_64"}

but there is no actual artifact for opensuse-leap. There is an artifact for sles though
#<Mixlib::Install::ArtifactInfo:0x00000000047e4bf0 @architecture="x86_64", @license="Chef EULA", @license_content=nil, @md5="ab0960c880ded991952bbac2948a8880", @platform="sles", @platform_version="15", @product_description="Chef Infra Client", @product_name="chef", @sha1="d36af7195b7a47cb954730fe3125a46eab64bf7b", @sha256="f0bfbeca774f540781477aff50ae50151a0d1a53d770f129cb0eacca271b9ec1", @software_dependencies=nil, @url="https://packages.chef.io/files/current/chef/18.0.54/sles/15/chef-18.0.54-1.sles12.x86_64.rpm", @version="18.0.54">,

[What you are trying to achieve and you can't?]
Install a chef_client version using mixlib

Steps to Reproduce:

`require 'mixlib/install'

options = {
channel: :current,
product_name: 'chef',
product_version: :18,
platform: 'opensuse-leap',
platform_version: '15.1',
architecture: 'x86_64'
}

artifact = Mixlib::Install.new(options).artifact_info`

Expected Result:

Install desired version of chef-client using mixlib-install

Actual Result:

Artifact not found for desired OS

@demiph demiph added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant