-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
50 lines (34 loc) · 4.25 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[iknownothing]]></title>
<link href="http://iknownothing.github.io/atom.xml" rel="self"/>
<link href="http://iknownothing.github.io/"/>
<updated>2014-11-26T22:02:15+08:00</updated>
<id>http://iknownothing.github.io/</id>
<author>
<name><![CDATA[Aslan Yu]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Juno on RHEL Tricks]]></title>
<link href="http://iknownothing.github.io/blog/2014/11/26/juno-on-rhel-tricks/"/>
<updated>2014-11-26T09:30:26+08:00</updated>
<id>http://iknownothing.github.io/blog/2014/11/26/juno-on-rhel-tricks</id>
<content type="html"><![CDATA[<p>Install a OpenStack never been so easy as a packsack which build on top of Foreman which on top of Puppet. You just install openstack-packstack, and go</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>packstack --allinone</span></code></pre></td></tr></table></div></figure>
<p>Since I’m using a RHEL instead of a CentOS (part of my superstition),it’s necessary to get rid of annoying RHN notification. I just delete all related packages:</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>yum remove -y rhn-check rhn-client-tools rhn-setup rhn-setup-gnome rhnlib yum-rhn-plugin rhnsd subscription-manager subscription-manager-gui subscription-manager-firstboot</span></code></pre></td></tr></table></div></figure>
<p>Also, I accidentally installed a GUI, which means the NetworkManager is running, I have to disable it.</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>systemctl disable NetworkManager
</span><span class='line'>systemctl stop NetworkManager </span></code></pre></td></tr></table></div></figure>
<p>However, as the tradition of open source, there always some minor issues.
First of all, you should update the RHEL/CentOS to avoid dependency issues. But, even after using a EPEL7 repo, you will find you stuck on certain packages. In my case, it’s <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/libselinux-ruby-2.2.2-6.el7.x86_64.rpm">ruby(selling) </a>as always, and <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/selinux-policy-3.12.1-153.el7.noarch.rpm">selinux-policy</a> / <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/selinux-policy-targeted-3.12.1-153.el7.noarch.rpm">selinux-policy-targeted</a>. After a system update, there’re <a href="http://pkgs.org/centos-7/centos-extras-x86_64/python-greenlet-0.4.2-3.el7.x86_64.rpm/download/">python-greenlets</a>, <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/python-pygments-1.4-9.el7.noarch.rpm">python-pygments</a>, <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/python-webob-1.2.3-6.el7.noarch.rpm">python-webob</a> and <a href="ftp://rpmfind.net/linux/centos/7.0.1406/os/x86_64/Packages/python-webtest-1.3.4-6.el7.noarch.rpm">python-webtest</a> will stick on my way.</p>
<p>Then there’s a bummer: the mongoldb installed but failed to start. The output indicates that the forked child process failed to locate PID file. The google will tell you it’s a bug about correct directory and correct permission, however it’s not my case. I found the process is looking for <strong>/var/run/mongodb/mongod.pid</strong>, though the <strong>/etc/mongodb.conf</strong> shows the pid file name is <strong>/var/run/mongodb/mongodb.pid</strong>. So all you need to do is make sure <strong>/usr/lib/systemd/system/mongod.service</strong> and <strong>/etc/mongodb.conf</strong> have same setting about the filename.</p>
<p>Pretty much that will be it. You will soon got a OpenStack in pack with a nagios inside you can play with. :)</p>
]]></content>
</entry>
</feed>