Skip to content

Instantly share code, notes, and snippets.

@jcderose
jcderose / gist:0b1c8e27f6a2d2a49fb5
Created May 27, 2015 23:09
kitchen diagnose --all for kitchen-ec2 Issue #127
---
timestamp: 2015-05-27 23:07:46 UTC
kitchen_version: 1.4.0
plugins:
driver:
Ec2:
class: Kitchen::Driver::Ec2
version: 0.9.1
api_version: 2
provisioner:
@jcderose
jcderose / gist:00e612d024232e9e7e7f
Last active August 29, 2015 14:22
kitchen create -l debug for kitchen-ec2 issue #135
➜ kitchen create -l debug
-----> Starting Kitchen (v1.4.0)
-----> Creating <default-amazon>...
Creating <>...
If you are not using an account that qualifies under the AWS
free-tier, you may be charged to run these suites. The charge
should be minimal, but neither Test Kitchen nor its maintainers
are responsible for your incurred costs.
D Creating EC2 Instance..
@jcderose
jcderose / gist:e49afbafa938350e7f19
Created July 7, 2015 20:45
kitchen-ec2 Can't SSH Into Instance
➜ bundle update
Updating https://github.com/test-kitchen/test-kitchen
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using multi_json 1.11.2
Using jmespath 1.0.2
Using aws-sdk-core 2.1.3
Using aws-sdk-resources 2.1.3
source "https://supermarket.chef.io"
cookbook 'opsworks_initial_setup', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'opsworks_initial_setup'
cookbook 'ssh_host_keys', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'ssh_host_keys'
cookbook 'ssh_users', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'ssh_users'
cookbook 'mysql', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'mysql'
cookbook 'dependencies', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'dependencies'
cookbook 'ebs', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'ebs'
cookbook 'opsworks_ganglia', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "release-chef-11.10", rel: 'opsworks_ganglia'
cookbook 'agent_version', git: "https://github.com/aws/opsworks-cookbooks.git", branch: "re
@jcderose
jcderose / gist:0f589b36aad50c05d737
Created July 28, 2015 22:29
Chef::Provider::Package::Rubygems::CurrentGemEnvironment::Bundler Error
Compiling Cookbooks...
Recipe: aws::default
* chef_gem[aws-sdk] action install
================================================================================
Error executing action `install` on resource 'chef_gem[aws-sdk]'
================================================================================
NameError
---------
uninitialized constant Chef::Provider::Package::Rubygems::CurrentGemEnvironment::Bundler
@jcderose
jcderose / gist:cdcb104eb81f43d90a96
Created October 13, 2015 15:52
python_pip[graphicsmagick-engine] Dependency Fails on Ubuntu 12.04
➜ chef git:(refactor) ✗ kitchen converge image-processor-ubuntu-1204
-----> Starting Kitchen (v1.4.2)
-----> Converging <image-processor-ubuntu-1204>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.3.0...
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Installing Chef Omnibus (11.10.4)
Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh
ubuntu@ip-10-0-0-94:~$ sudo apt-get install nginx-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.2.0-77 linux-headers-3.2.0-77-virtual
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
nginx-common
The following NEW packages will be installed:
jesse@kijimunaa:~$ sudo apt-get remove nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx
0 upgraded, 0 newly installed, 1 to remove and 94 not upgraded.
After this operation, 89.1 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 133278 files and directories currently installed.)
jesse@kijimunaa:~$ dpkg -S /usr/sbin/nginx
nginx-full: /usr/sbin/nginx
jesse@kijimunaa:~$ apt-cache policy nginx
nginx:
Installed: 1.1.19-1ubuntu0.8+tracelytics20
Candidate: 1.1.19-1ubuntu0.8+tracelytics20
Version table:
*** 1.1.19-1ubuntu0.8+tracelytics20 0
500 http://apt.appneta.com/7df95238-7dae-459d-8116-20a10e1383a3/ precise/main amd64 Packages
Recipe: ap-ops::default
* directory[/shares/wordpress] action create (up to date)
* bash[Sync WordPress content from S3 bucket] action run
================================================================================
Error executing action `run` on resource 'bash[Sync WordPress content from S3 bucket]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'