via Planet OpenStack http://www.zerobanana.com/archive/2013/08/29#heat-dependencies
Install RDO Havana-2 on Fedora 19 and avoid the pitfalls http://bit.ly/14YW31F
If you’d like to try out OpenStack Havana on Fedora 19, there’s a few pitfalls that need to be avoided. Let me be your navigator and show you a way around them. But first, let me warn you of a few things:
Below, I might sometimes expect you are familiar with Linux, Fedora and OpenStack.
Havana is not yet finished, stable or even released. Havana-2 is only just a milestone and development will continue for two whole months so expect things to be broken. Please do report bugs upstream.
RDO and the Packstack tool are not supported products, except for a community forum and mailing list. Red Hat offers a commercial offering called RHOS if you need professional support.
The installation I describe is very simple and not suited for production even if the software was. It’s a single-node setup without any high-availability mechanics. It does not include Neutron, Ceilometer, Heat or any of the even newer components.
I don’t use \ to continue commands on the next line. Instead, the # simply marks a new command line, everything after it before normal text or another # belongs to the same line.
Fedora 19 Host Preparation
Install Fedora 19 on your host. Yes, it can be done in a VM (with or without nested virtualization) if you wish so. Without nested virtualization, guests will obviously run very slow when run within a VM, though.
Personally, I do Minimal Installs but you’re probably also fine if you go with an Infrastructure Server installation with the Virtualization Add-On. The setup routine will install the missing parts either way. Obviously if you want to save some space, starting with a Minimal Install will help to keep the total installation size smaller.
Make sure the latest updates are installed.# yum -y update
Some parts might run into some trouble eventually, if your hostname is set to localhost. So if that’s the case for you, change it to something different. You should be good by giving your loopback address another hostname but you can also add the name to your routable IP.# sed ‘s/localhost/openstack/’ -i /etc/hostname# sed ‘s/^127.0.0.1.*$/& openstack openstack.localdomain/’ -i /etc/hosts
Fedora 19 does have some SELinux issues around Havana-2, most particularly with Swift. Since you’re only doing this for testing purposes you shall exceptionally be allowed to set SELinux into permissive mode. Never do this in production, you’re seriously tampering with your system’s security.Bugs: rhbz#995779 and rhbz#995780# sed ‘s/^\(SELINUX=\).*$/\1permissive/’ -i /etc/selinux/config
The new firewall daemon is not (yet?) compatible with OpenStack so we better switch back to plain old iptables.Bugs: rhbz#981652 causing rhbz#981583# yum -y install iptables-services# systemctl disable firewalld# systemctl enable iptables
To make all of the above changes effective (including a possible kernel upgrade), go ahead and# reboot
Install OpenStack Havana-2 from RDO
Activate the RDO Havana-2 yum repository.# yum -y install http://bit.ly/1eVB3KC
Install Packstack, a simple tool to install OpenStack on Fedora or RHEL and derivatives. Using Python scripting and some Puppet-foo, it can turn answers, command-line switches or an answer file into a fully installed and configured OpenStack setup to make your life easier.# yum -y install openstack-packstack
Unfortunately, one dependency will be missing from the installation, so we better install it up front.Bug: rhbz#995751# yum -y install fprintd-pam
That’s what you’re here for. Now, we’ll install a very simple OpenStack setup and it could hardly be any easier. You will be asked for your root password once, so Packstack can connect to the host over SSH and deploy a SSH key for future use. Packstack connects several times to all hosts it sets up in order to install and configure everything. In our case that’s just a connection to localhost and SSH would not be required, but there’s no separate routine for…