<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>JackKozik.com &#187; Icehouse</title> <atom:link href="http://jackkozik.com/tag/icehouse/feed/" rel="self" type="application/rss+xml" /><link>http://jackkozik.com</link> <description>Web Programming, Home Networking and Personal Travel</description> <lastBuildDate>Mon, 04 Sep 2023 14:26:56 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.9.2</generator> <item><title>OpenStack Icehouse on Fedora 20 using packstack on home PC</title><link>http://jackkozik.com/openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server</link> <comments>http://jackkozik.com/openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server/#comments</comments> <pubDate>Thu, 14 Aug 2014 21:15:38 +0000</pubDate> <dc:creator><![CDATA[Jack Kozik]]></dc:creator> <category><![CDATA[Web Programming]]></category> <category><![CDATA[Fedora 20]]></category> <category><![CDATA[Icehouse]]></category> <category><![CDATA[Openstack]]></category> <category><![CDATA[RDO]]></category><guid isPermaLink="false">http://jackkozik.com/?p=4758</guid> <description><![CDATA[<p>Inspired by the RDO quickstart howto page, I record here the steps I followed to setup OpenStack Icehouse on Fedora 20 on my home server. Install Fedora 20 I have been using Fedora/Redhat for years, but the most recent install I did was Fedora 16, so I am a little out of date with the new [&#8230;]</p><p>The post <a rel="nofollow" href="http://jackkozik.com/openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server/">OpenStack Icehouse on Fedora 20 using packstack on home PC</a> appeared first on <a rel="nofollow" href="http://jackkozik.com">JackKozik.com</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span style="line-height: 1.5;">Inspired by the <a href="http://openstack.redhat.com/Quickstart">RDO quickstart howto page</a>, I record here the steps I followed to setup OpenStack Icehouse on Fedora 20 on my home server.</span></p><h3>Install Fedora 20</h3><p><a href="http://jackkozik.com/wp-content/uploads/2014/08/f20-change.png"><img class=" wp-image-4775 alignright" alt="f20-change" src="http://jackkozik.com/wp-content/uploads/2014/08/f20-change.png" width="205" height="205" /></a>I have been using Fedora/Redhat for years, but the most recent install I did was Fedora 16, so I am a little out of date with the new processes and procedures. For me, my first step was to go to the Fedora distribution page and down load an ISO to make an install DVD (I selected the <a href="http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso">Fedora 20 Desktop Edition Live Media</a>).</p><p><span style="line-height: 1.5;">My hardware was brand new, and I installed Fedora 20 onto a 2T RAID Intel PC box. I let the Fedora installer format my disks to the default settings. I configured a login and timezone and let the install run. Everything worked the first time.</span></p><p>The next couple of steps I follow by sitting infront of the console for my PC. I usually do everything through ssh and/or VNC, but for Openstack setup, I stayed at the console.</p><h3>Prep for Openstack Icehouse on Fedora 20: Static IP, /etc/hosts, sshd, NetworkManager</h3><h4>Static IP Address</h4><p>The Fedora install configures the host  to use DHCP to get the initial IP address. The host needs a static IP for Openstack setup to work.  The default  network-scripts for the main host interface are easily edited. For my install, the  interface is named p2p1 (in the old days this would be named eth0).</p><p>Configure the ifcfg-p2p1 script to look something like the following:</p><pre><code>
# vi /etc/sysconfig/network-scripts/ifcfg-p2p1
TYPE="Ethernet"
BOOTPROTO=static
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="p2p1"
UUID="42a635ee-281c-44fc-9e16-f4e23111d4fb"
ONBOOT="yes"
HWADDR=40:16:7E:B1:64:CD
IPADDR=192.168.100.154
PREFIX=24
GATEWAY=192.168.100.163
DNS1=8.8.8.8
DNS2=192.168.100.163
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
</code></pre><p>Note: the host&#8217;s IP address and its gateway IP address are inside my private IP address range (192.168.100.0/24). I will use these addresses throughout my write-up.</p><p>Before I reboot, I want to change a couple of other host configurations.</p><h4>/etc/hosts and hostname</h4><p>It turns hostname must be setup right or the packstack script will get stuck.</p><pre><code>
# hostname kozik4.lan
# vi /etc/hostname
kozik4.lan
# vi /etc/hosts
127.0.0.1 kozik4.lan kozik4 localhost.localdomain localhost
129.168.100.154 kozik4.lan kozik4
</code></pre><p>Note: .lan is my home network private domain name. I don&#8217;t share .lan publically.</p><h4>SELinux</h4><p>I turn off SELinux; edit a line in SElinux config file:</p><pre><code>
# setenforce permissive
# vi /etc/selinux/config
...
SELINUX=permissive
...
</code></pre><h4>sshd for root</h4><p>Openstack&#8217;s install script requires root access for ssh login. To setup ssh:</p><pre><code>
# vi /etc/ssh/sshd_config
...
PermitRootLogin yes
...
# systemctl  enable sshd.service
# systemctl  start sshd.service
</code></pre><h4>firewalld and NetworkManager</h4><p>Disable firewalld and NetworkManager as recommended in several of the references.</p><pre><code>
systemctl disable firewalld

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service
</code></pre><p>From here,  reboot. Everything should come back ok. Nothing really changed except switching from dynamic to static IP addressing.  Verify from another PC that ssh root@192.168.100.154 works. Verify that ping yahoo.com works.</p><p>For reference, ifconfig looks like this:</p><pre><code>
# ifconfig
lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)

p2p1: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 192.168.100.154  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::4216:7eff:feb1:64cd  prefixlen 64  scopeid 0x20																				<link />
        ether 40:16:7e:b1:64:cd  txqueuelen 1000  (Ethernet)
</code></pre><h3>Install/update Openstack software</h3><p><a href="http://jackkozik.com/wp-content/uploads/2014/08/RDOlogo.jpe"><img class="alignleft size-full wp-image-4765" alt="RDOlogo" src="http://jackkozik.com/wp-content/uploads/2014/08/RDOlogo.jpe" width="160" height="160" /></a></p><div style="clear: both;"></div><p>From the host&#8217;s root login at /root, run each of the following yum installs, one at a time, verifying that they complete successfully.</p><pre><code>
yum update -y
yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
yum install -y openstack-packstack 
packstack --allinone --provision-all-in-one-ovs-bridge=n
</code></pre><p>The last install is the big one.  The packstack script is what puts OpenStack Icehouse on Fedora 20; It will take awhile to run.</p><p>It took me a couple of tries to get the last step to work. The hostname must cleanly resolve for the packstack scripts to work. Further, the packstack scripts runs ssh root@192.168.100.154. If this is not setup right, packstack will fail. Note: the packstack script prompts you for your root password.</p><h3>Setup Open vSwitch Bridging</h3><p>Once done, the packstack scripts sets up an <a href="http://openvswitch.org/">Open vSwitch </a>network as summarized here.</p><pre><code>
# ifconfig
br-ex: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet6 fe80::3442:c4ff:fe5c:874b  prefixlen 64  scopeid 0x20																				<link />
        ether 36:42:c4:5c:87:4b  txqueuelen 0  (Ethernet)

br-int: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet6 fe80::a817:aff:fee8:934c  prefixlen 64  scopeid 0x20																				<link />
        ether aa:17:0a:e8:93:4c  txqueuelen 0  (Ethernet)

lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)

p2p1: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 192.168.100.154  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::4216:7eff:feb1:64cd  prefixlen 64  scopeid 0x20																				<link />
        ether 40:16:7e:b1:64:cd  txqueuelen 1000  (Ethernet)
</code></pre><p><span style="line-height: 1.5;">It turns out that this setup does not connect with the outside world &#8212; the default install scripts don&#8217;t have a place for me to tell it my home network setup (that I know of). The br-ex needs to connect to the outside world and p2p1 needs to connect to br-ex.</span></p><p>There&#8217;s some discussion in RDO community to make it easier for novices like me to connect the packstack install to a home network&#8217;s subnet. But for now, there&#8217;s a few simple steps to follow to get  the PC&#8217;s main interface to connect to the Open vSwitch infrastructure setup by packstack.</p><p>For starters, connect the external bridge (named br-ex) to the home network,  by editing the br-ex config file that packstack creates:</p><pre><code>
# vi /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.100.154
NETMASK=255.255.255.0
GATEWAY=192.168.100.163
DNS1=8.8.8.8
ONBOOT=yes
</code></pre><p>Note: the br-ex bridge has the IP address and GATEWAY address that I would normally use to access the PC.</p><p>And, the host&#8217;s interface p2p1 needs to be updated to become Open vSwitch aware, editting the ifcfg-p2p1 file to look like the following:</p><pre><code>
# vi /etc/sysconfig/network-scripts/ifcfg-p2p1
DEVICE=p2p1
ONBOOT="yes"
HWADDR="40:16:7E:B1:64:CD"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE="br-ex"
</code></pre><p>And one more thing, the openstack dashboard access is limited to localhost only.  Remove this access control, for now.</p><pre><code>
# vi /etc/openstack-dashboard/local_settings
#ALLOWED_HOSTS = ['192.168.100.154', 'kozik4.lan', 'localhost', ]
ALLOWED_HOSTS = ['*', ]
</code></pre><p>From here, reboot. When the computer comes back up,  verify that basic network looks good. Here&#8217;s what ifconfig looks like:</p><pre><code>
# ifconfig
br-ex: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 192.168.100.154  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::4216:7eff:feb1:64cd  prefixlen 64  scopeid 0x20																				<link />
        ether 40:16:7e:b1:64:cd  txqueuelen 0  (Ethernet)

lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)

p2p1: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet6 fe80::4216:7eff:feb1:64cd  prefixlen 64  scopeid 0x20																				<link />
        ether 40:16:7e:b1:64:cd  txqueuelen 1000  (Ethernet)
# ovs-vsctl list-ports br-ex
p2p1
</code></pre><p>Above, verify that  the host&#8217;s IP address is tied to br-ex and the interface p2p1 shows as a port on br-ex. These look good. Also verify that ssh root@192.168.100.154 works; then go to another PC and run the same command. Finally, to make sure that the host can route to the internet, ping yahoo.com. These basic plumbing tests are needed for the rest of openstack to work, and in my case, it didn&#8217;t work the first time, and these basic sanity tests helped me troubleshoot.</p><p>A stuck point for me:  when I reached this point one time before, I couldn&#8217;t ping yahoo.com.  Which was disappointing because everything else worked.  So I ran the following command:</p><pre><code># ip route show
default via 192.168.100.163 dev br-ex  # Verify this line is here!!
169.254.0.0/16 dev p2p1  scope link  metric 1002
169.254.0.0/16 dev br-ex  scope link  metric 1004
169.254.0.0/16 dev br-int  scope link  metric 1005
192.168.100.0/24 dev br-ex  proto kernel  scope link  src 192.168.100.154
</code></pre><p>Unlike what I list above, the default route didn&#8217;t get configured for my host&#8217;s network.  I found some helpful notes that suggested manually adding it in (ip route add default via&#8230;).  That worked, but what worked better for me was to disable NetworkManager (see steps I list earlier).</p><p>As an aside, the ip route show output above works for me, but doesn&#8217;t look right.  The lines that begin with 169.254.0.0 shouldn&#8217;t be there (I think).  Something is not quite right, but I don&#8217;t know if it is worth fixing.  Anyway&#8230;</p><p>What I get now, is every time I boot, I get a clean network setup, incoming and outgoing.</p><p>Ok, once the PC&#8217;s network setup is stable after boot,  run the openstack-status script; the script returns a long list of status lines and two key lines indicate a failed status.</p><pre><code>
# openstack-status
...
neutron-server:                         failed
rabbitmq-server:                        failed
...
</code></pre><p>For whatever reason (probably some fault in my setup steps), rabbitmq and neutron servers failed to start. I saw this issue addressed in the video referenced below; these services are easily restarted as shown below</p><pre><code>
systemctl start rabbitmq-server.service
systemctl start neutron-server.service
</code></pre><p>&#8230; everything comes back and the next steps work fine.</p><h3>Openstack Dashboard</h3><p>As a last step, go to a web browser and verify that you can login to the openstack dashboard. Once this step works, you should be able to do everything from a web browser or Putty terminal.</p><p>The dashboard is found at http://192.168.100.154/dashboard. The User Name is admin, the password for the dashboard is found in the keystone_admin file.  Once you can login, then installing OpenStack Icehouse on Fedora 20 is complete.</p><p><a href="http://jackkozik.com/wp-content/uploads/2014/08/OSHorizonLogin080514.png"><img class="alignleft size-full wp-image-4762" alt="OSHorizonLogin080514" src="http://jackkozik.com/wp-content/uploads/2014/08/OSHorizonLogin080514.png" width="414" height="469" /></a></p><div style="clear: both;"></div><p>Once we are logged in, we need to navigate to the Admin-&gt;Routers page and delete the default router that packstack setup for us, select all the routers (only one) and then click on the &#8220;Delete Routers&#8221; button below:</p><p><a href="http://jackkozik.com/wp-content/uploads/2014/08/AdminRoutersDelete080614.png"><img class="alignleft  wp-image-4772" style="border: 1px solid black;" alt="AdminRoutersDelete080614" src="http://jackkozik.com/wp-content/uploads/2014/08/AdminRoutersDelete080614.png" width="619" height="222" /></a></p><p>Then we need to go to the Admin-&gt;Networks page and delete the networks.  Select all the Networks, then click on the &#8220;Delete Networks&#8221; button below:</p><p><a href="http://jackkozik.com/wp-content/uploads/2014/08/AdminNetworksDelete080614.png"><img class="alignleft  wp-image-4773" style="border: 1px solid black;" alt="AdminNetworksDelete080614" src="http://jackkozik.com/wp-content/uploads/2014/08/AdminNetworksDelete080614.png" width="621" height="352" /></a></p><p><span style="line-height: 1.5;">With the demo network and router setup re-initialized,  we have a clean slate that we can build upon.</span></p><p>End of part 1.  I next need to writeup the steps to configure a OpenStack, including how to load images, create instances, network those instances together, and bridge them to the home network.  In addition, I will writeup how to map a &#8220;floating IP address&#8221; between an instance and my home network.   All for next time.</p><h3>References</h3><ul><li><a href="https://www.youtube.com/watch?v=GYTctLuPbOs">Openstack Icehouse on Fedora 20 using RDO</a></li><li><a href="http://openstack.redhat.com/Quickstart">RDO Quickstart</a></li><li><a href="https://ask.openstack.org/en/question/24719/how-to-install-packstack-allinone-on-fedora-20-with-an-existing-external-network/">How To: install packstack allinone on Fedora 20 with an existing external network </a></li><li><a href="http://openstack.redhat.com/Fedora_20_with_existing_network">Fedora 20 with existing network</a></li><li><a href="http://allthingsopen.com/2013/08/23/openstack-packstack-installation-with-external-connectivity/">OPENSTACK PACKSTACK INSTALLATION WITH EXTERNAL CONNECTIVITY</a></li><li><a href="https://www.youtube.com/watch?v=8zFQG5mKwPk">RDO Icehouse: Configuring the external bridge</a></li></ul><p>The post <a rel="nofollow" href="http://jackkozik.com/openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server/">OpenStack Icehouse on Fedora 20 using packstack on home PC</a> appeared first on <a rel="nofollow" href="http://jackkozik.com">JackKozik.com</a>.</p> ]]></content:encoded> <wfw:commentRss>http://jackkozik.com/openstack-icehouse-on-fedorda-20-using-the-rdo-communities-packstack-on-my-home-network-server/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>