{"id":1089,"date":"2015-09-17T19:32:18","date_gmt":"2015-09-17T17:32:18","guid":{"rendered":"https:\/\/elkano.org\/blog\/?p=1089"},"modified":"2015-09-18T09:19:52","modified_gmt":"2015-09-18T07:19:52","slug":"calamari-ubuntu-14-04-firefly","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/calamari-ubuntu-14-04-firefly\/","title":{"rendered":"Calamari on Ubuntu 14.04 with Firefly"},"content":{"rendered":"<p>Calamari is great console developed by the Inktank Team, but the process, building it, was a very difficult and laborious process. The good news is that now they are building binary packages and put them in a repository that make the calamari installation a lot easier. Although, the packages are in a dev stage the console is very usable. The repository can be found here:<\/p>\n<p>http:\/\/download.ceph.com\/calamari\/<\/p>\n<p>To set the repository run the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">echo &quot;deb http:\/\/download.ceph.com\/calamari\/devel\/trusty\/ trusty main&quot; &gt; \/etc\/apt\/sources.list.d\/calamari.list\r\n<\/pre>\n<p>Then get the repository key:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">wget -q -O- &#039;https:\/\/ceph.com\/git\/?p=ceph.git;a=blob_plain;f=keys\/autobuild.asc&#039; | sudo apt-key add -\r\n<\/pre>\n<p>And finally install the packages:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo apt-get install calamari-server calamari-clients\r\n<\/pre>\n<p>Run initialize<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo calamari-ctl initialize\r\n[INFO] Loading configuration..\r\n[INFO] Starting\/enabling salt...\r\n[INFO] Starting\/enabling postgres...\r\n[INFO] Updating database...\r\n[INFO] Initializing web interface...\r\n[INFO] Starting\/enabling services...\r\n[INFO] Updating already connected nodes.\r\n[INFO] Restarting services...\r\n[INFO] Complete.\r\n<\/pre>\n<p>If you want to go through the process of building the packages for yourself, you can do it with the help of these guides:<\/p>\n<p><a href=\"http:\/\/ceph.com\/calamari\/docs\/operations\/server_install.html\">http:\/\/ceph.com\/calamari\/docs\/operations\/server_install.html<\/a><br \/>\n<a href=\"https:\/\/ceph.com\/category\/calamari\/\">https:\/\/ceph.com\/category\/calamari\/<\/a><\/p>\n<p>In fact, I have to built the calamari-server package from the sources because I couldn&#8217;t make it work in my server, the initialize process always finished with errors. I guess there was some bug in the binary package that was fixed in the sources. To save time to you, if you want to install the package I built, you can get it here: <a href=\"http:\/\/elkano.org\/repos\/misc\/calamari-server_1.3.0.1-111-g208b255_amd64.deb\">calamari-server_1.3.0.1-111-g208b255_amd64.deb<\/a><\/p>\n<p>I the case that you built the packages from the sources or used the package I post here you should check <a href=\"https:\/\/elkano.org\/blog\/calamari-initialize-ubuntu-14-04-importerror-module-named-_io\/\" target=\"_blank\">this post<\/a> too.<\/p>\n<p>Calamari needs saltstack to run, but I faced issues with the last versions of saltstack, I guess calamari is only compatible with the branch 2014-7 of saltstack. To install this version you can add this repository:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">echo &quot;deb http:\/\/ppa.launchpad.net\/saltstack\/salt2014-7\/ubuntu trusty main&quot; &gt; \/etc\/apt\/sources.list.d\/saltstack-salt-trusty.list\r\n<\/pre>\n<p>Install de repository key:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">gpg --keyserver keyserver.ubuntu.com --recv-key 0E27C0A6 &amp;&amp; gpg -a --export 0E27C0A6 | sudo apt-key add -\r\n<\/pre>\n<p>Or simply run this command to get the repository working on your machine:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo add-apt-repository ppa:saltstack\/salt2014-7\r\n<\/pre>\n<p>Now you can install the salt-master and salt-minion if needed:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo apt-get install salt-master\r\n<\/pre>\n<p>You have to be sure that in your ceph nodes you have the same salt version that you have in your master:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo dpkg -l | grep salt\r\nii  salt-common                          2014.7.5+ds-1ubuntu1             all          shared libraries that salt requires for all packages\r\nii  salt-master                          2014.7.5+ds-1ubuntu1             all          remote manager to administer servers via salt\r\nii  salt-minion                          2014.7.5+ds-1ubuntu1             all          client package for salt, the distributed remote execution system\r\n<\/pre>\n<p>You can check if the clamari services are working Ok:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">$ sudo supervisorctl status\r\ncarbon-cache                     RUNNING    pid 1088, uptime 23:19:02\r\ncthulhu                          RUNNING    pid 27734, uptime 0:15:00\r\n<\/pre>\n<p>If something is wrong you should check the \/var\/log\/calamri directory<\/p>\n<p><a href=\"https:\/\/elkano.org\/blog\/wp-content\/uploads\/2015\/09\/about_calamari.png\"><img loading=\"lazy\" class=\"aligncenter wp-image-1110 size-full\" src=\"https:\/\/elkano.org\/blog\/wp-content\/uploads\/2015\/09\/about_calamari.png\" srcset=\"https:\/\/elkano.org\/blog\/wp-content\/uploads\/2015\/09\/about_calamari-300x170.png 300w, https:\/\/elkano.org\/blog\/wp-content\/uploads\/2015\/09\/about_calamari.png 596w\" alt=\"about_calamari\" width=\"596\" height=\"337\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calamari is great console developed by the Inktank Team, but the process, building it, was a very difficult and laborious process. The good news is that now they are building binary packages and put them in a repository that make the calamari installation a lot easier. Although, the packages are in a dev stage the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[156,3],"tags":[133,121,157],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1089"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=1089"}],"version-history":[{"count":26,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1089\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1089\/revisions\/1118"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}