Skip to content

Instantly share code, notes, and snippets.

@cap10morgan
Created May 2, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cap10morgan/4b278c9c4a809c9d741a to your computer and use it in GitHub Desktop.
Save cap10morgan/4b278c9c4a809c9d741a to your computer and use it in GitHub Desktop.
knife ec2 server create --region us-west-2 --availability-zone us-west-2a --subnet subnet-41be5024 --node-name docker1 --flavor c3.2xlarge --environment production --run-list 'role[docker]' --image ami-b6cca686 --ssh-key thill --identity-file ~/.ssh/thill-us-west-2.pem --security-group-ids sg-aaf70bcf --ssh-user ubuntu
Instance ID: i-9835d493
Flavor: c3.2xlarge
Image: ami-b6cca686
Region: us-west-2
Availability Zone: us-west-2a
Security Group Ids: sg-aaf70bcf
Tags: Name: docker1
SSH Key: thill
Waiting for instance...................
Subnet ID: subnet-41be5024
Tenancy: default
Private IP Address: 10.36.16.25
Waiting for sshd..done
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
WARNING: Specifying the encrypted data bag secret key using an 'encrypted_data_bag_secret'
entry in 'knife.rb' is deprecated. Please see CHEF-4011 for more details. You
can supress this warning and still distribute the secret key to all bootstrapped
machines by adding the following to your 'knife.rb' file:
knife[:secret_file] = "/path/to/your/secret"
If you would like to selectively distribute a secret key during bootstrap
please use the '--secret' or '--secret-file' options of this command instead.
IMPORTANT: In a future version of Chef, this
behavior will be removed and any 'encrypted_data_bag_secret' entries in
'knife.rb' will be ignored completely.
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Connecting to 10.36.16.25
10.36.16.25 Installing Chef Client...
10.36.16.25 --2014-05-02 17:27:58-- https://www.opscode.com/chef/install.sh
10.36.16.25 Resolving www.opscode.com (www.opscode.com)... 184.106.28.90
10.36.16.25 Connecting to www.opscode.com (www.opscode.com)|184.106.28.90|:443... connected.
10.36.16.25 HTTP request sent, awaiting response... 200 OK
10.36.16.25 Length: 15934 (16K) [application/x-sh]
10.36.16.25 Saving to: ‘STDOUT’
10.36.16.25
100%[======================================>] 15,934 --.-K/s in 0s
10.36.16.25
10.36.16.25 2014-05-02 17:27:58 (544 MB/s) - written to stdout [15934/15934]
10.36.16.25
10.36.16.25 Downloading Chef 11.12.2 for ubuntu...
10.36.16.25 downloading https://www.opscode.com/chef/metadata?v=11.12.2&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
10.36.16.25 to file /tmp/install.sh.1441/metadata.txt
10.36.16.25 trying wget...
10.36.16.25 url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.2-1_amd64.deb
10.36.16.25 md5 ad58d3c5a2c912030972fef1f3727c23
10.36.16.25 sha256 3f229e68aa34fd0ca229681d7b5344b1e97b4b358d27184242067ae0ad3c94c4
10.36.16.25 downloaded metadata file looks valid...
10.36.16.25 downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.12.2-1_amd64.deb
10.36.16.25 to file /tmp/install.sh.1441/chef_11.12.2-1_amd64.deb
10.36.16.25 trying wget...
10.36.16.25 Comparing checksum with sha256sum...
10.36.16.25 Installing Chef 11.12.2
10.36.16.25 installing with dpkg...
10.36.16.25 Selecting previously unselected package chef.
(Reading database ... 51347 files and directories currently installed.)
10.36.16.25 Preparing to unpack .../chef_11.12.2-1_amd64.deb ...
10.36.16.25 Unpacking chef (11.12.2-1) ...
10.36.16.25 Setting up chef (11.12.2-1) ...
10.36.16.25 Thank you for installing Chef!
10.36.16.25 Starting first Chef Client run...
10.36.16.25 [2014-05-02T17:28:11+00:00] WARN:
10.36.16.25 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10.36.16.25 SSL validation of HTTPS requests is disabled. HTTPS connections are still
10.36.16.25 encrypted, but chef is not able to detect forged replies or man in the middle
10.36.16.25 attacks.
10.36.16.25
10.36.16.25 To fix this issue add an entry like this to your configuration file:
10.36.16.25
10.36.16.25 ```
10.36.16.25 # Verify all HTTPS connections (recommended)
10.36.16.25 ssl_verify_mode :verify_peer
10.36.16.25
10.36.16.25 # OR, Verify only connections to chef-server
10.36.16.25 verify_api_cert true
10.36.16.25 ```
10.36.16.25
10.36.16.25 To check your SSL configuration, or troubleshoot errors, you can use the
10.36.16.25 `knife ssl check` command like so:
10.36.16.25
10.36.16.25 ```
10.36.16.25 knife ssl check -c /etc/chef/client.rb
10.36.16.25 ```
10.36.16.25
10.36.16.25 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10.36.16.25
10.36.16.25 Starting Chef Client, version 11.12.2
10.36.16.25 Creating a new client identity for docker1 using the validator key.
10.36.16.25 [2014-05-02T17:28:13+00:00] WARN: Failed to register new client, 4 tries remaining
10.36.16.25 [2014-05-02T17:28:13+00:00] WARN: Response: HTTP 500 - 500 "Internal Server Error"
10.36.16.25 [2014-05-02T17:28:13+00:00] WARN: Failed to register new client, 3 tries remaining
10.36.16.25 [2014-05-02T17:28:13+00:00] WARN: Response: HTTP 500 - 500 "Internal Server Error"
10.36.16.25 [2014-05-02T17:28:14+00:00] WARN: Failed to register new client, 2 tries remaining
10.36.16.25 [2014-05-02T17:28:14+00:00] WARN: Response: HTTP 500 - 500 "Internal Server Error"
10.36.16.25 [2014-05-02T17:28:14+00:00] WARN: Failed to register new client, 1 tries remaining
10.36.16.25 [2014-05-02T17:28:14+00:00] WARN: Response: HTTP 500 - 500 "Internal Server Error"
10.36.16.25 [2014-05-02T17:28:15+00:00] WARN: Failed to register new client, 0 tries remaining
10.36.16.25 [2014-05-02T17:28:15+00:00] WARN: Response: HTTP 500 - 500 "Internal Server Error"
10.36.16.25
10.36.16.25 ================================================================================
10.36.16.25 Chef encountered an error attempting to create the client "docker1"
10.36.16.25 ================================================================================
10.36.16.25
10.36.16.25
10.36.16.25 Unknown Server Error:
10.36.16.25 ---------------------
10.36.16.25 The server had a fatal error attempting to load the node data.
10.36.16.25
10.36.16.25
10.36.16.25
10.36.16.25 Server Response:
10.36.16.25 ----------------
10.36.16.25 internal service error
10.36.16.25
10.36.16.25
10.36.16.25 [2014-05-02T17:28:15+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
10.36.16.25 Chef Client failed. 0 resources updated in 4.159683262 seconds
10.36.16.25 [2014-05-02T17:28:15+00:00] ERROR: 500 "Internal Server Error"
10.36.16.25 [2014-05-02T17:28:15+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment