oracle-samples / knife-oci

Chef Knife Plugin for Oracle Cloud Infrastructure
https://cloud.oracle.com/cloud-infrastructure
Other
12 stars 15 forks source link

oci server create fails with chef-client: command not found #65

Open pvillavi opened 3 years ago

pvillavi commented 3 years ago

I'm testing the knife-oci with chef and running the following command:

knife oci server create \ --availability-domain 'OftQ:PHX-AD-1' \ --compartment-id 'ocid1.compartment.oc1..aaaaaaaag73qjz55rbb3szhladqcm5mhshvt3i6ldlhcp3bmnakykyn26ula' \ --image-id 'ocid1.image.oc1.phx.aaaaaaaa2o6pedsahmakjfcrzy3yyh2ju4zuuusxzgwdnr7pozqeqb6fp3jq' \ --shape 'VM.Standard1.1' \ --ssh-authorized-keys-file ~/keys/id_rsa.pub \ --display-name cocinero \ --identity-file ~/keys/id_rsa \ --region us-phoenix-1 \ --subnet-id 'ocid1.subnet.oc1.phx.aaaaaaaazcxsy67n3fprlmpotvwk6awhvlxrbr5dpufck2zqvy7cu7sgi2ta' \ -c ~/.chef/config.rb \ -N ChefKnifeServer

But I'm getting the following:

Waiting for instance to reach running state.................done Instance 'cocinero' is now running. Waiting for ssh access.......done Bootstrapping with node name 'ChefKnifeServer'. Connecting to 130.35.248.XX using ssh Connecting to 130.35.248.XX using ssh Creating new client for ChefKnifeServer Creating new node for ChefKnifeServer Bootstrapping 130.35.248.XX [130.35.248.67] -----> Installing Chef Omnibus (/latest) [130.35.248.67] downloading https://omnitruck.chef.io/chef/install.sh to file /tmp/install.sh.6427/install.sh [130.35.248.67] trying wget... [130.35.248.67] el 8 x86_64 [130.35.248.67] Getting information for -c stable latest for el... [130.35.248.67] downloading https://omnitruck.chef.io/stable/-c/metadata?v=latest&p=el&pv=8&m=x86_64 to file /tmp/install.sh.6432/metadata.txt [130.35.248.67] trying wget... [130.35.248.67] trying curl... [130.35.248.67] Parameter must be within ["analytics", "angry-omnibus-toolchain", "angrychef", "automate", "chef", "chef-backend", "chef-server", "chef-server-ha-provisioning", "chef-workstation", "chefdk", "compliance", "delivery", "ha", "harmony", "inspec", "mac-bootstrapper", "manage", "marketplace", "omnibus-toolchain", "omnibus-gcc", "private-chef", "push-jobs-client", "push-jobs-server", "reporting", "supermarket", "sync"] [130.35.248.67] [130.35.248.67] downloaded metadata file is corrupted or an uncaught error was encountered in downloading the file... [130.35.248.67] Version: latest

Please file a Bug Report at https://github.com/chef/omnitruck/issues/new [130.35.248.67] Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets [130.35.248.67] More Chef support resources can be found at https://www.chef.io/support

[130.35.248.67] Please include as many details about the problem as possible i.e., how to reproduce the problem (if possible), type of the Operating System and its version, etc., [130.35.248.67] and any other relevant details that might help us with troubleshooting.

[130.35.248.67] Starting the first Chef Infra Client Client run... [130.35.248.67] /tmp/chef_myY9It/bootstrap.sh: line 233: chef-client: command not found ERROR: The following error occurred on 130.35.248.XX: ERROR: /tmp/chef_myY9It/bootstrap.sh: line 233: chef-client: command not found

Chef versions are:

vagrant@ubuntu:~$ chef --version ChefDK version: 4.13.3 Chef Infra Client version: 15.14.0 Chef InSpec version: 4.24.8 Test Kitchen version: 2.8.0 Foodcritic version: 16.3.0 Cookstyle version: 5.23.0

vagrant@ubuntu:~$ knife oci ad list --version Chef Infra Client: 15.14.0

If i run a knife bootstrap to the same host it works fine...