Skip to content

Instantly share code, notes, and snippets.

@ygbourhis
ygbourhis / local.conf
Created January 28, 2015 13:06
devstack local.conf
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@ygbourhis
ygbourhis / stack.sh.log
Created January 28, 2015 13:09
devstack WARNING: urllib3.connectionpool HttpConnectionPool is full, discarding connection
This file has been truncated, but you can view the full file.
2015-01-28 12:37:44.774 | + SSL_BUNDLE_FILE=/opt/stack/data/ca-bundle.pem
2015-01-28 12:37:44.774 | + rm -f /opt/stack/data/ca-bundle.pem
2015-01-28 12:37:44.775 | + source /home/vagrant/devstack/lib/database
2015-01-28 12:37:44.775 | + source /home/vagrant/devstack/lib/rpc_backend
2015-01-28 12:37:44.778 | + check_rpc_backend
2015-01-28 12:37:44.779 | + local c svc
2015-01-28 12:37:44.779 | + local rpc_needed=1
2015-01-28 12:37:44.780 | ++ grep -rl iniset_rpc_backend /home/vagrant/devstack/lib/
2015-01-28 12:37:44.780 | ++ awk -F/ '{print $NF}'
2015-01-28 12:37:44.782 | + rpc_candidates='glance
@ygbourhis
ygbourhis / worlddump-2015-01-28-124455.txt
Created January 28, 2015 13:11
devstack worlddump-2015-01-28-124455.txt
File System Summary
===================
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 40G 3.1G 35G 8% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 416K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
@ygbourhis
ygbourhis / Vagrantfile
Last active August 29, 2015 14:14
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@ygbourhis
ygbourhis / bootstrap.sh
Last active August 29, 2015 14:14
bootstrap.sh (used by Vagrantfile)
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y ubuntu-cloud-keyring
cp /vagrant/cloud_archive_juno.list /etc/apt/sources.list.d/
apt-get update
apt-get upgrade -y
apt-get install -y apt-file apache2 bpython bridge-utils curl dhcpdump dnsmasq-base dnsmasq-utils ebtables euca2ools gawk gcc genisoimage git gir1.2-gnomekeyring-1.0 htop iftop iptables iputils-arping iputils-ping ipython kpartx libffi-dev libjs-jquery-tablesorter libldap2-dev libmysqlclient-dev libpq-dev libsasl2-dev libvirt-dev libxml2-dev libxml2-utils libxslt1-dev locate lsof lvm2 memcached mongodb-clients mongodb-server msgpack-python nbd-client nodejs open-iscsi open-iscsi-utils openssh-server openssl openvpn parted psmisc pylint python-boto python-carrot python-cheetah python-cmd2 python-configobj python-coverage python-dateutil python-dev python-eventlet python-feedparser python-gflags python-greenlet python-iso8601 python-kombu python-libvirt python-libxml2 python-lockfile python-lxml python-m2cr
@ygbourhis
ygbourhis / initrc
Created January 28, 2015 13:23
devstack initrc
export OS_USERNAME=demo
export OS_TENANT_NAME=demo
export OS_AUTH_URL=http://127.0.0.1:5000/v2.0
export OS_PASSWORD=password
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@ygbourhis
ygbourhis / cloud_archive_juno.list
Last active February 2, 2016 16:38
devstack cloud_archive_juno.list
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/juno main
#!/usr/bin/env python
"""
Quick and dirty workaround for https://bugs.launchpad.net/heat/+bug/1599104
add rabbitmq_management plugin:
sudo /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
install rabbitmqadmin which is provided by rabbitmq_management:
cd /usr/bin