Knife vsphere bootstrap problem in CHEF 11.4.0 environment


#1

Hello all,

I’ve a problem with “knife vsphere” in a chef 11.4.0 environment.

When creating, starting and bootstrapping a VM with “knife vsphere”, through
the following command :

knife vsphere vm clone “testknife” --template “Ubuntu Server 12.04
11_02_2013” -f “Modèles” --resource-pool “epsilon.jalios.net” --ssh-user
"" --ssh-password "" --cips 192.168.0.230/24 --cgw 192.168.0.253
–chostname testknife --cdnsips 192.168.x.x --cvlan “Reseau local”
–cdnssuffix jalios.net –start –bootstrap –fqdn serveurchef.jalios.net

Everything goes fine until bootstrapping :




serveurchef.jalios.net Impossible de trouver le paquet libruby-extras

serveurchef.jalios.net

serveurchef.jalios.net E

serveurchef.jalios.net :

serveurchef.jalios.net Impossible de trouver le paquet libruby1.8-extras

serveurchef.jalios.net

serveurchef.jalios.net E

serveurchef.jalios.net :

serveurchef.jalios.net Impossible de trouver de paquet correspondant à
l’expression rationnelle « libruby1.8-extras »

serveurchef.jalios.net

serveurchef.jalios.net --2013-04-04 16:16:26–
http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz

serveurchef.jalios.net

serveurchef.jalios.net Résolution de production.cf.rubygems.org
(production.cf.rubygems.org)…

serveurchef.jalios.net 54.239.158.119, 54.239.158.151, 54.239.158.155, …

serveurchef.jalios.net Connexion vers production.cf.rubygems.org
(production.cf.rubygems.org)|54.239.158.119|:80…

serveurchef.jalios.net connecté.

serveurchef.jalios.net requête HTTP transmise, en attente de la réponse…

serveurchef.jalios.net 200 OK

serveurchef.jalios.net Longueur: 242518 (237K) [binary/octet-stream]

serveurchef.jalios.net Sauvegarde en : «STDOUT»

serveurchef.jalios.net

0% [ ] 0 --.-K/s

serveurchef.jalios.net

serveurchef.jalios.net 44% [================> ] 106 864
520K/s

serveurchef.jalios.net

serveurchef.jalios.net 100%[======================================>] 242 518
885K/s ds 0,3s

serveurchef.jalios.net

serveurchef.jalios.net

serveurchef.jalios.net 2013-04-04 16:16:27 (885 KB/s) - envoi vers sortie
standard [242518/242518]

serveurchef.jalios.net

serveurchef.jalios.net

serveurchef.jalios.net bash: ligne 6: ruby : commande introuvable

serveurchef.jalios.net

serveurchef.jalios.net bash: ligne 9: gem : commande introuvable

serveurchef.jalios.net

serveurchef.jalios.net bash: ligne 10: gem : commande introuvable

serveurchef.jalios.net

serveurchef.jalios.net bash: ligne 11: gem : commande introuvable

serveurchef.jalios.net

serveurchef.jalios.net bash: ligne 62: chef-client : commande introuvable




If I don’t bootstrap the VM with “knife vsphere”, though, but through a
regular “knife bootstrap” command, everything goes fine :




192.168.0.230 Dépaquetage de chef (à partir de …/chef_11.4.0_amd64.deb)

192.168.0.230

192.168.0.230 Paramétrage de chef (11.4.0-1.ubuntu.11.04) …

192.168.0.230

192.168.0.230 Thank you for installing Chef!

192.168.0.230

192.168.0.230 Starting Chef Client, version 11.4.0

192.168.0.230

192.168.0.230 Creating a new client identity for testknife using the
validator key.




Any hint ? Thanks in advance.

Regards,

Philippe Bérard
Administrateur Systèmes

Tel : +33 (0)1 39 23 31 17
Mob : +33 (0)6 01 27 87 86
Fax : +33 (0)1 39 55 47 56

58, Rue Pottier
78150 Le Chesnay
http://www.jalios.com/ www.jalios.com

JALIOS

P Afin de contribuer au respect de l’environnement, merci de n’imprimer ce
message qu’en cas de nécessité.


#2

On Friday, April 5, 2013 at 12:41 AM, Philippe Bérard wrote:

Hello all,

I’ve a problem with “knife vsphere” in a chef 11.4.0 environment.

When creating, starting and bootstrapping a VM with “knife vsphere”, through the following command :
knife vsphere vm clone “testknife” --template “Ubuntu Server 12.04 11_02_2013” -f “Modèles” --resource-pool “epsilon.jalios.net (http://epsilon.jalios.net)” --ssh-user “" --ssh-password "” --cips 192.168.0.230/24 --cgw 192.168.0.253 --chostname testknife --cdnsips 192.168.x.x --cvlan “Reseau local” --cdnssuffix jalios.net (http://jalios.net) –start –bootstrap –fqdn serveurchef.jalios.net (http://serveurchef.jalios.net)

In this command, you’re specifying a bootstrap template, which appears to be installing ruby from packages and then installing ruby gems from source.

Everything goes fine until bootstrapping :

serveurchef.jalios.net (http://serveurchef.jalios.net) Impossible de trouver le paquet libruby-extras
serveurchef.jalios.net (http://serveurchef.jalios.net)
serveurchef.jalios.net (http://serveurchef.jalios.net) E
serveurchef.jalios.net (http://serveurchef.jalios.net) :
serveurchef.jalios.net (http://serveurchef.jalios.net) Impossible de trouver le paquet libruby1.8-extras

If I don’t bootstrap the VM with “knife vsphere”, though, but through a regular “knife bootstrap” command, everything goes fine :


192.168.0.230 Dépaquetage de chef (à partir de …/chef_11.4.0_amd64.deb) …
192.168.0.230
192.168.0.230 Paramétrage de chef (11.4.0-1.ubuntu.11.04) …
192.168.0.230
192.168.0.230 Thank you for installing Chef!

This is the default bootstrap template that uses https://www.opscode.com/chef/install.sh to install the omnibus packages.


Daniel DeLeo


#3

you could try adding --distro chef-full ? maybe knife vsphere is overriding
the default bootstrap template

On Fri, Apr 5, 2013 at 10:57 AM, Daniel DeLeo dan@kallistec.com wrote:

On Friday, April 5, 2013 at 12:41 AM, Philippe Bérard wrote:

Hello all,****


I’ve a problem with “knife vsphere” in a chef 11.4.0 environment.****


When creating, starting and bootstrapping a VM with “knife vsphere”,
through the following command :****

knife vsphere vm clone “testknife” --template “Ubuntu Server 12.04
11_02_2013” -f “Modèles” --resource-pool “epsilon.jalios.net” --ssh-user
"" --ssh-password "" --cips 192.168.0.230/24 --cgw
192.168.0.253 --chostname testknife --cdnsips 192.168.x.x --cvlan “Reseau
local” --cdnssuffix jalios.net –start –bootstrap –fqdn
serveurchef.jalios.net****

In this command, you’re specifying a bootstrap template, which appears to
be installing ruby from packages and then installing ruby gems from source.

Everything goes fine until bootstrapping :****



serveurchef.jalios.net Impossible de trouver le paquet libruby-extras****

serveurchef.jalios.net****

serveurchef.jalios.net E****

serveurchef.jalios.net :****

serveurchef.jalios.net Impossible de trouver le paquet libruby1.8-extras




If I don’t bootstrap the VM with “knife vsphere”, though, but through a
regular “knife bootstrap” command, everything goes fine :****




192.168.0.230 Dépaquetage de chef (à partir de …/chef_11.4.0_amd64.deb)
…****

192.168.0.230****

192.168.0.230 Paramétrage de chef (11.4.0-1.ubuntu.11.04) …****

192.168.0.230****

192.168.0.230 Thank you for installing Chef!

This is the default bootstrap template that uses
https://www.opscode.com/chef/install.sh to install the omnibus packages.


Daniel DeLeo


#4

Thanks Jesse, it works when adding this option !

Regards,

– Philippe Bérard

De : Jesse Campbell [mailto:hikeit@gmail.com]
Envoyé : vendredi 5 avril 2013 21:45
À : chef
Objet : [chef] Re: Re: knife vsphere bootstrap problem in CHEF 11.4.0
environment

you could try adding --distro chef-full ? maybe knife vsphere is overriding
the default bootstrap template

On Fri, Apr 5, 2013 at 10:57 AM, Daniel DeLeo dan@kallistec.com wrote:

On Friday, April 5, 2013 at 12:41 AM, Philippe Bérard wrote:

Hello all,

I’ve a problem with “knife vsphere” in a chef 11.4.0 environment.

When creating, starting and bootstrapping a VM with “knife vsphere”, through
the following command :

knife vsphere vm clone “testknife” --template “Ubuntu Server 12.04
11_02_2013” -f “Modèles” --resource-pool “epsilon.jalios.net” --ssh-user
"" --ssh-password "" --cips 192.168.0.230/24 --cgw 192.168.0.253
–chostname testknife --cdnsips 192.168.x.x --cvlan “Reseau local”
–cdnssuffix jalios.net –start –bootstrap –fqdn serveurchef.jalios.net

In this command, you’re specifying a bootstrap template, which appears to be
installing ruby from packages and then installing ruby gems from source.

Everything goes fine until bootstrapping :




serveurchef.jalios.net Impossible de trouver le paquet libruby-extras

serveurchef.jalios.net

serveurchef.jalios.net E

serveurchef.jalios.net :

serveurchef.jalios.net Impossible de trouver le paquet libruby1.8-extras




If I don’t bootstrap the VM with “knife vsphere”, though, but through a
regular “knife bootstrap” command, everything goes fine :




192.168.0.230 Dépaquetage de chef (à partir de …/chef_11.4.0_amd64.deb)

192.168.0.230

192.168.0.230 Paramétrage de chef (11.4.0-1.ubuntu.11.04) …

192.168.0.230

192.168.0.230 Thank you for installing Chef!

This is the default bootstrap template that uses
https://www.opscode.com/chef/install.sh to install the omnibus packages.

Daniel DeLeo