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

install.sh does not properly detect opensuse-leap 15 #267

Open
tas50 opened this issue Aug 24, 2018 · 1 comment
Open

install.sh does not properly detect opensuse-leap 15 #267

tas50 opened this issue Aug 24, 2018 · 1 comment

Comments

@tas50
Copy link
Contributor

tas50 commented Aug 24, 2018

Suse previously shipped with a /etc/SUSE-release file that we parsed. This is no longer the case and they've switched to the /etc/os-release standard. We need to properly parse that out.

@chris-rock
Copy link

chris-rock commented Jul 7, 2019

This is still an issue. Suse and openSUSE seem not to be detected properly (can be easily tested with bento box https://app.vagrantup.com/bento/boxes/opensuse-leap-15 + kitchen). Therefore it makes the use of chef + kitchen + suse challenging :-)

-----> Converging <default-bento-opensuse-leap-15>...
       Preparing files for transfer
       Preparing dna.json
       Resolving cookbook dependencies with Berkshelf 7.0.8...
       Removing non-cookbook files before transfer
       Preparing validation.pem
       Preparing client.rb
       opensuse-leap 15.0 x86_64
       Getting information for chef stable 14.13.11 for opensuse-leap...
       downloading https://omnitruck.chef.io/stable/chef/metadata?v=14.13.11&p=opensuse-leap&pv=15.0&m=x86_64
         to file /tmp/install.sh.4482/metadata.txt
       trying wget...
       ERROR 404
       Omnitruck artifact does not exist for version 14.13.11 on platform opensuse-leap
       
       Either this means:
          - We do not support opensuse-leap
          - We do not have an artifact for 14.13.11
       
       This is often the latter case due to running a prerelease or RC version of chef
       or a gem version which was only pushed to rubygems and not omnitruck.
       
       You may be able to set your knife[:bootstrap_version] to the most recent stable
       release of Chef to fix this problem (or the most recent stable major version number).
       
       In order to test the version parameter, adventurous users may take the Metadata URL
       below and modify the '&v=<number>' parameter until you successfully get a URL that
       does not 404 (e.g. via curl or wget).  You should be able to use '&v=11' or '&v=12'
       succesfully.
       
       If you cannot fix this problem by setting the bootstrap_version, it probably means
       that opensuse-leap is not supported.
       
       Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=14.13.11&p=opensuse-leap&pv=15.0&m=x86_64

You can apply the following workaround in kitchen:

platforms:
  - name: bento/opensuse-leap-15
    provisioner:
      download_url:  https://packages.chef.io/files/stable/chef/14.13.11/sles/15/chef-14.13.11-1.sles12.x86_64.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants