Skip to content

Instantly share code, notes, and snippets.

View ccollicutt's full-sized avatar

curtis ccollicutt

View GitHub Profile
REQ: curl -i 'http://127.0.0.1:8774/v1.1/flavors/' -X GET -H "X-Auth-Project-Id: serverascode" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 0011223344556677"
RESP: [200] {'date': 'Mon, 07 Jul 2014 15:38:48 GMT', 'content-length': '758', 'content-type': 'application/json', 'x-powered-by': 'go-json-rest'}
RESP BODY: {
"flavors": [
{
"flavor": {
"id": 1,
"name": "m1",
"ram": 512,
[root@swift-proxy-01 log]# tail messages
Apr 9 15:06:23 swift-proxy-01 proxy-server: Retrying on HTTP connection exception: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Apr 9 15:06:25 swift-proxy-01 proxy-server: HTTP connection exception: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Apr 9 15:06:25 swift-proxy-01 proxy-server: Authorization failed for token bceaeee1abfd47578c3103d76ef66c4e
Apr 9 15:06:25 swift-proxy-01 proxy-server: Invalid user token - deferring reject downstream
Apr 9 15:06:26 swift-proxy-01 proxy-server: Retrying on HTTP connection exception: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Apr 9 15:06:27 swift-proxy-01 proxy-server: Retrying on HTTP connection exception: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Apr 9 15:06:28 swift-proxy-01 proxy-ser
$ vagrant up apis --provider=vmware_fusion
Bringing machine 'apis' up with 'vmware_fusion' provider...
[apis] Verifying vmnet devices are healthy...
The VMware network device 'vmnet2' can't be started because
its routes collide with another device: 'vboxnet'. Please
either fix the settings of the VMware network device or stop the
colliding device. Your machine can't be started while VMware
networking is broken.
#
#
# accidentally added a second IP range that is the same as an existing one, so am trying to remove it
#
vagrant@precise64:~$ alias q
alias q='quantum'
vagrant@precise64:~$ q router-delete router2
Router 3a411220-530d-4a5e-828c-8063233540da still has active ports
vagrant@precise64:~$ q port-list
@ccollicutt
ccollicutt / quantum!
Last active December 15, 2015 19:38
working with quantum in openstack grizzly
# follwing this: http://blog.aaronorosen.com/building-a-multi-tier-application-with-openstack/
vagrant@precise64:/etc/quantum$ quantum net-list
+--------------------------------------+---------+--------------------------------------------------+
| id | name | subnets |
+--------------------------------------+---------+--------------------------------------------------+
| 1583e72d-2ab1-4746-9d72-fea6cca16d41 | private | 93765661-e07e-4a6d-bb67-fe9a46d77849 10.0.0.0/24 |
| cfba85ab-0cb0-496e-82b5-bdb008e584e4 | public | 1c95411d-a5ba-44e0-9a46-98e342a3f331 |
+--------------------------------------+---------+--------------------------------------------------+
@ccollicutt
ccollicutt / Vagrantfile
Last active December 15, 2015 10:49
Vagrant + vmware fusion errors
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
#config.vm.provision :shell, :inline => "echo Hello"
config.vm.define :web do |web|
web.vm.box = "centos65fusion"
$ cat install-chocolatey.bat
REM goto a temp directory
cd %SystemDrive%\windows\temp
cmd /c bitsadmin /transfer InstallChocolateyPS1 /download /priority normal https://raw.github.com/ferventcoder/chocolatey/master/chocolateyInstall/InstallChocolatey.ps1 %SystemDrive%\windows\temp\InstallChocolatey.ps1
cmd /c %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -InputFormat none -NoProfile -ExecutionPolicy unrestricted -Command "& '%SystemDrive%\windows\temp\InstallChocolatey.ps1' %*"
vagrant@precise64:/opt/stack/nova$ tox
GLOB sdist-make: /opt/stack/nova/setup.py
py26 create: /opt/stack/nova/.tox/py26
ERROR: InterpreterNotFound: python2.6
py27 create: /opt/stack/nova/.tox/py27
py27 installdeps: -r/opt/stack/nova/tools/pip-requires, -r/opt/stack/nova/tools/test-requires
py27 inst: /opt/stack/nova/.tox/dist/nova-2013.2.a26.g4979817.zip
py27 runtests: commands[0]
py27 runtests: commands[1]
running testr
$ vagrant box add centos64 file://$PWD/centos64.box
Downloading with Vagrant::Downloaders::File...
Cleaning up downloaded box...
The specified path to a file doesn't exist.
$ echo $PWD
/Users/curtis/Documents/Virtual Machines.localized/CentOS 64-bit.vmwarevm
$ ls centos64.box
centos64.box
$ tar ztf centos64.box
./CentOS 64-bit.nvram
[root@VIRT-V2V:/opt/veewee] $ gem which ruby-libvirt || gem which libvirt
ERROR: Can't find ruby library file or shared library ruby-libvirt
/usr/local/rvm/gems/ruby-1.9.2-p320@veewee/gems/ruby-libvirt-0.4.0/lib/libvirt.rb
[root@VIRT-V2V:/opt/veewee] $ irb
1.9.2p320 :001 > require 'libvirt'
LoadError: no such file to load -- libvirt
from (irb):1:in `require'
from (irb):1
from /usr/local/rvm/rubies/ruby-1.9.2-p320/bin/irb:16:in `<main>'