Giter Site home page Giter Site logo

boa-vagrant's Introduction

boa-vagrant's People

Contributors

lsolesen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boa-vagrant's Issues

SSH keys not being generated

The SSH-keys are not being created correctly. This happens because the BOA-user is not substituted correctly.

[2012-11-29T11:36:06+01:00] INFO: **\* Chef 10.14.2 *** [2012-11-29T11:36:06+01:00] INFO: Setting the run_list to ["recipe[barracuda]"] from JSON [2012-11-29T11:36:06+01:00] INFO: Run List is [recipe[barracuda]] [2012-11-29T11:36:06+01:00] INFO: Run List expands to [barracuda] [2012-11-29T11:36:06+01:00] INFO: Starting Chef Run for lucid64.hsd1.ca.comcast.net. [2012-11-29T11:36:06+01:00] INFO: Running start handlers [2012-11-29T11:36:06+01:00] INFO: Start handlers complete. [2012-11-29T11:36:06+01:00] INFO: Processing remote_file[/tmp/BOA.sh] action create (barracuda::default line 3) [2012-11-29T11:36:07+01:00] INFO: remote_file[/tmp/BOA.sh] updated [2012-11-29T11:36:07+01:00] INFO: remote_file[/tmp/BOA.sh] mode changed to 755 [2012-11-29T11:36:07+01:00] INFO: Processing execute[/tmp/BOA.sh] action run (barracuda::default line 8) [2012-11-29T11:36:09+01:00] INFO: execute[/tmp/BOA.sh] ran successfully [2012-11-29T11:36:09+01:00] INFO: Processing execute[Run the BOA Installer o1] action run (barracuda::default line 12) [2012-11-29T11:52:54+01:00] INFO: execute[Run the BOA Installer o1] ran successfully [2012-11-29T11:52:54+01:00] INFO: Processing execute[Run the BOA Installer o2] action run (barracuda::default line 16) [2012-11-29T12:11:38+01:00] INFO: execute[Run the BOA Installer o2] ran successfully [2012-11-29T12:11:38+01:00] INFO: Processing execute[Run the BOA Installer o3] action run (barracuda::default line 20) [2012-11-29T12:21:21+01:00] INFO: execute[Run the BOA Installer o3] ran successfully [2012-11-29T12:21:21+01:00] INFO: Processing user[o1] action create (barracuda::default line 26) [2012-11-29T12:21:21+01:00] INFO: user[o1] created [2012-11-29T12:21:21+01:00] INFO: Processing directory[/data/disk/o1/.ssh] action create (barracuda::default line 32) [2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] created directory /data/disk/o1/.ssh [2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] owner changed to 1001 [2012-11-29T12:21:21+01:00] INFO: directory[/data/disk/o1/.ssh] mode changed to 700 [2012-11-29T12:21:21+01:00] INFO: Processing execute[Add ssh key to user] action run (barracuda::default line 38) # # Error executing action `run` on resource 'execute[Add ssh key to user]' ## Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
STDOUT: Generating public/private rsa key pair.
Saving the key failed: /data/disk/o#{boa_user}/.ssh/id_rsa.
STDERR: open /data/disk/o#{boa_user}/.ssh/id_rsa failed: No such file or directory.
---- End output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
Ran ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa returned 1

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/barracuda/recipes/default.rb

37:
38: execute "Add ssh key to user" do
39: command 'ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa'
40: creates "/data/disk/o#{boa_user}/.ssh/id_rsa"
41: end
42:

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/barracuda/recipes/default.rb:38:in `from_file'

execute("Add ssh key to user") do
creates "/data/disk/o1/.ssh/id_rsa"
retry_delay 2
cookbook_name :barracuda
retries 0
action "run"
returns 0
command "ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa"
recipe_name "default"
backup 5
end

[2012-11-29T12:21:22+01:00] ERROR: Running exception handlers
[2012-11-29T12:21:22+01:00] ERROR: Exception handlers complete
[2012-11-29T12:21:23+01:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-11-29T12:21:23+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Add ssh key to user](barracuda::default line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
STDOUT: Generating public/private rsa key pair.
Saving the key failed: /data/disk/o#{boa_user}/.ssh/id_rsa.
STDERR: open /data/disk/o#{boa_user}/.ssh/id_rsa failed: No such file or directory.
---- End output of ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa ----
Ran ssh-keygen -b 4096 -t rsa -N "" -f /data/disk/o#{boa_user}/.ssh/id_rsa returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

ssh_known_hosts empty

Found ssh_known_hosts in the cookbook directory, but it contains no cookbook files. skipping

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.