[chef] Re: Re: Chef-Provisioning (using vagrant)


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Re: Re: Chef-Provisioning (using vagrant)
  • Date: Thu, 4 Dec 2014 02:02:56 -0800 (PST)


Hi John,

The previous errors encountered while booting up the vm provisioned with a
precise64 box were seen to be resolved with the usage of precise32 and lucid32
boxes.
With these two boxes the provisioned vms are in the state running, however
timeout issues are seen, as seen in the logs below:

:~/.chef/vms#
 chef-client -z -o test
[2014-12-04T14:56:24+05:30] INFO: Starting chef-zero on port 8889 with
repository at repository at /opt/chef/chef-repo
  One version per cookbook

[2014-12-04T14:56:24+05:30] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.8.2
[2014-12-04T14:56:24+05:30] INFO: *** Chef 11.8.2 ***
[2014-12-04T14:56:24+05:30] INFO: Chef-client pid: 5972
[2014-12-04T14:56:25+05:30] WARN: Run List override has been provided.
[2014-12-04T14:56:25+05:30] WARN: Original Run List: []
[2014-12-04T14:56:25+05:30] WARN: Overridden Run List: [recipe[test]]
[2014-12-04T14:56:25+05:30] INFO: Run List is [recipe[test]]
[2014-12-04T14:56:25+05:30] INFO: Run List expands to [test]
[2014-12-04T14:56:25+05:30] INFO: Starting Chef Run for root
[2014-12-04T14:56:25+05:30] INFO: Running start handlers
[2014-12-04T14:56:25+05:30] INFO: Start handlers complete.
[2014-12-04T14:56:25+05:30] INFO: HTTP Request Returned 404 Not Found: Object
not found: /reports/nodes/root/runs
resolving cookbooks for run list: ["test"]
[2014-12-04T14:56:25+05:30] INFO: Loading cookbooks [test]
Synchronizing Cookbooks:
[2014-12-04T14:56:25+05:30] INFO: Storing updated
cookbooks/test/recipes/default.rb in the cache.
  - test
Compiling Cookbooks...
Converging 2 resources
Recipe: test::default
  * vagrant_box[precise32] action create[2014-12-04T14:56:26+05:30] INFO:
Processing vagrant_box[precise32] action create (test::default line 13)

    - run 'vagrant box add precise32 http://files.vagrantup.com/precise32.box'

  * machine[precise32testNew] action converge[2014-12-04T14:56:45+05:30] INFO:
Processing machine[precise32testNew] action converge (test::default line 34)
[2014-12-04T14:56:45+05:30] INFO: HTTP Request Returned 404 Not Found: Object
not found: http://127.0.0.1:8889/nodes/precise32testNew
[2014-12-04T14:56:45+05:30] INFO: Processing vagrant_cluster[/root/.chef/vms]
action create (basic_chef_client::block line 212)
[2014-12-04T14:56:45+05:30] INFO: Processing directory[/root/.chef/vms] action
create (basic_chef_client::block line 15)
[2014-12-04T14:56:45+05:30] INFO: Processing file[/root/.chef/vms/Vagrantfile]
action create (basic_chef_client::block line 16)
[2014-12-04T14:56:45+05:30] INFO: file[/root/.chef/vms/Vagrantfile] created
file /root/.chef/vms/Vagrantfile

    - create new file /root/.chef/vms/Vagrantfile[2014-12-04T14:56:45+05:30]
INFO: file[/root/.chef/vms/Vagrantfile] updated file contents
/root/.chef/vms/Vagrantfile

    - update content in file /root/.chef/vms/Vagrantfile from none to 052d66
    - --- /root/.chef/vms/Vagrantfile   2014-12-04 14:56:45.336850297 +0530
    - +++ /tmp/.Vagrantfile20141204-5972-bn18gc 2014-12-04 14:56:45.340850296
+0530
    - @@ -1 +1,4 @@
    - +Dir.glob('/root/.chef/vms/*.vm') do |vm_file|
    - +  eval(IO.read(vm_file), nil, vm_file)
    - +end[2014-12-04T14:56:45+05:30] INFO: Processing
file[/root/.chef/vms/precise32testNew.vm] action create
(basic_chef_client::block line 232)
[2014-12-04T14:56:45+05:30] INFO: file[/root/.chef/vms/precise32testNew.vm]
created file /root/.chef/vms/precise32testNew.vm

    - create new file
/root/.chef/vms/precise32testNew.vm[2014-12-04T14:56:45+05:30] INFO:
file[/root/.chef/vms/precise32testNew.vm] updated file contents
/root/.chef/vms/precise32testNew.vm

    - update content in file /root/.chef/vms/precise32testNew.vm from none to
62b65b
    - --- /root/.chef/vms/precise32testNew.vm   2014-12-04 14:56:45.344850296
+0530
    - +++ /tmp/.precise32testNew.vm20141204-5972-czuqtz 2014-12-04
14:56:45.348850297 +0530
    - @@ -1 +1,7 @@
    - +Vagrant.configure('2') do |outer_config|
    - +  outer_config.vm.define "precise32testNew" do |config|
    - +    config.vm.box = "precise32"
    - +    config.vm.hostname = "precise32testNew"
    - +  end
    - +end[2014-12-04T14:56:45+05:30] INFO: Processing
chef_node[precise32testNew] action create (basic_chef_client::block line 65)
[2014-12-04T14:56:45+05:30] INFO: HTTP Request Returned 404 Not Found: Object
not found: http://127.0.0.1:8889/nodes/precise32testNew

    - create node precise32testNew at http://127.0.0.1:8889
    -   add normal.tags = ["itsa_me"]
    -   add normal.chef_provisioning =
{"location"=>{"driver_url"=>"vagrant:/root/.chef/vms",
"driver_version"=>"0.8.1", "vm_name"=>"precise32testNew",
"vm_file_path"=>"/root/.chef/vms/precise32testNew.vm",
"allocated_at"=>"2014-12-04 09:26:45 UTC",
"host_node"=>"http://127.0.0.1:8889/nodes/", "needs_reload"=>true}}
    - run vagrant up precise32testNew (status was 'not
created')[2014-12-04T14:58:42+05:30] INFO: Processing
chef_node[precise32testNew] action create (basic_chef_client::block line 65)

    - update node precise32testNew at http://127.0.0.1:8889
    -   update normal.chef_provisioning.location.needs_reload from true to
false
    -   add normal.chef_provisioning.location.forwarded_ports =
{}[2014-12-04T14:58:42+05:30] INFO: Executing sudo cp /etc/chef/client.pem
/tmp/client.pem.1008072653 on 

[2014-12-04T14:58:43+05:30] INFO: Completed cp /etc/chef/client.pem
/tmp/client.pem.1008072653 on 
:
 exit status 1
[2014-12-04T14:58:43+05:30] ERROR: Unable to download /etc/chef/client.pem to
#<StringIO:0x00000002d9eef8> on 

 -- Error: command 'cp
/etc/chef/client.pem /tmp/client.pem.1008072653' exited with code 1.

[2014-12-04T14:58:43+05:30] INFO: Executing sudo rm /tmp/client.pem.1008072653
on 

[2014-12-04T14:58:43+05:30] INFO: Completed rm /tmp/client.pem.1008072653 on
:
 exit status 1
[2014-12-04T14:58:43+05:30] WARN: Unable to clean up 
/tmp/client.pem.1008072653
on 

 -- Error: command 'rm /tmp/client.pem.1008072653' exited
with code 1.

[2014-12-04T14:58:43+05:30] INFO: Processing private_key[in_memory] action
create (basic_chef_client::block line 82)

    - generate private key (2048 bits)[2014-12-04T14:58:43+05:30] INFO:
Executing sudo ls -d /etc/chef/client.pem on 

[2014-12-04T14:58:43+05:30] INFO: Completed ls -d /etc/chef/client.pem on
:
 exit status 2
[2014-12-04T14:58:43+05:30] INFO: Executing sudo ls -d /etc/chef on

[2014-12-04T14:58:44+05:30] INFO: Completed ls -d /etc/chef on
:
 exit status 2
[2014-12-04T14:58:44+05:30] INFO: Executing sudo mkdir -p /etc/chef on

[2014-12-04T14:58:44+05:30] INFO: Completed mkdir -p /etc/chef on
:
 exit status 0

    - create directory /etc/chef on 
precise32testNew[2014-12-04T14:58:44+05:30]
INFO: Executing sudo mkdir -p /etc/chef on 

[2014-12-04T14:58:44+05:30] INFO: Completed mkdir -p /etc/chef on
:
 exit status 0
[2014-12-04T14:58:44+05:30] INFO: Executing sudo mv /tmp/client.pem.1399465155
/etc/chef/client.pem on 

[2014-12-04T14:58:44+05:30] INFO: Completed mv /tmp/client.pem.1399465155
/etc/chef/client.pem on 
:
 exit status 0

    - write file /etc/chef/client.pem on
precise32testNew[2014-12-04T14:58:44+05:30] INFO: Processing
chef_client[precise32testNew] action create (basic_chef_client::block line 
134)
[2014-12-04T14:58:44+05:30] INFO: HTTP Request Returned 404 Not Found: Object
not found: http://127.0.0.1:8889/clients/precise32testNew

    - create client precise32testNew at clients
    -   add public_key = "-----BEGIN PUBLIC
KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyAMaYu8Q/Z0bVlzBP2Fz\nHX0QUo3mOasB82Lwc7wsNanJ6oqCD2oMgwXOZvWKz1apKLcIFJb+ly1aSqBZJogV\ncLjlQgHKaobldWPRBCSC06kyj2LhAVmfZuNJ50v5yMxbCF4izl+rRXY+FycuGyhL\nLz0rGLeA1C7WX3ohYjjcXkC2wE90ciV5r2RVPiM+Qp7GeiRahBadaKkyUaDvCEUa\naU4OekG3tQ9rl96E0BIPu2isaxFWFTaCsyEh2SZRS6XneXRJ5D5wXFbR+AnHRRLY\nHqvuUUygtseJqkXWIKcqRIrqI+PZ3jherdFSPQuDQlRs0NaJ0sCix8vtBAC9sG2F\n1QIDAQAB\n-----END
PUBLIC KEY-----\n"[2014-12-04T14:58:44+05:30] INFO: Processing
chef_node[precise32testNew] action create (basic_chef_client::block line 145)
[2014-12-04T14:58:44+05:30] INFO: Port forwarded: local URL
http://127.0.0.1:8889 is available to 127.0.0.1 as http://127.0.0.1:8889 for
the duration of this SSH connection.
[2014-12-04T14:58:44+05:30] INFO: Executing sudo ls -d /etc/chef/client.rb on

[2014-12-04T14:58:45+05:30] INFO: Completed ls -d /etc/chef/client.rb on
:
 exit status 2
[2014-12-04T14:58:45+05:30] INFO: Executing sudo ls -d /etc/chef on

[2014-12-04T14:58:45+05:30] INFO: Completed ls -d /etc/chef on
:
 exit status 0
[2014-12-04T14:58:45+05:30] INFO: Executing sudo mkdir -p /etc/chef on

[2014-12-04T14:58:45+05:30] INFO: Completed mkdir -p /etc/chef on
:
 exit status 0
[2014-12-04T14:58:45+05:30] INFO: Executing sudo mv /tmp/client.rb.988918218
/etc/chef/client.rb on 

[2014-12-04T14:58:45+05:30] INFO: Completed mv /tmp/client.rb.988918218
/etc/chef/client.rb on 
:
 exit status 0

    - write file /etc/chef/client.rb on
precise32testNew[2014-12-04T14:58:45+05:30] INFO: Executing sudo chef-client 
-v
on 

[2014-12-04T14:58:45+05:30] INFO: Completed chef-client -v on
:
 exit status 1
[2014-12-04T14:58:45+05:30] INFO: Executing sudo ls -d /tmp/detect.sh on

[2014-12-04T14:58:46+05:30] INFO: Completed ls -d /tmp/detect.sh on
:
 exit status 2
[2014-12-04T14:58:46+05:30] INFO: Executing sudo mkdir -p /tmp on

[2014-12-04T14:58:46+05:30] INFO: Completed mkdir -p /tmp on 
:
exit status 0
[2014-12-04T14:58:46+05:30] INFO: Executing sudo mv /tmp/detect.sh.952438859
/tmp/detect.sh on 

[2014-12-04T14:58:46+05:30] INFO: Completed mv /tmp/detect.sh.952438859
/tmp/detect.sh on 
:
 exit status 0

    - write file /tmp/detect.sh on precise32testNew[2014-12-04T14:58:46+05:30]
INFO: Executing sudo sh /tmp/detect.sh on 

[2014-12-04T14:58:47+05:30] INFO: Completed sh /tmp/detect.sh on
:
 exit status 0

================================================================================
Error executing action `converge` on resource 'machine[precise32testNew]'
================================================================================


Errno::ETIMEDOUT
----------------
Error connecting to
https://www.opscode.com/chef/metadata?v=&prerelease=false&p=ubuntu&pv=12.04&m=i686
- Connection timed out - connect(2)


Resource Declaration:
---------------------
# In /root/.chef/local-mode-cache/cache/cookbooks/test/recipes/default.rb

 34: machine 'precise32testNew' do
 35: tag 'itsa_me'
 36: converge true
 37: end
 38:



Compiled Resource:
------------------
# Declared in
/root/.chef/local-mode-cache/cache/cookbooks/test/recipes/default.rb:34:in
`from_file'

machine("precise32testNew") do
  action :converge
  retries 0
  retry_delay 2
  chef_server {:chef_server_url=>"http://127.0.0.1:8889";,
:options=>{:client_name=>"root",
:signing_key_filename=>"/root/.chef/root.pem"}}
  driver "vagrant"
  machine_options {:vagrant_options=>{"vm.box"=>"precise32"}}
  cookbook_name "test"
  recipe_name "default"
  attribute_modifiers [["tags",
#<Proc:0x00000002be7d58@/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/cheffish-0.9/lib/cheffish.rb:149>]]
  converge true
end



[2014-12-04T14:59:50+05:30] INFO: Running queued delayed notifications before
re-raising exception
[2014-12-04T14:59:50+05:30] ERROR: Running exception handlers
[2014-12-04T14:59:50+05:30] ERROR: Exception handlers complete
[2014-12-04T14:59:50+05:30] FATAL: Stacktrace dumped to
/root/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 1 resources updated
[2014-12-04T14:59:50+05:30] ERROR: machine[precise32testNew] (test::default
line 34) had an error: Errno::ETIMEDOUT: Error connecting to
https://www.opscode.com/chef/metadata?v=&prerelease=false&p=ubuntu&pv=12.04&m=i686
- Connection timed out - connect(2)
[2014-12-04T14:59:50+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)














-Preeti
====================================================

Hi John,

I tried it for two machines, both gave the same error.
The output of  vagrant status or vagrant up commands from /root/.chef/vms is 
as
follows:

:~/.chef/vms#
 vagrant status Current machine states:

PRKH23                    poweroff (virtualbox)
mario                     poweroff (virtualbox)

This environment represents multiple VMs. The VMs are all listed above with
their current state. For more information about a specific VM, run `vagrant
status NAME`.


:~/.chef/vms#
 vagrant up PRKH23 Bringing machine 'PRKH23' up with
'virtualbox' provider...
==> PRKH23: Clearing any previously set forwarded ports...
==> PRKH23: Clearing any previously set network interfaces...
==> PRKH23: Preparing network interfaces based on configuration...
    PRKH23: Adapter 1: nat
==> PRKH23: Forwarding ports...
    PRKH23: 22 => 2222 (adapter 1)
==> PRKH23: Booting VM...
==> PRKH23: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it to boot. Valid
states are 'starting, running'. The machine is in the 'poweroff' state. Please
verify everything is configured properly and try again.

If the provider you're using has a GUI that comes with it, it is often helpful
to open that and watch the machine, since the GUI often has more helpful error
messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox
GUI is open.


========================================================
Weird.  Does this happen consistently?  What you might do is go to
/root/.chef/vms and try to do a vagrant status or vagrant up from there ...

On Tue, Dec 2, 2014 at 3:39 AM, < " target="_blank">
>
 wrote:


    Hi,

    I am trying to provision VMs using Chef “machine” resource and Vagrant
by
    following steps described in links below
    https://github.com/opscode/chef-provisioning
   
http://stackoverflow.com/questions/24655092/can-you-mix-chef-zero-chef-metal-chef-metal-vagrant-vagrant-and-berkshelf

    Environment: Ubuntu 12.10 (This VM is behind a proxy)

    Steps:
    1.      Installed chef-server (11.1.0) and chef-client (11.8.2 ) on the 
VM.
    Configured knife.
    2.      Installed chef-provisioning and chef-provisioning-vagrant gems.
    3.      Installed vagrant (Vagrant 1.6.4) and Virtualbox
(4.1.12_Ubuntur77245)
    4.      Added a vagrant box
    
:/opt#
 vagrant box list
    precise64 (virtualbox, 0)
                    (  Note : precise64 box was added by executing the command
    “vagrant box add precise64 http://files.vagrantup.com/precise64.box” ;)
    5.      Exported proxy settings
    6.      Exported CHEF_DRIVER (export CHEF_DRIVER=vagrant)
    7.      Created a cookbook ‘test’
    8.      Contents of the default.rb file of the ‘test’ cookbook:

    require 'chef/provisioning'
    require 'chef/provisioning/vagrant_driver'

    with_machine_options :vagrant_options => {
       'vm.box' => 'precise64'
    }

    machine 'PRKH23' do
    tag 'itsa_me'
    converge true
    end

    9.      Ran the recipe with the command:
    chef-client -z -o test

    10.     Complete Output Log:
    
:/opt/chef/chef-repo/cookbooks/test/recipes#
 chef-client -z -o
test
    [2014-12-02T14:59:41+05:30] INFO: Starting chef-zero on port 8889 with
    repository at repository at /opt/chef/chef-repo
      One version per cookbook

    [2014-12-02T14:59:41+05:30] INFO: Forking chef instance to converge...
    Starting Chef Client, version 11.8.2
    [2014-12-02T14:59:41+05:30] INFO: *** Chef 11.8.2 ***
    [2014-12-02T14:59:41+05:30] INFO: Chef-client pid: 26262
    [2014-12-02T14:59:43+05:30] WARN: Run List override has been provided.
    [2014-12-02T14:59:43+05:30] WARN: Original Run List: []
    [2014-12-02T14:59:43+05:30] WARN: Overridden Run List: [recipe[test]]
    [2014-12-02T14:59:43+05:30] INFO: Run List is [recipe[test]]
    [2014-12-02T14:59:43+05:30] INFO: Run List expands to [test]
    [2014-12-02T14:59:43+05:30] INFO: Starting Chef Run for root
    [2014-12-02T14:59:43+05:30] INFO: Running start handlers
    [2014-12-02T14:59:43+05:30] INFO: Start handlers complete.
    [2014-12-02T14:59:43+05:30] INFO: HTTP Request Returned 404 Not Found:
Object
    not found: /reports/nodes/root/runs
    resolving cookbooks for run list: ["test"]
    [2014-12-02T14:59:43+05:30] INFO: Loading cookbooks [test]
    Synchronizing Cookbooks:
    [2014-12-02T14:59:43+05:30] INFO: Storing updated
    cookbooks/test/recipes/default.rb in the cache.
      - test
    Compiling Cookbooks...
    Converging 1 resources
    Recipe: test::default
      * machine[PRKH23] action converge[2014-12-02T14:59:44+05:30] INFO:
Processing
    machine[PRKH23] action converge (test::default line 34)
    [2014-12-02T14:59:44+05:30] INFO: HTTP Request Returned 404 Not Found:
Object
    not found: http://127.0.0.1:8889/nodes/PRKH23
    [2014-12-02T14:59:44+05:30] INFO: Processing
vagrant_cluster[/root/.chef/vms]
    action create (basic_chef_client::block line 212)
    [2014-12-02T14:59:44+05:30] INFO: Processing directory[/root/.chef/vms]
action
    create (basic_chef_client::block line 15)
    [2014-12-02T14:59:44+05:30] INFO: Processing
file[/root/.chef/vms/Vagrantfile]
    action create (basic_chef_client::block line 16)
    [2014-12-02T14:59:44+05:30] INFO: Processing
file[/root/.chef/vms/PRKH23.vm]
    act                                             )
    [2014-12-02T14:59:44+05:30] INFO: file[/root/.chef/vms/PRKH23.vm] created
file
    /

        - create new file /root/.chef/vms/PRKH23.vm[2014-12-02T14:59:44+05:30]
    INFO:                                              contents
    /root/.chef/vms/PRKH23.vm

        - update content in file /root/.chef/vms/PRKH23.vm from none to a66a10
        - --- /root/.chef/vms/PRKH23.vm     2014-12-02 14:59:44.096619074 
+0530
        - +++ /tmp/.PRKH23.vm20141202-26262-f6i005  2014-12-02
14:59:44.096619074
    +0
        - @@ -1 +1,7 @@
        - +Vagrant.configure('2') do |outer_config|
        - +  outer_config.vm.define "PRKH23" do |config|
        - +    config.vm.box = "precise64"
        - +    config.vm.hostname = "PRKH23"
        - +  end
        - +end[2014-12-02T14:59:44+05:30] INFO: Processing chef_node[PRKH23]
action
    [2014-12-02T14:59:44+05:30] INFO: HTTP Request Returned 404 Not Found:
Object
    no

        - create node PRKH23 at http://127.0.0.1:8889
        -   add normal.tags = ["itsa_me"]
        -   add normal.chef_provisioning =
    {"location"=>{"driver_url"=>"vagrant:/roo
          name"=>"PRKH23", "vm_file_path"=>"/root/.chef/vms/PRKH23.vm",
    "allocated_at"=>"2
    /127.0.0.1:8889/nodes/", "needs_reload"=>true}}
   
================================================================================
    Error executing action `converge` on resource 'machine[PRKH23]'
   
================================================================================


    RuntimeError
    ------------
    vagrant up PRKH23 failed!
    STDOUT:Bringing machine 'PRKH23' up with 'virtualbox' provider...
    ==> PRKH23: Importing base box 'precise64'...
    ==> PRKH23: Matching MAC address for NAT networking...
    ==> PRKH23: Setting the name of the VM: vms_PRKH23_1417512603559_27719
    ==> PRKH23: Clearing any previously set network interfaces...
    ==> PRKH23: Preparing network interfaces based on configuration...
        PRKH23: Adapter 1: nat
    ==> PRKH23: Forwarding ports...
        PRKH23: 22 => 2222 (adapter 1)
    ==> PRKH23: Booting VM...
    ==> PRKH23: Waiting for machine to boot. This may take a few minutes...

    STDERR:The guest machine entered an invalid state while waiting for it
    to boot. Valid states are 'starting, running'. The machine is in the
    'poweroff' state. Please verify everything is configured
    properly and try again.

    If the provider you're using has a GUI that comes with it,
    it is often helpful to open that and watch the machine, since the
    GUI often has more helpful error messages than Vagrant can retrieve.
    For example, if you're using VirtualBox, run `vagrant up` while the
    VirtualBox GUI is open.



    Resource Declaration:
    ---------------------
    # In /root/.chef/local-mode-cache/cache/cookbooks/test/recipes/default.rb

    34: machine 'PRKH23' do
    35: tag 'itsa_me'
    36: converge true
    37: end
    38:



    Compiled Resource:
    ------------------
    # Declared in
    /root/.chef/local-mode-cache/cache/cookbooks/test/recipes/default.rb:34:in
    `from_file'

    machine("PRKH23") do
      action :converge
      retries 0
      retry_delay 2
      chef_server {:chef_server_url=>"http://127.0.0.1:8889";,
    :options=>{:client_name=>"root",
    :signing_key_filename=>"/root/.chef/root.pem"}}
      driver "vagrant"
      machine_options {:vagrant_options=>{"vm.box"=>"precise64"}}
      cookbook_name "test"
      recipe_name "default"
      attribute_modifiers [["tags",
   
#<Proc:0x0000000270f2e0@/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/cheffish-0.9/lib/cheffish.rb:149>]]
      converge true
    end



    [2014-12-02T15:00:13+05:30] INFO: Running queued delayed notifications
before
    re-raising exception
    [2014-12-02T15:00:13+05:30] ERROR: Running exception handlers
    [2014-12-02T15:00:13+05:30] ERROR: Exception handlers complete
    [2014-12-02T15:00:13+05:30] FATAL: Stacktrace dumped to
    /root/.chef/local-mode-cache/cache/chef-stacktrace.out
    Chef Client failed. 0 resources updated
    [2014-12-02T15:00:13+05:30] ERROR: machine[PRKH23] (test::default line 34)
had
    an error: RuntimeError: vagrant up PRKH23 failed!
    STDOUT:Bringing machine 'PRKH23' up with 'virtualbox' provider...
    ==> PRKH23: Importing base box 'precise64'...
    ==> PRKH23: Matching MAC address for NAT networking...
    ==> PRKH23: Setting the name of the VM: vms_PRKH23_1417512603559_27719
    ==> PRKH23: Clearing any previously set network interfaces...
    ==> PRKH23: Preparing network interfaces based on configuration...
        PRKH23: Adapter 1: nat
    ==> PRKH23: Forwarding ports...
        PRKH23: 22 => 2222 (adapter 1)
    ==> PRKH23: Booting VM...
    ==> PRKH23: Waiting for machine to boot. This may take a few minutes...

    STDERR:The guest machine entered an invalid state while waiting for it
    to boot. Valid states are 'starting, running'. The machine is in the
    'poweroff' state. Please verify everything is configured
    properly and try again.

    If the provider you're using has a GUI that comes with it,
    it is often helpful to open that and watch the machine, since the
    GUI often has more helpful error messages than Vagrant can retrieve.
    For example, if you're using VirtualBox, run `vagrant up` while the
    VirtualBox GUI is open.

    [2014-12-02T15:00:13+05:30] FATAL: Chef::Exceptions::ChildConvergeError:
Chef
    run process exited unsuccessfully (exit code 1)

    Any pointers on how to resolve this will be appreciated.

    Thanks,
    Preeti



Archive powered by MHonArc 2.6.16.

§