Skip to content

Instantly share code, notes, and snippets.

@abhishekkr
Last active January 4, 2016 06:18
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 abhishekkr/8580777 to your computer and use it in GitHub Desktop.
Save abhishekkr/8580777 to your computer and use it in GitHub Desktop.
[openstack] devstack setup with Neutron and Docker virtualization support
diff --git a/lib/neutron b/lib/neutron
index 465b57c..4a8863f 100644
--- a/lib/neutron
+++ b/lib/neutron
@@ -427,6 +427,10 @@ function init_neutron() {
# install_neutron() - Collect source and prepare
function install_neutron() {
git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
+ _TMP_PWD=$PWD
+ cd $NEUTRON_DIR
+ git fetch https://review.openstack.org/openstack/neutron refs/changes/63/61663/4 && git checkout FETCH_HEAD
+ cd $_TMP_PWD
setup_develop $NEUTRON_DIR
}
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
EXTRA_OPTS=(logdir=/home/h4ck3r/log/openstack)
VIRT_DRIVER=docker
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
_TMP_PWD=$PWD
git clone git://github.com/openstack-dev/devstack.git
cd devstack
#LOCALRC_URL="http://pastie.org/pastes/8660624/download"
LOCALRC_URL="https://gist.github.com/abhishekkr/8580777/raw/959cebdf7ad8ea1c62b5eb8e420672cc47fb9aa2/localrc"
wget -O localrc wget -O localrc $LOCALRC_URL
./devstack/tools/docker/install_docker.sh
#PATCH_URL="http://pastie.org/pastes/8660511/download"
PATCH_URL="https://gist.github.com/abhishekkr/8580777/raw/8145318ae2b5d2fd9dd16344151c6db161c84e34/devstack_neutron_migration.patch"
wget -O /tmp/devstack_neutron_migration.patch $PATCH_URL
git apply /tmp/devstack_neutron_migration.patch
mkdir /home/h4ck3r/log/openstack
./stack.sh
cd $_TMP_PWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment