Freitag, 7. März 2014

Running devstack on Fedora (Heisenbug)

Last week i played around with devstack on my home development server (actually an old Core2Duo notebook). I have tried it once on an Centos 6.5 machine, but as it seems the differ a bit, so it was not easy to get it going.

First the basics, i cloned devstack via git to my home folder
git clone https://github.com/openstack-dev/devstack.git
now, we need to create a stack user. There is a command available for this
/home/devstack/tools/create-stack-user.sh
and we need to change the ownership of the stack folder
chown -R stack:stack /home/stack
now we need to create a local.conf file. I choosed the minimal and added some lines, as the rabbitmq didnt work out on my setup i changed the used erlang server
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50
#FIXED_RANGE=172.31.1.0/24
#FLOATING_RANGE=192.168.20.0/25
#HOST_IP=10.3.4.5
DEST=/home/stack
LOGFILE=$DEST/logs/stack.sh.log
RECLONE=yes
disable_service rabbit
enable_service qpid

IMAGE_URLS="http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2"
right after that we run
./stack.sh local.conf
to compile it, everything went fine so far. Quite nice, devstack opens a screen with all the output which is given by the different components.
Then there was some trouble accessing the webinterface, caused by SELinux, so for a short workaround it just did a
setenforce 0
and the login side showed up.