chrisroberts / kitchen-lxc Goto Github PK
View Code? Open in Web Editor NEWLXC driver for Test Kitchen
Home Page: http://rubygems.org/gems/kitchen-lxc
License: MIT License
LXC driver for Test Kitchen
Home Page: http://rubygems.org/gems/kitchen-lxc
License: MIT License
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: *************
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:
user error
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'```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.