<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ops on sysarcher/@ich_code</title><link>https://sysarcher.github.io/categories/ops/</link><description>Recent content in Ops on sysarcher/@ich_code</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 26 Apr 2019 21:22:37 +0200</lastBuildDate><atom:link href="https://sysarcher.github.io/categories/ops/index.xml" rel="self" type="application/rss+xml"/><item><title>First Steps With OpenStack</title><link>https://sysarcher.github.io/posts/openstack-deployment/</link><pubDate>Fri, 26 Apr 2019 21:22:37 +0200</pubDate><guid>https://sysarcher.github.io/posts/openstack-deployment/</guid><description>&lt;p&gt;I recently tried to set up OpenStack on a single-node development environment using devstack. This blog is &lt;em&gt;not&lt;/em&gt; meant as a tutorial or getting started guide. However, I hope that Google will send someone crying tears of sorrow this way so he can benefit from my experience.&lt;/p&gt;
&lt;h3 id="conclusion"&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;What I concluded from the documentations is that we don&amp;rsquo;t get something ready-to-go from the official docs. And you should consider yourself lucky if everything worked for you out-of-the-box.&lt;/p&gt;</description><content:encoded><![CDATA[<p>I recently tried to set up OpenStack on a single-node development environment using devstack. This blog is <em>not</em> meant as a tutorial or getting started guide. However, I hope that Google will send someone crying tears of sorrow this way so he can benefit from my experience.</p>
<h3 id="conclusion">Conclusion</h3>
<p>What I concluded from the documentations is that we don&rsquo;t get something ready-to-go from the official docs. And you should consider yourself lucky if everything worked for you out-of-the-box.</p>
<h2 id="setup-ideas">Setup Ideas</h2>
<ul>
<li>Start from a clean installation of Ubuntu 18.04.</li>
<li>The <code>local.conf</code> goes into the top-level directory of the <code>devstack</code> checkout.</li>
</ul>
<h3 id="setup">Setup</h3>
<p>My setup already provided the DNS and DHCP servers as illustrated below.</p>
<pre tabindex="0"><code>        (DNS Server)              (DHCP Server)
             |                          |
             |                          |
             +------------+-------------+
                          |
                          |
                        (OpenStack)
</code></pre><p>So, my <code>local.conf</code> looks like the following:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-ini" data-lang="ini"><span style="display:flex;"><span><span style="color:#66d9ef">[[local|localrc]]</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">ADMIN_PASSWORD</span><span style="color:#f92672">=</span><span style="color:#e6db74">safeandsecure</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">DATABASE_PASSWORD</span><span style="color:#f92672">=</span><span style="color:#e6db74">$ADMIN_PASSWORD</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">RABBIT_PASSWORD</span><span style="color:#f92672">=</span><span style="color:#e6db74">$ADMIN_PASSWORD</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">SERVICE_PASSWORD</span><span style="color:#f92672">=</span><span style="color:#e6db74">$ADMIN_PASSWORD</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">HOST_IP</span><span style="color:#f92672">=</span><span style="color:#e6db74">&lt;HOST_IP&gt;</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">FLOATING_RANGE</span><span style="color:#f92672">=</span><span style="color:#e6db74">&lt;HOST_IP&gt;/24</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">Q_FLOATING_ALLOCATION_POOL</span><span style="color:#f92672">=</span><span style="color:#e6db74">start=&lt;HOST_IP&gt;.150,end=&lt;HOST_IP&gt;.200</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">FIXED_RANGE</span><span style="color:#f92672">=</span><span style="color:#e6db74">10.11.12.0/24</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">FIXED_NETWORK_SIZE</span><span style="color:#f92672">=</span><span style="color:#e6db74">256</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">PUBLIC_INTERFACE</span><span style="color:#f92672">=</span><span style="color:#e6db74">eno1</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">PUBLIC_NETWORK_GATEWAY</span><span style="color:#f92672">=</span><span style="color:#e6db74">&lt;HOST_IP&gt;.1</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">LOGFILE</span><span style="color:#f92672">=</span><span style="color:#e6db74">$DEST/logs/stack.sh.log</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">LOGDAYS</span><span style="color:#f92672">=</span><span style="color:#e6db74">2</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">SWIFT_HASH</span><span style="color:#f92672">=</span><span style="color:#e6db74">66a3d6b56c1f479c8b4e70ab5c2000f5</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">SWIFT_REPLICAS</span><span style="color:#f92672">=</span><span style="color:#e6db74">1</span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">SWIFT_DATA_DIR</span><span style="color:#f92672">=</span><span style="color:#e6db74">$DEST/data</span>
</span></span></code></pre></div><p>(The <code>&lt;HOST_IP&gt;.XXX</code> numbers are obviously replacing the last part of the IP address.)</p>
<p>What I&rsquo;m telling OpenStack is that I &hellip;</p>
<ul>
<li>already have a Gateway in the network, use it!</li>
<li>Already know what the IP allocation pool looks like</li>
</ul>
<h3 id="next">Next</h3>
<p>With that, hopefully you can go do OpenStack stuff and not have to worry about networking being the biggest issue in your life. Good luck!!!</p>
]]></content:encoded></item></channel></rss>