chef / chef/mixlib-install

Chef-Client 15.8.23 - AIX - Cannot find chef-client

Open
#317 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
13
Forks
55
Avg merge
2d 15h
Merged PRs (30d)
8

Description

Description

When bootstrapping new AIX LPAR nodes, 15.8.23 is the defaulted client to bootstrap (I have a CB pinned @15.6) appears to install normally but bootstrap fails when starting Chef-Client.

If trying to verify client the below is received:
chef-client
ksh: chef-client: not found
chef
ksh: chef: cannot execute

Bootstrap Command..
knife bootstrap 10.xx.xx.xx -N hostname --sudo -U userid --policy-name cookbook_base --policy-group prd

Chef Version

15.8.23 is the boostrapped Chef-Client version
We use (pinned) Chef-Client 15.6
Chef-Infra: chef-server 13.1.13
Chef Wrkstn: 0.15.18

Platform Version

This client is bootstrapping AIX 7.1 or 7.2 nodes
Chef Infra runs on RHEL 7.5
CW is running from Win10

Replication Case

Client Output

Installing Chef Omnibus (stable/15)

downloading https://omnitruck.chef.io/chef/install.sh
to file /tmp/install.sh.31982016/install.sh
[10.xx.xx.xx] trying perl...

[10.xx.xx.xx] aix 7.2 powerpc
Getting information for chef stable 15 for aix...
downloading https://omnitruck.chef.io/stable/chef/metadata?v=15&p=aix&pv=7.2&m=powerpc
to file /tmp/install.sh.6684970/metadata.txt
[10.xx.xx.xx] trying perl...
[10.xx.xx.xx] sha1 6645e99a3cca27c920fb8e1e2c50326df733b08f
sha256 b22c1415d8f79150009af9782f11f575d49df8d0aad2857f6bdc1f349a2f3ef2
url https://packages.chef.io/files/stable/chef/15.8.23/aix/7.2/chef-15.8.23-1.powerpc.bff
version 15.8.23
[10.xx.xx.xx]
[10.xx.xx.xx] downloaded metadata file looks valid...
[10.xx.xx.xx] downloading https://packages.chef.io/files/stable/chef/15.8.23/aix/7.2/chef-15.8.23-1.powerpc.bff
to file /tmp/install.sh.6684970/chef-15.8.23-1.powerpc.bff
[10.xx.xx.xx] trying perl...

[10.xx.xx.xx] Comparing checksum with shasum...

[10.xx.xx.xx] Installing chef 15
installing with installp...
[10.xx.xx.xx] +-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
[10.xx.xx.xx] WARNINGS

Problems described in this section are not likely to be the source of any
immediate or serious failures, but further actions may be necessary or
desired.

Already Installed

The number of selected filesets that are either already installed
or effectively installed through superseding filesets is 1. See
the summaries at the end of this installation for details.

NOTE: Base level filesets may be reinstalled using the "Force"
option (-F flag), or they may be removed, using the deinstall or
"Remove Software Products" facility (-u flag), and then reinstalled.

<< End of Warning Section >>

[10.xx.xx.xx] Verifying req
uisites...done
Results...

+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
Pre-installation Failure/Warning Summary

Name Level Pre-installation Failure/Warning

chef 15.8.23.1 Already installed

[10.xx.xx.xx] Starting the first Chef Infra Client Client run...
[10.xx.xx.xx] /tmp/chef_Z6GhSS/bootstrap.sh[265]: chef-client: not found
ERROR: The following error occurred on 10.xx.xx.xx:
ERROR: +--------------------------------------------------
---------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

   +-----------------------------------------------------------------------------+
               BUILDDATE Verification ...
   +-----------------------------------------------------------------------------+
   Verifying build dates...done
   FILESET STATISTICS
   ------------------
       1  Selected to be installed, of which:
           1  Already installed (directly or via superseding filesets)
     ----
       0  Total to be installed


   Pre-installation Failure/Warning Summary
   ----------------------------------------
   Name                      Level           Pre-installation Failure/Warning
   ------------------------------------------------------------------

   chef                      15.8.23.1       Already installed

   /tmp/chef_Z6GhSS/bootstrap.sh[265]: chef-client:  not found



## Stacktrace
<!--- Please include the stacktrace.out output or link to a gist of it, if there is one. -->

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 with the AIX path exercised by the supplied knife bootstrap command and the referenced install.sh flow; verify how the 15.8.23 package is installed when AIX reports chef as already installed. The report names no repository file or test, so done means reproducing the failure and confirming that a bootstrapped AIX node can invoke chef-client.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, shell
Domain
devops, operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.