Git Product home page Git Product logo

kitchen-lxc's People

Contributors

bryanwb avatar chrisroberts avatar fnichol avatar portertech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kitchen-lxc's Issues

kitchen test hangs on or before converge with kitchen-lxc

Unfortunately, when I am running test kitchen with kitchen-lxc, my node never converges. The host is an esx guest, but I'm able to connect to the LXC and have an apparently functional container with networking and everything if I log in with lxc-console. This is as far as "kitchen test" gets:

root@vagrant-01:~/chef-prod/cookbooks# bundle exec kitchen test
-----> Starting Kitchen (v1.0.0.alpha.7)
-----> Cleaning up any prior instances of
-----> Destroying
[kitchen::driver::lxc command] BEGIN (lxc-awesome-ephemeral -c -o ubuntu_1204 -n default-ubuntu-1204-34bbf9)
[kitchen::driver::lxc command] END (0m2.20s)
Finished destroying (0m2.31s).
-----> Testing
-----> Creating
[kitchen::driver::lxc command] BEGIN (lxc-awesome-ephemeral -d -o ubuntu_1204 -n default-ubuntu-1204-d44656)
Setting up ephemeral container...
Starting up the container...
default-ubuntu-1204-d44656 is running
You connect with the command:
sudo lxc-console -n default-ubuntu-1204-d44656
[kitchen::driver::lxc command] END (0m1.33s)
Finished creating (0m1.41s).
-----> Converging
[sudo] password for ubuntu: *************

Kitchen test failing

I am getting following error when i try to run kitchen test.

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [private method `config' called for #<Kitchen::Driver::Lxc:0x00000001982488>]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

This is my .kitchen.yml file


---
driver:
  name: lxc

provisioner:
  name: chef_solo

platforms:
  - name: ubuntu

suites:
  - name: default
    run_list:
    attributes:

lxc-awesome-ephemeral does not appear to work?

As I use the hw-cookbooks/lxc cookbook for our lxc server I'm confident that the lxc-awesome-ephemeral command works. But not with the kitchen-lxc driver?

Any information that can help me resolve this would be great? thanks!

-----> Starting Kitchen
-----> Cleaning up any prior instances of <default-precise>
-----> Destroying <default-precise>
       [kitchen::driver::lxc command] BEGIN (sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b)
       usage: lxc-awesome-ephemeral [-D size] [-z rdir] [-U uniontype] [-d|--daemon] [-h] [-b bdir] [-u user] [-S key] -o orig
-- [COMMAND [ARGS...]]
       [kitchen::driver::lxc command] END (0m0.01s)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #destroy action: [Expected process to exit with [0], but received '1'
---- Begin output of sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b ----
STDOUT: usage: lxc-awesome-ephemeral [-D size] [-z rdir] [-U uniontype] [-d|--daemon] [-h] [-b bdir] [-u user] [-S key] -o orig
 -- [COMMAND [ARGS...]]
STDERR: getopt: invalid option -- 'c'
getopt: invalid option -- 'n'
---- End output of sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b ----
Ran sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details

D      ------Exception-------
D      Class: Kitchen::ActionFailed
D      Message: Failed to complete #destroy action: [Expected process to exit with [0], but received '1'
---- Begin output of sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b ----
STDOUT: usage: lxc-awesome-ephemeral [-D size] [-z rdir] [-U uniontype] [-d|--daemon] [-h] [-b bdir] [-u user] [-S key] -o orig
 -- [COMMAND [ARGS...]]
STDERR: getopt: invalid option -- 'c'
getopt: invalid option -- 'n'
---- End output of sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b ----
Ran sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b returned 1]
D      ---Nested Exception---
D      Class: Kitchen::ShellOut::ShellCommandFailed
D      Message: Expected process to exit with [0], but received '1'
---- Begin output of sudo lxc-awesome-ephemeral -c -o precise-testing -n default-precise-f54c4b ----
STDOUT: usage: lxc-awesome-ephemeral [-D size] [-z rdir] [-U uniontype] [-d|--daemon] [-h] [-b bdir] [-u user] [-S key] -o orig
 -- [COMMAND [ARGS...]]
STDERR: getopt: invalid option -- 'c'
getopt: invalid option -- 'n'```

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.