Monday, 3 March 2014

Playing with Openstack

Threw together a fedora 20 VM in order to play with http://devstack.org/ gave it 4G Ram and 60G disk and 4 cpus

Install Fedora 20 Basic Web Server

Make selinux permissive

Make sure /etc/hosts is correct (and does not have hostname on 127.0.0.1)

Add a stack user:

useradd stack

Make the stack user a sudoer:

cat <<EOF >/etc/sudoers.d/stack
stack ALL=(ALL) NOPASSWD:ALL
Defaults:stack !requiretty
EOF

Get the devstack scripts and setup a simple local.conf

cd /home/stack
git clone https://github.com/openstack-dev/devstack.git
cd devstack
echo '[[local|localrc]]' > local.conf 
echo ADMIN_PASSWORD=password >> local.conf 
echo MYSQL_PASSWORD=password >> local.conf 
echo RABBIT_PASSWORD=password >> local.conf 
echo SERVICE_PASSWORD=password >> local.conf 
echo SERVICE_TOKEN=tokentoken >> local.conf

Then run the stack.sh as the stack user

./stack.sh


Open up firewall

firewall-cmd --add-service http
firewall-cmd --add-service https

consoles
firewall-cmd --add-port 6080/tcp

keystone
firewall-cmd --add-port 5000/tcp



No comments:

Post a Comment

Note: only a member of this blog may post a comment.