<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>
        timfreund's changelog    </title>
        <link href="/changelog/atom.xml" rel="self" />
    
        <link href="/"/>
    
        
    <updated>2015-08-12T05:31:19Z</updated>

    <id>/changelog/atom.xml/</id>

                      <entry>
            <title type="html">Work on 2015-07-20</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2015-07-20.html"/>
            <updated>2015-07-20T00:37:02Z</updated>
            <published>2015-07-20T00:37:02Z</published>
            <id>/changelog/2015-07-20.html</id>
                        <category   scheme="/blog/tags"
                        term="ceph"
                        label="Ceph" />
            
            <content type="html">
                &lt;p&gt;I spent the last few days learning about the &lt;a href=&#34;https://www.opensuse.org/en/&#34;&gt;openSUSE&lt;/a&gt;
&lt;a href=&#34;http://ceph.com&#34;&gt;Ceph&lt;/a&gt; installation process.  I ran into some issues, and I&amp;#8217;m not
done yet, so these are just my working notes for now.  Once complete, I&amp;#8217;ll
write up the process on &lt;a href=&#34;http://tim.freunds.net/blog&#34;&gt;my regular blog&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Prerequisite: build a tool to build and destroy small clusters&amp;nbsp;quickly&lt;/h3&gt;
&lt;p&gt;I needed a way to quickly provision and destroy
virtual machines that were well suited to run small Ceph clusters.  I mostly
run &lt;a href=&#34;https://www.opensuse.org/en/&#34;&gt;libvirt&lt;/a&gt; / &lt;a href=&#34;http://www.linux-kvm.org/page/Main_Page&#34;&gt;kvm&lt;/a&gt;
in my home lab, and I didn&amp;#8217;t find any solutions tailored to that platform, so
I wrote &lt;a href=&#34;https://github.com/timfreund/ceph-libvirt-clusterer&#34;&gt;ceph-libvirt-clusterer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/timfreund/ceph-libvirt-clusterer&#34;&gt;Ceph-libvirt-clusterer&lt;/a&gt;
lets me clone a template virtual machine and attach as many &lt;span class=&#34;caps&#34;&gt;OSD&lt;/span&gt; disks
as I&amp;#8217;d like in the process.  I&amp;#8217;m really happy with the tool
considering that I only have a day&amp;#8217;s worth of work in it, and I got to
learn some details of the libvirt &lt;span class=&#34;caps&#34;&gt;API&lt;/span&gt; and python bindings in the&amp;nbsp;process.&lt;/p&gt;
&lt;h3&gt;Build a template&amp;nbsp;machine&lt;/h3&gt;
&lt;p&gt;I built a template machine with
&lt;a href=&#34;https://en.opensuse.org/Portal:Tumbleweed&#34;&gt;openSUSE&amp;#8217;s tumbleweed&lt;/a&gt; and
completed the following preliminary&amp;nbsp;configurations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;created ceph&amp;nbsp;user&lt;/li&gt;
&lt;li&gt;ceph user has a &lt;span class=&#34;caps&#34;&gt;SSH&lt;/span&gt;&amp;nbsp;key&lt;/li&gt;
&lt;li&gt;ceph user&amp;#8217;s public key is in the ceph user&amp;#8217;s authorized_keys&amp;nbsp;file&lt;/li&gt;
&lt;li&gt;ceph user is configured for passwordless&amp;nbsp;sudo&lt;/li&gt;
&lt;li&gt;emacs is installed (not strictly necessary :-)&amp;nbsp;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Provision a&amp;nbsp;cluster&lt;/h3&gt;
&lt;p&gt;I used ceph-libvirt-clusterer to create a four node cluster, and each node had
two &lt;span class=&#34;caps&#34;&gt;8GB&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;OSD&lt;/span&gt; drives&amp;nbsp;attached.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;/media/images/articles/cephlvc-running-machines.png&#34;/&gt;&lt;/p&gt;
&lt;h3&gt;Install Ceph with&amp;nbsp;ceph-deploy&lt;/h3&gt;
&lt;p&gt;Once the machines were built, I followed
the &lt;a href=&#34;https://www.suse.com/documentation/ses-1/book_storage_admin/data/ceph_install_ceph-deploy.html&#34;&gt;&lt;span class=&#34;caps&#34;&gt;SUSE&lt;/span&gt; Enterprise Storage&amp;nbsp;Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The ceph packages aren&amp;#8217;t yet in the mainline repositories, so I added it
to the admin&amp;nbsp;node:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;sudo zypper ar -f http://download.opensuse.org/repositories/filesystems:/ceph/openSUSE_Tumbleweed/ ceph&lt;br /&gt;&lt;span class=&#34;nv&#34;&gt;$ &lt;/span&gt;sudo zypper update&lt;br /&gt;Retrieving repository &lt;span class=&#34;s1&#34;&gt;&amp;#39;ceph&amp;#39;&lt;/span&gt; metadata ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;se&#34;&gt;\]&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;New repository or package signing key received:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;  Repository:       ceph&lt;br /&gt;  Key Name:         filesystems &lt;span class=&#34;caps&#34;&gt;OBS&lt;/span&gt; Project &amp;lt;filesystems@build.opensuse.org&amp;gt;&lt;br /&gt;  Key Fingerprint:  &lt;span class=&#34;caps&#34;&gt;B1FB5374&lt;/span&gt; 87204722 &lt;span class=&#34;caps&#34;&gt;05FA6019&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;98C97FE7&lt;/span&gt; 324E6311&lt;br /&gt;  Key Created:      Mon 12 May 2014 10:34:19 &lt;span class=&#34;caps&#34;&gt;AM&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;EDT&lt;/span&gt;&lt;br /&gt;  Key Expires:      Wed 20 Jul 2016 10:34:19 &lt;span class=&#34;caps&#34;&gt;AM&lt;/span&gt; &lt;span class=&#34;caps&#34;&gt;EDT&lt;/span&gt;&lt;br /&gt;  Rpm Name:         gpg-pubkey-324e6311-5370dbeb&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you want to reject the key, trust temporarily, or trust always? &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;r/t/a/? shows all options&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;r&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;: a&lt;br /&gt;Retrieving repository &lt;span class=&#34;s1&#34;&gt;&amp;#39;ceph&amp;#39;&lt;/span&gt; metadata .........................................................................................................................................................................&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;done&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;Building repository &lt;span class=&#34;s1&#34;&gt;&amp;#39;ceph&amp;#39;&lt;/span&gt; cache ..............................................................................................................................................................................&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;done&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;Loading repository data...&lt;br /&gt;Reading installed packages...&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;p&gt;And ceph packages were&amp;nbsp;visible:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;tim@linux-7d21:~&amp;gt; zypper search ceph&lt;br /&gt;Loading repository data...&lt;br /&gt;Reading installed packages...&lt;br /&gt;&amp;nbsp;&lt;br /&gt;S | Name               | Summary                                           | Type&lt;br /&gt;--+--------------------+---------------------------------------------------+-----------&lt;br /&gt;  | ceph               | User space components of the Ceph file system     | package&lt;br /&gt;  | ceph               | User space components of the Ceph file system     | srcpackage&lt;br /&gt;  | ceph-common        | Ceph Common                                       | package&lt;br /&gt;  | ceph-deploy        | Admin and deploy tool &lt;span class=&#34;k&#34;&gt;for &lt;/span&gt;Ceph                    | package&lt;br /&gt;  | ceph-deploy        | Admin and deploy tool &lt;span class=&#34;k&#34;&gt;for &lt;/span&gt;Ceph                    | srcpackage&lt;br /&gt;  | ceph-devel-compat  | Compatibility package &lt;span class=&#34;k&#34;&gt;for &lt;/span&gt;Ceph headers            | package&lt;br /&gt;  | ceph-fuse          | Ceph fuse-based client                            | package&lt;br /&gt;  | ceph-libs-compat   | Meta package to include ceph libraries            | package&lt;br /&gt;  | ceph-radosgw       | Rados &lt;span class=&#34;caps&#34;&gt;REST&lt;/span&gt; gateway                                | package&lt;br /&gt;  | ceph-test          | Ceph benchmarks and &lt;span class=&#34;nb&#34;&gt;test &lt;/span&gt;tools                    | package&lt;br /&gt;  | libcephfs1         | Ceph distributed file system client library       | package&lt;br /&gt;  | libcephfs1-devel   | Ceph distributed file system headers              | package&lt;br /&gt;  | python-ceph-compat | Compatibility package &lt;span class=&#34;k&#34;&gt;for &lt;/span&gt;Cephs python libraries  | package&lt;br /&gt;  | python-cephfs      | Python libraries &lt;span class=&#34;k&#34;&gt;for &lt;/span&gt;Ceph distributed file system | package&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;h4&gt;First issue:  python was missing on the other&amp;nbsp;nodes&lt;/h4&gt;
&lt;p&gt;When I installed ceph-deploy on the admin node, python was also
installed.  The other nodes were still running with a bare minimum
configuration from the tumbleweed install, so python was missing, and
ceph-deploy&amp;#8217;s install step&amp;nbsp;failed.&lt;/p&gt;
&lt;p&gt;I installed &lt;a href=&#34;http://www.ansible.com/home&#34;&gt;Ansible&lt;/a&gt; to correct the problem on all
nodes simultaneously, but Ansible requires python on the remote side, too.
That meant I had to manually install python on the remaining three nodes just
like sysadmins had to do years&amp;nbsp;ago.&lt;/p&gt;
&lt;h4&gt;Second issue:  all nodes need the &lt;span class=&#34;caps&#34;&gt;OBS&lt;/span&gt;&amp;nbsp;repository&lt;/h4&gt;
&lt;p&gt;I didn&amp;#8217;t add the &lt;span class=&#34;caps&#34;&gt;OBS&lt;/span&gt; repository to the remaining three nodes because I
wanted to see if ceph-deploy would add it automatically.  I didn&amp;#8217;t expect
that to be the case, but since this version of ceph-deploy came directly from
&lt;span class=&#34;caps&#34;&gt;SUSE&lt;/span&gt;, there was a&amp;nbsp;chance.&lt;/p&gt;
&lt;p&gt;Fortunately Ansible works&amp;nbsp;now:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;ceph@linux-7d21:~/tinyceph&amp;gt; ansible -i ansible-inventory all -a &lt;span class=&#34;s2&#34;&gt;&amp;quot;sudo zypper ar -f http://download.opensuse.org/repositories/filesystems:/ceph/openSUSE_Tumbleweed/ ceph&amp;quot;&lt;/span&gt;&lt;br /&gt;192.168.122.122 | success | &lt;span class=&#34;nv&#34;&gt;rc&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;0 &amp;gt;&amp;gt;&lt;br /&gt;Adding repository &lt;span class=&#34;s1&#34;&gt;&amp;#39;ceph&amp;#39;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;......done&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;Repository &lt;span class=&#34;s1&#34;&gt;&amp;#39;ceph&amp;#39;&lt;/span&gt; successfully added&lt;br /&gt;Enabled     : Yes&lt;br /&gt;Autorefresh : Yes&lt;br /&gt;&lt;span class=&#34;caps&#34;&gt;GPG&lt;/span&gt; Check   : Yes&lt;br /&gt;&lt;span class=&#34;caps&#34;&gt;URI&lt;/span&gt;         : http://download.opensuse.org/repositories/filesystems:/ceph/openSUSE_Tumbleweed/&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;span class=&#34;c&#34;&gt;# and three more nodes worth of output...&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;ceph@linux-7d21:~/tinyceph&amp;gt; ansible -i ansible-inventory all -a &lt;span class=&#34;s2&#34;&gt;&amp;quot;sudo zypper --gpg-auto-import-keys update&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;p&gt;Once both of these commands completed, &lt;code&gt;ceph-deploy install&lt;/code&gt; worked as&amp;nbsp;expected.&lt;/p&gt;
&lt;h4&gt;Third issue: I was using &lt;span class=&#34;caps&#34;&gt;IP&lt;/span&gt;&amp;nbsp;addresses&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;ceph-deploy new&lt;/code&gt; complains when provided with &lt;span class=&#34;caps&#34;&gt;IP&lt;/span&gt;&amp;nbsp;addresses:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;ceph@linux-7d21:~/tinyceph&amp;gt; ceph-deploy new 192.168.122.121 192.168.122.122 192.168.122.123 192.168.122.124&lt;br /&gt;usage: ceph-deploy new &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;-h&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;--no-ssh-copykey&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;--fsid &lt;span class=&#34;caps&#34;&gt;FSID&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;                       &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;--cluster-network CLUSTER_NETWORK&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;                       &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;--public-network PUBLIC_NETWORK&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;                       &lt;span class=&#34;caps&#34;&gt;MON&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;MON&lt;/span&gt; ...&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;ceph-deploy new: error: 192.168.122.121 must be a hostname not an &lt;span class=&#34;caps&#34;&gt;IP&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;p&gt;In the future, it&amp;#8217;d be pretty cool if ceph-libvirt-clusterer supported
updating &lt;span class=&#34;caps&#34;&gt;DNS&lt;/span&gt; records so I didn&amp;#8217;t need to resort to the host file
ansible playbook that I used&amp;nbsp;today:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;hosts&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;all&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;sudo&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;yes&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;tasks&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;add tinyceph-00&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hosts line=&amp;#39;192.168.122.121 tinyceph-00&amp;#39;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;add tinyceph-01&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hosts line=&amp;#39;192.168.122.122 tinyceph-01&amp;#39;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;add tinyceph-02&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hosts line=&amp;#39;192.168.122.123 tinyceph-02&amp;#39;&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;add tinyceph-03&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hosts line=&amp;#39;192.168.122.124 tinyceph-03&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;hosts&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;192.168.122.121&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;sudo&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;yes&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;tasks&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;update hostname&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hostname line=&amp;#39;tinyceph-00&amp;#39; state=present regexp=linux-7d21&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;hosts&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;192.168.122.122&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;sudo&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;yes&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;tasks&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;update hostname&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hostname line=&amp;#39;tinyceph-01&amp;#39; state=present regexp=linux-7d21&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;hosts&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;192.168.122.123&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;sudo&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;yes&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;tasks&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;update hostname&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hostname line=&amp;#39;tinyceph-02&amp;#39; state=present regexp=linux-7d21&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;hosts&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;192.168.122.124&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;sudo&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;yes&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;l-Scalar-Plain&#34;&gt;tasks&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt;&lt;br /&gt;  &lt;span class=&#34;p-Indicator&#34;&gt;-&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;update hostname&lt;/span&gt;&lt;br /&gt;    &lt;span class=&#34;l-Scalar-Plain&#34;&gt;lineinfile&lt;/span&gt;&lt;span class=&#34;p-Indicator&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;l-Scalar-Plain&#34;&gt;dest=/etc/hostname line=&amp;#39;tinyceph-03&amp;#39; state=present regexp=linux-7d21&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;&lt;span class=&#34;caps&#34;&gt;YAML&lt;/span&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;h4&gt;Fourth issue:  tumbleweed uses systemd, but ceph-deploy doesn&amp;#8217;t expect&amp;nbsp;that&lt;/h4&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;ceph_deploy.mon&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;INFO&lt;/span&gt;  &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; distro info: openSUSE 20150714 x86_64&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; determining &lt;span class=&#34;k&#34;&gt;if &lt;/span&gt;provided host has same hostname in remote&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; get remote short hostname&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; deploying mon to tinyceph-03&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; get remote short hostname&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; remote hostname: tinyceph-03&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; write cluster configuration to /etc/ceph/&lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;cluster&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;.conf&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; create the mon path &lt;span class=&#34;k&#34;&gt;if &lt;/span&gt;it does not exist&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; checking &lt;span class=&#34;k&#34;&gt;for done &lt;/span&gt;path: /var/lib/ceph/mon/ceph-tinyceph-03/done&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; create a &lt;span class=&#34;k&#34;&gt;done &lt;/span&gt;file to avoid re-doing the mon deployment&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;DEBUG&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; create the init path &lt;span class=&#34;k&#34;&gt;if &lt;/span&gt;it does not exist&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;INFO&lt;/span&gt;  &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; Running &lt;span class=&#34;nb&#34;&gt;command&lt;/span&gt;: sudo /etc/init.d/ceph -c /etc/ceph/ceph.conf start mon.tinyceph-03&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; Traceback &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;most recent call last&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;:&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;/usr/lib/python2.7/site-packages/remoto/process.py&amp;quot;&lt;/span&gt;, line 94, in run&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;     reporting&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;conn, result, timeout&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;/usr/lib/python2.7/site-packages/remoto/log.py&amp;quot;&lt;/span&gt;, line 13, in reporting&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;     &lt;span class=&#34;nv&#34;&gt;received&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; result.receive&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;timeout&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;/usr/lib/python2.7/site-packages/execnet/gateway_base.py&amp;quot;&lt;/span&gt;, line 701, in receive&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;     raise self._getremoteerror&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; or EOFError&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; RemoteError: Traceback &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;most recent call last&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;:&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;&amp;lt;string&amp;gt;&amp;quot;&lt;/span&gt;, line 1033, in executetask&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;&amp;lt;remote exec&amp;gt;&amp;quot;&lt;/span&gt;, line 12, in _remote_run&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;/usr/lib64/python2.7/subprocess.py&amp;quot;&lt;/span&gt;, line 710, in __init__&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;     errread, errwrite&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   File &lt;span class=&#34;s2&#34;&gt;&amp;quot;/usr/lib64/python2.7/subprocess.py&amp;quot;&lt;/span&gt;, line 1335, in _execute_child&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;     raise child_exception&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; OSError: &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;Errno 2&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; No such file or directory&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;tinyceph-03&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;ceph_deploy.mon&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; Failed to execute &lt;span class=&#34;nb&#34;&gt;command&lt;/span&gt;: /etc/init.d/ceph -c /etc/ceph/ceph.conf start mon.tinyceph-03&lt;br /&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;ceph_deploy&lt;span class=&#34;o&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;caps&#34;&gt;ERROR&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; GenericError: Failed to create 4 monitors&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;p&gt;Sure enough, a little manual inspection revealed no file at &lt;code&gt;/etc/init.d/ceph&lt;/code&gt; and systemd&amp;nbsp;integration:&lt;/p&gt;
&lt;div class=&#34;codebox&#34;&gt;&lt;figure class=&#34;code&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre&gt;ceph@tinyceph-00:~/tinyceph&amp;gt; ls -la /etc/init.d/ceph&lt;br /&gt;ls: cannot access /etc/init.d/ceph: No such file or directory&lt;br /&gt;ceph@tinyceph-00:~/tinyceph&amp;gt; sudo service ceph status&lt;br /&gt;* ceph.target - ceph target allowing to start/stop all ceph*@.service instances at once&lt;br /&gt;   Loaded: loaded &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;/usr/lib/systemd/system/ceph.target; disabled; vendor preset: disabled&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;   Active: inactive &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;dead&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Jul 19 23:50:35 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Reached target ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;Jul 19 23:50:35 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Starting ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;Jul 19 23:50:47 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Stopped target ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;Jul 19 23:50:47 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Stopping ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;ceph@tinyceph-00:~/tinyceph&amp;gt; sudo service ceph start&lt;br /&gt;ceph@tinyceph-00:~/tinyceph&amp;gt; sudo service ceph status&lt;br /&gt;* ceph.target - ceph target allowing to start/stop all ceph*@.service instances at once&lt;br /&gt;   Loaded: loaded &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;/usr/lib/systemd/system/ceph.target; disabled; vendor preset: disabled&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&lt;br /&gt;   Active: active since Mon 2015-07-20 00:24:01 &lt;span class=&#34;caps&#34;&gt;EDT&lt;/span&gt;; 4s ago&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Jul 20 00:24:01 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Reached target ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;Jul 20 00:24:01 tinyceph-00 systemd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;: Starting ceph target allowing to start/stop all ceph*@.service instances at once.&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;figcaption&gt;Bash&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;

&lt;p&gt;I learned that this is a &lt;a href=&#34;https://bugzilla.opensuse.org/show_bug.cgi?id=937120&#34;&gt;known bug&lt;/a&gt;,
and I&amp;#8217;ll try all of this again with an older version of&amp;nbsp;openSUSE.&lt;/p&gt;
&lt;p&gt;&amp;#8230; and that&amp;#8217;s where I&amp;#8217;m calling it a night.  I&amp;#8217;ll be back at it this&amp;nbsp;week.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-08-02</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-08-02.html"/>
            <updated>2014-08-03T00:17:55Z</updated>
            <published>2014-08-03T00:17:55Z</published>
            <id>/changelog/2014-08-02.html</id>
                        <category   scheme="/blog/tags"
                        term="kallithea"
                        label="Kallithea" />
            
            <content type="html">
                &lt;p&gt;Spent 2 hours getting this &lt;a href=&#34;https://bitbucket.org/conservancy/kallithea/pull-request/25/add-user-interface-and-database-components/diff&#34;&gt;pull request&lt;/a&gt;&amp;nbsp;ready.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-07-30</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-07-30.html"/>
            <updated>2014-07-31T01:57:44Z</updated>
            <published>2014-07-31T01:57:44Z</published>
            <id>/changelog/2014-07-30.html</id>
                        <category   scheme="/blog/tags"
                        term="tag"
                        label="Tag" />
            
            <content type="html">
                &lt;p&gt;Last time I worked on Kallithea&amp;#8217;s &lt;span class=&#34;caps&#34;&gt;CI&lt;/span&gt;, I got some errors.  On a fresh
Ubuntu 14.04 &lt;span class=&#34;caps&#34;&gt;VM&lt;/span&gt; without docker, I get the following test&amp;nbsp;results:&lt;/p&gt;
&lt;h2&gt;In a Virtual&amp;nbsp;Machine&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;sqlite: 0 errors, 2&amp;nbsp;skipped&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;mysql: 0 errors, 2&amp;nbsp;skipped&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;postgresql: 1 error, 2&amp;nbsp;skipped&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;details:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;======================================================================
ERROR: test_index_with_anonymous_access_disabled (kallithea.tests.functional.test_home.TestHomeController)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &#34;/home/packer/src/kallithea-pg/kallithea/tests/functional/test_home.py&#34;, line 43, in test_index_with_anonymous_access_disabled
    status=302)
  File &#34;/home/packer/src/kallithea/.venv/local/lib/python2.7/site-packages/WebTest-1.4.3-py2.7.egg/webtest/app.py&#34;, line 759, in get
    expect_errors=expect_errors)
  File &#34;/home/packer/src/kallithea/.venv/local/lib/python2.7/site-packages/WebTest-1.4.3-py2.7.egg/webtest/app.py&#34;, line 1121, in do_request
    self._check_status(status, res)
  File &#34;/home/packer/src/kallithea/.venv/local/lib/python2.7/site-packages/WebTest-1.4.3-py2.7.egg/webtest/app.py&#34;, line 1160, in _check_status
    &#34;Bad response: %s (not %s)&#34;, res_status, status)
AppError: Bad response: 200 OK (not 302)

----------------------------------------------------------------------
Ran 1482 tests in 311.450s

FAILED (SKIP=2, errors=1)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;In a Docker&amp;nbsp;Container&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;sqlite &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m betting that these messages are a canary that will help figure out the sqlite&amp;nbsp;failures:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;kallithea_1 | not trusting file /code/.hg/hgrc from untrusted user 1000, group 1000
kallithea_1 | not trusting file /tmp/rc_test_lPm4Rl/vcs_test_hg/.hg/hgrc from untrusted user 502, group root
kallithea_1 | not trusting file /tmp/rc_test_lPm4Rl/vcs_test_hg/.hg/hgrc from untrusted user 502, group root
kallithea_1 | not trusting file /tmp/rc_test_lPm4Rl/vcs_test_hg/.hg/hgrc from untrusted user 502, group root
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here&amp;#8217;s the full list of error&amp;nbsp;details:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;kallithea_1 | ======================================================================
kallithea_1 | ERROR: test_index_with_anonymous_access_disabled (kallithea.tests.functional.test_home.TestHomeController)
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Traceback (most recent call last):
kallithea_1 |   File &#34;/code/kallithea/tests/functional/test_home.py&#34;, line 43, in test_index_with_anonymous_access_disabled
kallithea_1 |     status=302)
kallithea_1 |   File &#34;/usr/local/lib/python2.7/dist-packages/webtest/app.py&#34;, line 759, in get
kallithea_1 |     expect_errors=expect_errors)
kallithea_1 |   File &#34;/usr/local/lib/python2.7/dist-packages/webtest/app.py&#34;, line 1121, in do_request
kallithea_1 |     self._check_status(status, res)
kallithea_1 |   File &#34;/usr/local/lib/python2.7/dist-packages/webtest/app.py&#34;, line 1160, in _check_status
kallithea_1 |     &#34;Bad response: %s (not %s)&#34;, res_status, status)
kallithea_1 | AppError: Bad response: 200 OK (not 302)
kallithea_1 |
kallithea_1 | ======================================================================
kallithea_1 | FAIL: test_create_non_ascii (kallithea.tests.functional.test_admin_repos.TestAdminReposControllerGIT)
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Traceback (most recent call last):
kallithea_1 |   File &#34;/code/kallithea/tests/functional/test_admin_repos.py&#34;, line 103, in test_create_non_ascii
kallithea_1 |     self.assertEqual(response.json, {u&#39;result&#39;: True})
kallithea_1 | AssertionError: {u&#39;result&#39;: False} != {u&#39;result&#39;: True}
kallithea_1 | - {u&#39;result&#39;: False}
kallithea_1 | ?             ^^^^
kallithea_1 |
kallithea_1 | + {u&#39;result&#39;: True}
kallithea_1 | ?             ^^^
kallithea_1 |
kallithea_1 |     &#34;&#34;&#34;Fail immediately, with the given message.&#34;&#34;&#34;
kallithea_1 | &amp;gt;&amp;gt;  raise self.failureException(&#34;{u&#39;result&#39;: False} != {u&#39;result&#39;: True}\n- {u&#39;result&#39;: False}\n?             ^^^^\n\n+ {u&#39;result&#39;: True}\n?             ^^^\n&#34;)
kallithea_1 |
kallithea_1 |
kallithea_1 | ======================================================================
kallithea_1 | FAIL: test_delete_non_ascii (kallithea.tests.functional.test_admin_repos.TestAdminReposControllerGIT)
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Traceback (most recent call last):
kallithea_1 |   File &#34;/code/kallithea/tests/functional/test_admin_repos.py&#34;, line 420, in test_delete_non_ascii
kallithea_1 |     self.assertEqual(response.json, {u&#39;result&#39;: True})
kallithea_1 | AssertionError: {u&#39;result&#39;: False} != {u&#39;result&#39;: True}
kallithea_1 | - {u&#39;result&#39;: False}
kallithea_1 | ?             ^^^^
kallithea_1 |
kallithea_1 | + {u&#39;result&#39;: True}
kallithea_1 | ?             ^^^
kallithea_1 |
kallithea_1 |     &#34;&#34;&#34;Fail immediately, with the given message.&#34;&#34;&#34;
kallithea_1 | &amp;gt;&amp;gt;  raise self.failureException(&#34;{u&#39;result&#39;: False} != {u&#39;result&#39;: True}\n- {u&#39;result&#39;: False}\n?             ^^^^\n\n+ {u&#39;result&#39;: True}\n?             ^^^\n&#34;)
kallithea_1 |
kallithea_1 |
kallithea_1 | ======================================================================
kallithea_1 | FAIL: test_create_non_ascii (kallithea.tests.functional.test_admin_repos.TestAdminReposControllerHG)
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Traceback (most recent call last):
kallithea_1 |   File &#34;/code/kallithea/tests/functional/test_admin_repos.py&#34;, line 103, in test_create_non_ascii
kallithea_1 |     self.assertEqual(response.json, {u&#39;result&#39;: True})
kallithea_1 | AssertionError: {u&#39;result&#39;: False} != {u&#39;result&#39;: True}
kallithea_1 | - {u&#39;result&#39;: False}
kallithea_1 | ?             ^^^^
kallithea_1 |
kallithea_1 | + {u&#39;result&#39;: True}
kallithea_1 | ?             ^^^
kallithea_1 |
kallithea_1 |     &#34;&#34;&#34;Fail immediately, with the given message.&#34;&#34;&#34;
kallithea_1 | &amp;gt;&amp;gt;  raise self.failureException(&#34;{u&#39;result&#39;: False} != {u&#39;result&#39;: True}\n- {u&#39;result&#39;: False}\n?             ^^^^\n\n+ {u&#39;result&#39;: True}\n?             ^^^\n&#34;)
kallithea_1 |
kallithea_1 |
kallithea_1 | ======================================================================
kallithea_1 | FAIL: test_delete_non_ascii (kallithea.tests.functional.test_admin_repos.TestAdminReposControllerHG)
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Traceback (most recent call last):
kallithea_1 |   File &#34;/code/kallithea/tests/functional/test_admin_repos.py&#34;, line 420, in test_delete_non_ascii
kallithea_1 |     self.assertEqual(response.json, {u&#39;result&#39;: True})
kallithea_1 | AssertionError: {u&#39;result&#39;: False} != {u&#39;result&#39;: True}
kallithea_1 | - {u&#39;result&#39;: False}
kallithea_1 | ?             ^^^^
kallithea_1 |
kallithea_1 | + {u&#39;result&#39;: True}
kallithea_1 | ?             ^^^
kallithea_1 |
kallithea_1 |     &#34;&#34;&#34;Fail immediately, with the given message.&#34;&#34;&#34;
kallithea_1 | &amp;gt;&amp;gt;  raise self.failureException(&#34;{u&#39;result&#39;: False} != {u&#39;result&#39;: True}\n- {u&#39;result&#39;: False}\n?             ^^^^\n\n+ {u&#39;result&#39;: True}\n?             ^^^\n&#34;)
kallithea_1 |
kallithea_1 |
kallithea_1 | ----------------------------------------------------------------------
kallithea_1 | Ran 1479 tests in 281.475s
kallithea_1 |
kallithea_1 | FAILED (SKIP=2, errors=1, failures=4)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Boo&amp;#8230; file permissions were not the&amp;nbsp;problem.&lt;/p&gt;
&lt;p&gt;I just removed the following from my fig&amp;nbsp;config:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;volumes:
 - .:/code/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And added the following to my&amp;nbsp;Dockerfile:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RUN useradd -d /home/kallithea -m -s /bin/bash -u 2000 kallithea
RUN chown -R kallithea /code
USER kallithea
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;#8230; to ensure that there was no weirdness induced from running as root
and running against files that were owned by a different &lt;span class=&#34;caps&#34;&gt;UID&lt;/span&gt; than the
test process, and I got the same four errors.  Something&amp;#8217;s up when
running in this&amp;nbsp;container.&lt;/p&gt;
&lt;p&gt;All the failing tests include the string &amp;#8220;non_ascii&amp;#8221; in their&amp;nbsp;names.&lt;/p&gt;
&lt;p&gt;Let&amp;#8217;s see what &lt;code&gt;locale&lt;/code&gt; tells us on the virtual&amp;nbsp;machine:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;packer@example:~/src/kallithea$ locale
LANG=en_US.utf8
LANGUAGE=en_US:
LC_CTYPE=&#34;en_US.utf8&#34;
LC_NUMERIC=&#34;en_US.utf8&#34;
LC_TIME=&#34;en_US.utf8&#34;
LC_COLLATE=&#34;en_US.utf8&#34;
LC_MONETARY=&#34;en_US.utf8&#34;
LC_MESSAGES=&#34;en_US.utf8&#34;
LC_PAPER=&#34;en_US.utf8&#34;
LC_NAME=&#34;en_US.utf8&#34;
LC_ADDRESS=&#34;en_US.utf8&#34;
LC_TELEPHONE=&#34;en_US.utf8&#34;
LC_MEASUREMENT=&#34;en_US.utf8&#34;
LC_IDENTIFICATION=&#34;en_US.utf8&#34;
LC_ALL=
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;#8230; and in the Docker&amp;nbsp;container:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;kallithea@56a8a9afa48d:/code$ locale
LANG=
LANGUAGE=
LC_CTYPE=&#34;POSIX&#34;
LC_NUMERIC=&#34;POSIX&#34;
LC_TIME=&#34;POSIX&#34;
LC_COLLATE=&#34;POSIX&#34;
LC_MONETARY=&#34;POSIX&#34;
LC_MESSAGES=&#34;POSIX&#34;
LC_PAPER=&#34;POSIX&#34;
LC_NAME=&#34;POSIX&#34;
LC_ADDRESS=&#34;POSIX&#34;
LC_TELEPHONE=&#34;POSIX&#34;
LC_MEASUREMENT=&#34;POSIX&#34;
LC_IDENTIFICATION=&#34;POSIX&#34;
LC_ALL=
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The Docker container doesn&amp;#8217;t include &lt;code&gt;en_US.utf8&lt;/code&gt;, but it does include
&lt;code&gt;C.UTF-8&lt;/code&gt;&amp;#8230; let&amp;#8217;s give that a&amp;nbsp;spin.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;kallithea_1 | Ran 1479 tests in 286.144s
kallithea_1 |
kallithea_1 | OK (SKIP=2)
kallithea_kallithea_1 exited with code 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class=&#34;caps&#34;&gt;WOO&lt;/span&gt;!&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-07-12</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-07-12.html"/>
            <updated>2014-07-12T23:56:45Z</updated>
            <published>2014-07-12T23:56:45Z</published>
            <id>/changelog/2014-07-12.html</id>
                        <category   scheme="/blog/tags"
                        term="kallithea"
                        label="Kallithea" />
                        <category   scheme="/blog/tags"
                        term="docker"
                        label="Docker" />
            
            <content type="html">
                &lt;p&gt;The unit tests now run inside of containers managed by fig.  I wrote
two scripts to facilitate the&amp;nbsp;execution:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;integration-configs/fig-config-glue.py: reads environment variables set by fig to create a sqlalchemy &lt;span class=&#34;caps&#34;&gt;URL&lt;/span&gt; and update an ini file with&amp;nbsp;it.&lt;/li&gt;
&lt;li&gt;integration-configs/execute_tests.sh: runs the above script, updating test.ini, then sleeps for 10 seconds while the database starts, then runs&amp;nbsp;nosetests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I had been switching between the various databases just by using a
different fig configuration file, but that is insufficient.  Fig must
be invoked with both of the following&amp;nbsp;arguments:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fig -f fig-${DB_TYPE} -p kallithea-${DB_TYPE}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If a project name isn&amp;#8217;t specified, fig won&amp;#8217;t differentiate between the
various database containers (all named &amp;#8220;db&amp;#8221; in the&amp;nbsp;configs).&lt;/p&gt;
&lt;p&gt;Of course, different numbers of tests fail in each configuration
(including some sqlite tests that don&amp;#8217;t fail when I run it directly on
my machine without docker in the middle), so there&amp;#8217;s still some
testing and adjusting to&amp;nbsp;complete.&lt;/p&gt;
&lt;p&gt;Another annoyance:  when the tests complete, fig shuts down both containers,
but fig&amp;#8217;s exit code is always zero even if one of the containers exited
with a non-zero return code.  Going to ask the team if that&amp;#8217;s by design
or if they&amp;#8217;re open to changing it.  As is, I&amp;#8217;ll need to either parse
the nose output or parse the output of &lt;code&gt;fig ps&lt;/code&gt; to give an appropriate
exit code to the build&amp;nbsp;server.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-07-11</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-07-11.html"/>
            <updated>2014-07-11T23:08:49Z</updated>
            <published>2014-07-11T23:08:49Z</published>
            <id>/changelog/2014-07-11.html</id>
                        <category   scheme="/blog/tags"
                        term="kallithea"
                        label="Kallithea" />
                        <category   scheme="/blog/tags"
                        term="docker"
                        label="Docker" />
            
            <content type="html">
                &lt;p&gt;New info regarding Docker, &lt;span class=&#34;caps&#34;&gt;ENTRYPOINT&lt;/span&gt;, and&amp;nbsp;&lt;span class=&#34;caps&#34;&gt;CMD&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://docs.docker.com/reference/builder/#cmd&#34;&gt;Read the &lt;span class=&#34;caps&#34;&gt;CMD&lt;/span&gt; docs&amp;nbsp;carefully&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I thought I could use &lt;span class=&#34;caps&#34;&gt;ENTRYPOINT&lt;/span&gt; to load up environment variables and
do some voodoo with the ini file to get the database connection
configured&amp;nbsp;correctly:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ENTRYPOINT [&#34;/bin/bash&#34;, &#34;--rcfile&#34;, &#34;/code/.figrc&#34;, &#34;-c&#34;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So then anything I ran would run after the &lt;code&gt;/code/.figrc&lt;/code&gt; loaded.
Except that doesn&amp;#8217;t happen.  Read the &lt;span class=&#34;caps&#34;&gt;CMD&lt;/span&gt; docs again, and you&amp;#8217;ll see
that if the first argument is an executable, it will be executed
via the following: &lt;code&gt;/bin/sh -c&lt;/code&gt;, so no &lt;code&gt;/code/.figrc&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;/me&amp;nbsp;sighs&lt;/p&gt;
&lt;p&gt;/me comes back after 15&amp;nbsp;minutes&lt;/p&gt;
&lt;p&gt;These are not general purpose images.  They&amp;#8217;re specifically to run test
suites.  Why do I care about them working for every case?  I can just
write a wrapper script and call it a&amp;nbsp;day.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-07-10</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-07-10.html"/>
            <updated>2014-07-10T00:08:49Z</updated>
            <published>2014-07-10T00:08:49Z</published>
            <id>/changelog/2014-07-10.html</id>
                        <category   scheme="/blog/tags"
                        term="kallithea"
                        label="Kallithea" />
                        <category   scheme="/blog/tags"
                        term="docker"
                        label="Docker" />
            
            <content type="html">
                &lt;p&gt;I spent about an hour tonight working on flexible configurations for
testing &lt;a href=&#34;https://kallithea-scm.org/&#34;&gt;Kallithea&lt;/a&gt; against various
databases using &lt;a href=&#34;http://orchardup.github.io/fig/&#34;&gt;Fig&lt;/a&gt; and
&lt;a href=&#34;http://www.docker.com/&#34;&gt;Docker&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Fig handles some of the dirty work of linking together Docker
containers.  Linked containers get environment variables set to define
endpoints of the other containers.  They use
&lt;a href=&#34;http://orchardup.github.io/fig/django.html&#34;&gt;Django as an example&lt;/a&gt;
and things look pretty easy:  since the configuration file is written
in python, we can just call &lt;code&gt;os.environ.get(&#39;DB_1_PORT_5432_TCP_PORT&#39;)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;No such luck with Pylons and Pyramid, though: there we use an ini file
for configuration.  I ran into a few bumps,&amp;nbsp;though.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;paster serve&lt;/code&gt; command provides an avenue for command line
configuration: &lt;code&gt;var=value&lt;/code&gt; can be repeated to pass in configuration
options on the command line, and the named vars can be referenced in
the ini file with %(var)s.  That&amp;#8217;s&amp;nbsp;good.&lt;/p&gt;
&lt;p&gt;Fig doesn&amp;#8217;t seem to support environment variables in it&amp;#8217;s &lt;span class=&#34;caps&#34;&gt;YAML&lt;/span&gt;
configuration files, so &lt;code&gt;paster serve test.ini
dbhost=$DB_1_PORT_5432_TCP_ADDR&lt;/code&gt; results in a literal string
&amp;#8220;DB_1_PORT_5432_TCP_ADDR&amp;#8221; in the configuration.  That&amp;#8217;s bad,
but it can be fixed with a wrapper&amp;nbsp;script.&lt;/p&gt;
&lt;p&gt;Kallithea&amp;#8217;s setup-db command doesn&amp;#8217;t support the same &lt;code&gt;var=value&lt;/code&gt;
setting on the command line that &lt;code&gt;paster serve&lt;/code&gt; supports.  That&amp;#8217;s bad,
but the wrapper script can rewrite the configuration files rather than
pass in values via arguments.  That&amp;#8217;s where I&amp;#8217;m leaving off for&amp;nbsp;tonight.&lt;/p&gt;
&lt;p&gt;One other dangling question:  I tried putting my Dockerfile and
Fig yaml configurations in a subdirectory to keep the project root
uncluttered, but it didn&amp;#8217;t look like Docker liked using &lt;code&gt;..&lt;/code&gt; in place
of &lt;code&gt;.&lt;/code&gt;.  I need to confirm that: there&amp;#8217;s a chance that something else
was out of line that I didn&amp;#8217;t&amp;nbsp;notice.&lt;/p&gt;
&lt;p&gt;&lt;span class=&#34;caps&#34;&gt;EDIT&lt;/span&gt;: turns out that
&lt;a href=&#34;https://github.com/dotcloud/docker/issues/2745&#34;&gt;relative paths really aren&amp;#8217;t allowed&lt;/a&gt;.
That didn&amp;#8217;t take long to&amp;nbsp;find.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-07-04</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-07-04.html"/>
            <updated>2014-07-04T00:44:53Z</updated>
            <published>2014-07-04T00:44:53Z</published>
            <id>/changelog/2014-07-04.html</id>
                        <category   scheme="/blog/tags"
                        term="openstack"
                        label="Openstack" />
            
            <content type="html">
                &lt;p&gt;Investigating how to build authentic testing hosts that look and act
just like &lt;a href=&#34;http://ci.openstack.org/nodepool/&#34;&gt;Nodepool&lt;/a&gt;&amp;nbsp;does.&lt;/p&gt;
&lt;p&gt;When Nodepool is updating base images, it copies all files found at
&lt;a href=&#34;https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/files/nodepool/scripts/&#34;&gt;openstack-infra/config/modules/openstack_project/files/nodepool/scripts&lt;/a&gt;
to &lt;code&gt;/opt/nodepool-scripts&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Each base image type,
&lt;a href=&#34;https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/templates/nodepool/nodepool.yaml.erb&#34;&gt;defined in Nodepool&amp;#8217;s &lt;span class=&#34;caps&#34;&gt;YAML&lt;/span&gt; configuration file&lt;/a&gt;,
includes a setup attribute that matches one of the scripts.  The
matching script is executed in an environment that includes any
NODEPOOL_ variables present in the Nodepol daemon&amp;#8217;s environment.  From
all that I&amp;#8217;ve seen, this typically only includes NODEPOOL_SSH_KEY.
(See &lt;a href=&#34;https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/manifests/jenkins_dev.pp&#34;&gt;jenkins_dev.pp&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;So to build replica nodes for personal use, I should just need to copy
the scripts to /opt/nodepool-scripts and execute the right one in my
packer provisioning&amp;nbsp;configuration.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-06-18</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-06-18.html"/>
            <updated>2014-06-18T00:05:20Z</updated>
            <published>2014-06-18T00:05:20Z</published>
            <id>/changelog/2014-06-18.html</id>
                        <category   scheme="/blog/tags"
                        term="puppet"
                        label="Puppet" />
            
            <content type="html">
                &lt;p&gt;Building a system at work to create disposable machines for developer
and &lt;span class=&#34;caps&#34;&gt;QA&lt;/span&gt; use that will match production.  The process looks like&amp;nbsp;this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Query Foreman for Puppet classes used by a&amp;nbsp;hostgroup&lt;/li&gt;
&lt;li&gt;Create a Puppetfile with some knowledge about where we keep modules and the names that Foreman&amp;nbsp;provides&lt;/li&gt;
&lt;li&gt;Run r10k to sync the&amp;nbsp;modules&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did a bunch of work to extract some metadata from the Modulefiles,
but that was completely unnecessary and thus stupid.  Never hurts to
take a step back and draw a process before jumping down a rabbit&amp;nbsp;hole.&lt;/p&gt;
&lt;p&gt;I have enough information that I could skip creating the Puppetfile
all together and just clone the repo myself, but I think I like the idea
of using r10k to install modules from the Puppetfile for two&amp;nbsp;reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It ensures that stale modules are purged gracefully.  (I would have just scorched the Earth and deleted the entire modules&amp;nbsp;directory)&lt;/li&gt;
&lt;li&gt;It produces an artifact that can be used by other standard tools if&amp;nbsp;necessary.&lt;/li&gt;
&lt;/ol&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-06-11</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-06-11.html"/>
            <updated>2014-06-11T06:45:41Z</updated>
            <published>2014-06-11T06:45:41Z</published>
            <id>/changelog/2014-06-11.html</id>
                        <category   scheme="/blog/tags"
                        term="tag"
                        label="Tag" />
            
            <content type="html">
                &lt;p&gt;Investigating the
&lt;a href=&#34;http://ci.openstack.org/devstack-gate.html&#34;&gt;Devstack Gate&lt;/a&gt;
documentation.  Seems to be more out of date than I originally
expected, or I don&amp;#8217;t understand where things run.  It mentions a
matrix job called devstack-update-vm-image, but reviewing the
&lt;a href=&#34;https://jenkins.openstack.org/view/All/&#34;&gt;job list&lt;/a&gt; shows that
jobs matching that description haven&amp;#8217;t run in 9-10&amp;nbsp;months:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;devstack-update-vm-image-hpcloud-az1&lt;/li&gt;
&lt;li&gt;devstack-update-vm-image-hpcloud-az2&lt;/li&gt;
&lt;li&gt;devstack-update-vm-image-hpcloud-az3&lt;/li&gt;
&lt;li&gt;devstack-update-vm-image-rackspace&lt;/li&gt;
&lt;li&gt;devstack-update-vm-image-rackspace-dfw&lt;/li&gt;
&lt;li&gt;devstack-update-vm-image-rackspace-ord&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looking further, all devstack-update-vm-image&lt;em&gt; and
devstack-check-vms-&lt;/em&gt; jobs are&amp;nbsp;disabled.&lt;/p&gt;
&lt;p&gt;I suspect that all of this work migrated to the
&lt;a href=&#34;http://ci.openstack.org/nodepool.html&#34;&gt;Nodepool&lt;/a&gt;&amp;nbsp;project.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://nodepool.openstack.org/&#34;&gt;nodepool.openstack.org&lt;/a&gt; contains a
directory listing with logs that have recent time stamps.&amp;nbsp;Promising.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;http://nodepool.openstack.org/image.log.2014-06-04&#34;&gt;log output&lt;/a&gt;
(warning, &lt;span class=&#34;caps&#34;&gt;20MB&lt;/span&gt;) seems to confirm my&amp;nbsp;suspicion.&lt;/p&gt;
&lt;p&gt;Found the &lt;a href=&#34;https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/templates/nodepool&#34;&gt;provider configurations minus credentials&lt;/a&gt;
and the &lt;a href=&#34;https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/files/nodepool/scripts&#34;&gt;bootstrap scripts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I sent an email to the openstack-infra mailing list for&amp;nbsp;clarification.&lt;/p&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-06-01</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-06-01.html"/>
            <updated>2014-06-01T11:17:13Z</updated>
            <published>2014-06-01T11:17:13Z</published>
            <id>/changelog/2014-06-01.html</id>
                        <category   scheme="/blog/tags"
                        term="openstack"
                        label="Openstack" />
            
            <content type="html">
                &lt;p&gt;&lt;strong&gt; Fix broken link in&amp;nbsp;openstack-infra/config/doc/source/devstack-gate.rst &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The &amp;#8220;At a Glance&amp;#8221; section links to devstack_launch_slave.pp, which was&amp;nbsp;deleted.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Bugs go here for openstack-infra/config: &lt;a href=&#34;https://bugs.launchpad.net/openstack-ci&#34;&gt;https://bugs.launchpad.net/openstack-ci&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Bug at: &lt;a href=&#34;https://bugs.launchpad.net/openstack-ci/+bug/1325379&#34;&gt;https://bugs.launchpad.net/openstack-ci/+bug/1325379&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Review at: &lt;a href=&#34;https://review.openstack.org/#/c/97110/&#34;&gt;https://review.openstack.org/#/c/97110/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;            </content>
        </entry>
                            <entry>
            <title type="html">Work on 2014-05-31</title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/2014-05-31.html"/>
            <updated>2014-05-31T02:17:26Z</updated>
            <published>2014-05-31T02:17:26Z</published>
            <id>/changelog/2014-05-31.html</id>
                        <category   scheme="/blog/tags"
                        term="admin"
                        label="Admin" />
            
            <content type="html">
                &lt;p&gt;This is a new experiment borrowed from
&lt;a href=&#34;http://dachary.org/&#34;&gt;Loic Dachary&lt;/a&gt; where I plan to keep notes on any
open source or otherwise public work that I do.  I may write notes
that solve a problem for others, so it&amp;#8217;s worth doing this out in the&amp;nbsp;open.&lt;/p&gt;
&lt;p&gt;With that said, writing that I contemplate and edit more rigorously will still
appear on &lt;a href=&#34;/blog&#34;&gt;my blog&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Topics for Upstream University mentoring&amp;nbsp;meeting:&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;https://review.openstack.org/#/c/95325/ is&amp;nbsp;merged!&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Always check for inline&amp;nbsp;comments&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;py27 test failure&amp;nbsp;resolution&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;py27 test failure encountered in Jenkins is a known bugbut several
  hours were lost trying to recreate&amp;nbsp;it.&lt;/li&gt;
&lt;li&gt;https://bugs.launchpad.net/designate/+bug/1321873&lt;/li&gt;
&lt;li&gt;A Google search is insufficient: check the project bug list,&amp;nbsp;too!&lt;/li&gt;
&lt;li&gt;Kiall and Vinod are researching the&amp;nbsp;issue&lt;/li&gt;
&lt;li&gt;Bonus: learned about Tox and how to run individual&amp;nbsp;tests&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt; Attended the &lt;a href=&#34;http://eavesdrop.openstack.org/meetings/designate/2014/designate.2014-05-28-17.05.log.html&#34;&gt;team&amp;nbsp;meeting&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Learned that all projects share the same openstack-dev mailing list, and&amp;nbsp;subscribed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt; Claim &lt;a href=&#34;https://bugs.launchpad.net/designate/+bug/1282627&#34;&gt;bug&amp;nbsp;1321873&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Claimed https://bugs.launchpad.net/designate/+bug/1282627 as agreed last&amp;nbsp;week.&lt;/li&gt;
&lt;li&gt;designate-2013.2.tar.gz is the only tarball on Launchpad with a valid &lt;span class=&#34;caps&#34;&gt;AUTHORS&lt;/span&gt;&amp;nbsp;file&lt;/li&gt;
&lt;li&gt;Wrote a script to run &lt;code&gt;python setup.py sdist&lt;/code&gt; on all tags and check for &lt;span class=&#34;caps&#34;&gt;AUTHORS&lt;/span&gt; content&lt;ul&gt;
&lt;li&gt;All locally generated tarballs have correct &lt;span class=&#34;caps&#34;&gt;AUTHORS&lt;/span&gt;&amp;nbsp;information&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Will next attempt to run the jobs in a simulated Jenkins environment (see next&amp;nbsp;topic)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt; understand how Solum does devstack testing in Openstack&amp;#8217;s &lt;span class=&#34;caps&#34;&gt;CI&lt;/span&gt; system and apply that to&amp;nbsp;Designate &lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Work in&amp;nbsp;progress&lt;/li&gt;
&lt;li&gt;Learned about Devstack Gate: http://ci.openstack.org/devstack-gate.html&lt;ul&gt;
&lt;li&gt;Found a broken link (devstack_launch_slave.pp) to correct (in&amp;nbsp;openstack-infra/config)&lt;/li&gt;
&lt;li&gt;Found a high level diagram at&amp;nbsp;https://wiki.openstack.org/wiki/InfraTeam&lt;/li&gt;
&lt;li&gt;Drawing diagrams of the processes of building devstack gate nodes (see Nodepool&amp;nbsp;project)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Following the &amp;#8220;Simulating Devstack Gate Tests&amp;#8221; instructions to test
  Devstack+Designate tests locally before submitting change&amp;nbsp;requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt; create a virtual machine definition that will allow users to try&amp;nbsp;Designate &lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Work in&amp;nbsp;progress&lt;/li&gt;
&lt;li&gt;Once I started learning more about the Devstack Gate and Nodepool
  projects, I wondered if I missed some existing tools that I should
  take advantage&amp;nbsp;of.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;openstack-infra &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Much of the work I have planned for myself in the Designate project will overlap
with the openstack-infra team.  To get familiar with their work, I&amp;nbsp;have:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Signed up for openstack-infra mailing&amp;nbsp;list&lt;/li&gt;
&lt;li&gt;Put &lt;a href=&#34;https://wiki.openstack.org/wiki/Meetings/InfraTeamMeeting&#34;&gt;InfraTeamMeeting&lt;/a&gt; on my&amp;nbsp;calendar&lt;/li&gt;
&lt;/ul&gt;            </content>
        </entry>
                            <entry>
            <title type="html"></title>
            <author><name>Tim Freund</name></author>
            <link href="/changelog/archive.html"/>
            <updated>2010-01-01T00:00:00Z</updated>
            <published>2010-01-01T00:00:00Z</published>
            <id>/changelog/archive.html</id>
            
            <content type="html">
                            </content>
        </entry>
          </feed>