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

el7 artifacts are returned when el5 is passed as options #269

Open
jasonwbarnett opened this issue Nov 2, 2018 · 1 comment
Open

el7 artifacts are returned when el5 is passed as options #269

jasonwbarnett opened this issue Nov 2, 2018 · 1 comment
Labels
Type: Bug Does not work as expected.

Comments

@jasonwbarnett
Copy link

jasonwbarnett commented Nov 2, 2018

Version:

v3.11.5

Environment:

Tested on both Mac OS 10.13.6 + ChefDK 2.5.3 and on RHEL 5 + Chef 12.22.5

Scenario:

Trying to fetch the latest chef 13 version for RHEL 5.

Steps to Reproduce:

$ chef exec irb
irb(main):001:0> require 'mixlib/install'
=> true
irb(main):002:0> Mixlib::Install.new({:product_name=>"chef", :platform_version_compatibility_mode=>true, :platform=>"el", :platform_version=>"5", :architecture=>"x86_64", :channel=>:stable, :product_version=>'13'}).artifact_info.url
=> "https://packages.chef.io/files/stable/chef/13.12.3/el/7/chef-13.12.3-1.el7.x86_64.rpm"
irb(main):003:0> Mixlib::Install::VERSION
=> "3.11.5"

Expected Result:

"http://packages.chef.io/files/stable/chef/13.6.4/el/5/chef-13.6.4-1.el5.x86_64.rpm"

Actual Result:

"https://packages.chef.io/files/stable/chef/13.12.3/el/7/chef-13.12.3-1.el7.x86_64.rpm"
@tas50
Copy link
Contributor

tas50 commented Nov 2, 2018

platform_version_compatibility_mode is why you're getting the EL 7 package, but you should be able to run the w/o platform_version_compatibility_mode and get the last EL 5 package. That does seem broken to me.

@tas50 tas50 added bug Type: Bug Does not work as expected. and removed bug labels Nov 2, 2018
@jasonwbarnett jasonwbarnett changed the title EL7 artifacts are returned when el5 is passed as options el7 artifacts are returned when el5 is passed as options Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants