sous-chefs / sous-chefs/git

STDERR: No provider of 'git=2.26.2-27.36.1' found.

Open
#137 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
125
Forks
170
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Hey,

I am using the recipe and works just fine on our win/rhel/centos machines.

It fails however on suse. This is the console log from the execution of the command sudo chef-client -o 'recipe[git]'
Recipe version: 10.0.0

[2020-07-17T15:05:53.153Z] Processing sofumsuse06.eur.ad.sag
[2020-07-17T15:05:54.364Z] Processing sofumsuse06.eur.ad.sag
[2020-07-17T15:05:54.639Z] + sudo chef-client -o 'recipe[git]'
[2020-07-17T15:06:02.764Z] Starting Chef Client, version 14.13.11
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Run List override has been provided.
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Original Run List: []
[2020-07-17T15:06:12.701Z] [2020-07-17T17:52:34+03:00] WARN: Overridden Run List: [recipe[git]]
[2020-07-17T15:06:12.701Z] resolving cookbooks for run list: ["git"]
[2020-07-17T15:06:12.701Z] Synchronizing Cookbooks:
[2020-07-17T15:06:12.701Z]   - git (10.0.0)
[2020-07-17T15:06:12.701Z] Installing Cookbook Gems:
[2020-07-17T15:06:12.701Z] Compiling Cookbooks...
[2020-07-17T15:06:12.701Z] Converging 1 resources
[2020-07-17T15:06:12.701Z] Recipe: git::package
[2020-07-17T15:06:12.701Z]   * git_client[default] action install
[2020-07-17T15:06:19.228Z]     * zypper_package[default :create git] action install
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       ================================================================================
[2020-07-17T15:06:19.228Z]       Error executing action `install` on resource 'zypper_package[default :create git]'
[2020-07-17T15:06:19.228Z]       ================================================================================
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       Mixlib::ShellOut::ShellCommandFailed
[2020-07-17T15:06:19.228Z]       ------------------------------------
[2020-07-17T15:06:19.228Z]       Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.228Z]       ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z]       STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.228Z]       Loading repository data...
[2020-07-17T15:06:19.228Z]       Reading installed packages...
[2020-07-17T15:06:19.228Z]       'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.228Z]       STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.228Z]       ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z]       Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       Resource Declaration:
[2020-07-17T15:06:19.228Z]       ---------------------
[2020-07-17T15:06:19.228Z]       # In /var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]         9:           package "#{new_resource.name} :create #{parsed_package_name}" do
[2020-07-17T15:06:19.228Z]        10:             package_name parsed_package_name
[2020-07-17T15:06:19.228Z]        11:             version parsed_package_version
[2020-07-17T15:06:19.228Z]        12:             action new_resource.package_action
[2020-07-17T15:06:19.228Z]        13:             action :install
[2020-07-17T15:06:19.228Z]        14:           end
[2020-07-17T15:06:19.228Z]        15:         end
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       Compiled Resource:
[2020-07-17T15:06:19.228Z]       ------------------
[2020-07-17T15:06:19.228Z]       # Declared in /var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb:9:in `block in <class:Package>'
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       zypper_package("default :create git") do
[2020-07-17T15:06:19.228Z]         package_name "git"
[2020-07-17T15:06:19.228Z]         action [:install]
[2020-07-17T15:06:19.228Z]         default_guard_interpreter :default
[2020-07-17T15:06:19.228Z]         declared_type :package
[2020-07-17T15:06:19.228Z]         cookbook_name "git"
[2020-07-17T15:06:19.228Z]         version nil
[2020-07-17T15:06:19.228Z]       end
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]       System Info:
[2020-07-17T15:06:19.228Z]       ------------
[2020-07-17T15:06:19.228Z]       chef_version=14.13.11
[2020-07-17T15:06:19.228Z]       platform=suse
[2020-07-17T15:06:19.228Z]       platform_version=12.4
[2020-07-17T15:06:19.228Z]       ruby=ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
[2020-07-17T15:06:19.228Z]       program_name=/usr/bin/chef-client
[2020-07-17T15:06:19.228Z]       executable=/opt/chef/bin/chef-client
[2020-07-17T15:06:19.228Z]       
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z]     ================================================================================
[2020-07-17T15:06:19.228Z]     Error executing action `install` on resource 'git_client[default]'
[2020-07-17T15:06:19.228Z]     ================================================================================
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z]     Mixlib::ShellOut::ShellCommandFailed
[2020-07-17T15:06:19.228Z]     ------------------------------------
[2020-07-17T15:06:19.228Z]     zypper_package[default :create git] (/var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.228Z]     ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z]     STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.228Z]     Loading repository data...
[2020-07-17T15:06:19.228Z]     Reading installed packages...
[2020-07-17T15:06:19.228Z]     'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.228Z]     STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.228Z]     ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.228Z]     Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z]     Resource Declaration:
[2020-07-17T15:06:19.228Z]     ---------------------
[2020-07-17T15:06:19.228Z]     # In /var/chef/cache/cookbooks/git/recipes/package.rb
[2020-07-17T15:06:19.228Z]     
[2020-07-17T15:06:19.228Z]      23:   git_client 'default' do
[2020-07-17T15:06:19.228Z]      24:     action :install
[2020-07-17T15:06:19.228Z]      25:   end
[2020-07-17T15:06:19.229Z]      26: end
[2020-07-17T15:06:19.229Z]     
[2020-07-17T15:06:19.229Z]     Compiled Resource:
[2020-07-17T15:06:19.229Z]     ------------------
[2020-07-17T15:06:19.229Z]     # Declared in /var/chef/cache/cookbooks/git/recipes/package.rb:23:in `from_file'
[2020-07-17T15:06:19.229Z]     
[2020-07-17T15:06:19.229Z]     git_client("default") do
[2020-07-17T15:06:19.229Z]       action [:install]
[2020-07-17T15:06:19.229Z]       default_guard_interpreter :default
[2020-07-17T15:06:19.229Z]       declared_type :git_client
[2020-07-17T15:06:19.229Z]       cookbook_name "git"
[2020-07-17T15:06:19.229Z]       recipe_name "package"
[2020-07-17T15:06:19.229Z]     end
[2020-07-17T15:06:19.229Z]     
[2020-07-17T15:06:19.229Z]     System Info:
[2020-07-17T15:06:19.229Z]     ------------
[2020-07-17T15:06:19.229Z]     chef_version=14.13.11
[2020-07-17T15:06:19.229Z]     platform=suse
[2020-07-17T15:06:19.229Z]     platform_version=12.4
[2020-07-17T15:06:19.229Z]     ruby=ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
[2020-07-17T15:06:19.229Z]     program_name=/usr/bin/chef-client
[2020-07-17T15:06:19.229Z]     executable=/opt/chef/bin/chef-client
[2020-07-17T15:06:19.229Z]     
[2020-07-17T15:06:19.229Z] 
[2020-07-17T15:06:19.229Z] Running handlers:
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] ERROR: Running exception handlers
[2020-07-17T15:06:19.229Z] Running handlers complete
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] ERROR: Exception handlers complete
[2020-07-17T15:06:19.229Z] Chef Client failed. 0 resources updated in 16 seconds
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-07-17T15:06:19.229Z] [2020-07-17T17:52:40+03:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: git_client[default] (git::package line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: zypper_package[default :create git] (/var/chef/cache/cookbooks/git/libraries/provider_git_client_package.rb line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '104'
[2020-07-17T15:06:19.229Z] ---- Begin output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.229Z] STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
[2020-07-17T15:06:19.229Z] Loading repository data...
[2020-07-17T15:06:19.229Z] Reading installed packages...
[2020-07-17T15:06:19.229Z] 'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
[2020-07-17T15:06:19.229Z] STDERR: No provider of 'git=2.26.2-27.36.1' found.
[2020-07-17T15:06:19.229Z] ---- End output of ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] ----
[2020-07-17T15:06:19.229Z] Ran ["zypper", "--non-interactive", "install", "--auto-agree-with-licenses", "git=2.26.2-27.36.1"] returned 104
script returned exit code 1

stacktrace file: chef-stacktrace.log
console log: console.log

Version of the suse machine:

vmtest@sofumsuse06:~> cat /etc/*release*
NAME="SLES"
VERSION="12-SP4"
VERSION_ID="12.4"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp4"
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4

Stackrace file also says:

STDOUT: Refreshing service 'SUSE_Linux_Enterprise_Server_12_SP4_x86_64'.
Loading repository data...
Reading installed packages...
'git=2.26.2-27.36.1' not found in package names. Trying capabilities.
STDERR: No provider of 'git=2.26.2-27.36.1' found.

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 reading libraries/provider_git_client_package.rb and recipes/package.rb, then reproduce recipe[git] on SLES 12.4 with the package command shown in the report. Trace how the git package version reaches zypper and verify the recipe completes successfully without the reported provider error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, linux, ruby
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.