chef / chef/mixlib-install

install.sh does not detect Alibaba Linux correctly

Open
#350 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Untriaged Type: Bug
Dominant language
Ruby
Stars
13
Forks
55
Avg merge
2d 15h
Merged PRs (30d)
8

Description

Version:

latest script

Environment:

Alibaba Linux

Scenario:

./install.sh

Expected Result:

Install a CentOS 7 package

Actual Result:

el 2 x86_64
Getting information for chef stable  for el...
downloading https://omnitruck.chef.io/stable/chef/metadata?v=&p=el&pv=2&m=x86_64
  to file /tmp/install.sh.27014/metadata.txt
trying wget...
ERROR 404
Omnitruck artifact does not exist for version  on platform el

Either this means:
   - We do not support el
   - We do not have an artifact for

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'
successfully.

If you cannot fix this problem by setting the bootstrap_version, it probably means
that el is not supported.

Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=&p=el&pv=2&m=x86_64
[root@iZrj996x25ht5omuhhzod7Z ~]#

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting install.sh's platform and distribution detection, then reproduce the command on Alibaba Linux. Verify that the detected platform maps to the CentOS 7 package and that the resulting installation succeeds; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell
Domain
devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.