Skip to content

Instantly share code, notes, and snippets.

@VMTrooper
VMTrooper / gist:7088dd531a777669918f
Created March 22, 2016 22:58
trove create debug output
trove --debug create test m1.small
DEBUG (session:198) REQ: curl -g -i -X GET http://10.28.228.50:35357/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): 10.28.228.50
DEBUG (connectionpool:385) "GET /v2.0 HTTP/1.1" 200 339
DEBUG (session:215) RESP: [200] Date: Tue, 22 Mar 2016 22:37:44 GMT Vary: X-Auth-Token Content-Length: 339 Content-Type: application/json X-Dis
tribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "applicatio
n/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.28.228.50:35357/v2.0/", "rel": "self"}, {"href": "http://doc
s.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
@VMTrooper
VMTrooper / gist:c3eed75c0482c895aa22
Created March 22, 2016 22:52
trove list debug output
root@tesora01:~# trove --debug list
DEBUG (session:198) REQ: curl -g -i -X GET http://10.28.228.50:35357/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:205) Starting new HTTP connection (1): 10.28.228.50
DEBUG (connectionpool:385) "GET /v2.0 HTTP/1.1" 200 339
DEBUG (session:215) RESP: [200] Date: Tue, 22 Mar 2016 22:16:47 GMT Vary: X-Auth-Token Content-Length: 339 Content-Type: application/json X-Dis
tribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "applicatio
n/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.28.228.50:35357/v2.0/", "rel": "self"}, {"href": "http://doc
s.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
@VMTrooper
VMTrooper / gist:0d19fcaba800f1cc5d63
Created March 14, 2016 20:42
shell-local post-processor example template
{
"builders": [{
"type": "null",
"ssh_host": "127.0.0.1",
"ssh_username": "vagrant",
"ssh_password": "vagrant"
}],
"post-processors": [{
"type": "shell-local",
"inline": ["touch /home/vagrant/bar.txt"]
@VMTrooper
VMTrooper / gist:1028092f186c23e1dd1a
Created March 14, 2016 20:39
shell-local post-processor Packer Log Output
vagrant@vagrant:~$ PACKER_LOG=1 packer build null.json >> output.log
2016/03/14 20:37:40 [INFO] Packer version: 0.9.0 a643faae672ec8b8424352476d2b91b7a7f7b06e
2016/03/14 20:37:40 Packer Target OS/Arch: linux amd64
2016/03/14 20:37:40 Built with Go Version: go1.6
2016/03/14 20:37:40 Detected home directory from env var: /home/vagrant
2016/03/14 20:37:40 Using internal plugin for amazon-chroot
2016/03/14 20:37:40 Using internal plugin for amazon-ebs
2016/03/14 20:37:40 Using internal plugin for file
2016/03/14 20:37:40 Using internal plugin for null
2016/03/14 20:37:40 Using internal plugin for parallels-iso
heat_template_version: 2013-05-23
# heat stack-create -f heat_demo.yaml <stack_name_here>
description: |
A template that deploys a multi-tier topology: 2 Web, 1 DB.
parameters:
flavor:
label: Server Size
@VMTrooper
VMTrooper / gns3-server-alpha5-osx
Created May 22, 2014 17:46
ZeroMQ-related errors during the Alpha 5 install of Server on OS X
Did not find libzmq via pkg-config:
Package libzmq was not found in the pkg-config search path.
Perhaps you should add the directory containing `libzmq.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libzmq' found
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:
build/temp.macosx-10.9-x86_64-3.4/scratch/vers.c:4:10: fatal error: 'zmq.h' file
@VMTrooper
VMTrooper / vagrant-aws-error.txt
Created February 3, 2014 05:04
vagrant-aws errors
aws-test $ vagrant plugin install vagrant-aws
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Installed the plugin 'vagrant-aws (0.4.1)'!
aws-test $ VAGRANT_LOG=INFO vagrant up --provider=aws
INFO global: Vagrant version: 1.4.3
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_LOG="INFO"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
@VMTrooper
VMTrooper / site.pp
Created October 15, 2013 07:31
Sample Site.pp from my puppet-lint error
## site.pp ##
# This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point
# used when an agent connects to a master and asks for an updated configuration.
#
# Global objects like filebuckets and resource defaults should go in this file,
# as should the default node definition. (The default node can be omitted
# if you use the console and don't define any other nodes in site.pp. See
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
@VMTrooper
VMTrooper / Multi-VM_Vagrantfile.rb
Created September 9, 2013 02:13
Vagrant 1.3.0
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'securerandom'
# remove the 'client' entry to below to save on host resources
nodes = {
'controller' => [1, 200],
'compute' => [1, 201],
'cinder' => [1, 211],
'quantum' => [1, 202],
@VMTrooper
VMTrooper / Multi-VM_Error
Created September 9, 2013 02:10
Vagrant 1.3.0 Multi-VM Vagrantfile
[robert4@baremetala01 Couch_to_OpenStack]$ VAGRANT_LOG=DEBUG vagrant up
INFO global: Vagrant version: 1.3.0
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/guests/gentoo/plugin.rb
INFO manager: Registered plugin: Gentoo guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/guests/omnios/plugin.rb
INFO manager: Registered plugin: OmniOS guest.
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/guests/openbsd/plugin.rb
INFO manager: Registered plugin: OpenBSD guest
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/gems/vagrant-1.3.0/plugins/guests/freebsd/plugin.rb
INFO manager: Registered plugin: FreeBSD guest