<?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>Bits of Arrogance</title>
	<atom:link href="https://www.crummylogic.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.crummylogic.com/wordpress</link>
	<description>Making myself pervasive</description>
	<lastBuildDate>Wed, 04 Oct 2017 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>Protected: October 1 2017</title>
		<link>https://www.crummylogic.com/wordpress/?p=422</link>
		<comments>https://www.crummylogic.com/wordpress/?p=422#comments</comments>
		<pubDate>Wed, 04 Oct 2017 15:50:31 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.crummylogic.com/wordpress/?p=422</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
				<content:encoded><![CDATA[<form action="https://www.crummylogic.com/wordpress/wp-login.php?action=postpass" class="post-password-form" method="post">
<p>This content is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-422">Password: <input name="post_password" id="pwbox-422" type="password" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p>
</form>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=422</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Linux 7 &#8211; KVM Console is broken, OCFS2 kicks ass though</title>
		<link>https://www.crummylogic.com/wordpress/?p=414</link>
		<comments>https://www.crummylogic.com/wordpress/?p=414#comments</comments>
		<pubDate>Wed, 09 Nov 2016 01:18:24 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[UEK]]></category>
		<category><![CDATA[Unbreakable Enterprise Kernel]]></category>

		<guid isPermaLink="false">http://www.crummylogic.com/wordpress/?p=414</guid>
		<description><![CDATA[This post was originally written for spiceworks, so ignore the formatting shortcomings and such. I have chosen to just throw it on my blog since I&#8217;ve found a valid workaround to the problem, that being use OL6. I have a farm of KVM servers running CentOS 7.2. I have procured some hardware that is best &#8230; <a href="https://www.crummylogic.com/wordpress/?p=414" class="more-link">Continue reading <span class="screen-reader-text">Oracle Linux 7 &#8211; KVM Console is broken, OCFS2 kicks ass though</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This post was originally written for spiceworks, so ignore the formatting shortcomings and such. I have chosen to just throw it on my blog since I&#8217;ve found a valid workaround to the problem, that being use OL6.</p>
<p>I have a farm of KVM servers running CentOS 7.2. I have procured some hardware that is best utilized with a cluster aware filesystem such as GFS2 or OCFS2. I started fiddling with GFS2, got a functional cluster on some spare hosts and everything worked &#8211; poorly. I was going from NFS on a LACP bond assembled from gigabit Ethernet to GFS2 on a functioning MPIO with 4 gigabit Ethernet links. I tested with XFS and the performance was as expected &#8211; nominal number of IOPS based upon number of spindles and ~450MB/s of read and write throughput. Moving to GFS2 the IOPS and throughput were both there, but also some latency spikes of up to 30 seconds which is obviously unacceptable. I tried tuning for awhile and couldn&#8217;t massage out the bugs.</p>
<p>I crapped that setup out and installed Oracle Linux to try O2CB/OCFS2. Setup was great and performance looks vastly improved. The problem with the configuration was that KVM domains seem to be fully functional, but nothing I&#8217;ve tried will allow me to see the consoles of the running domain. I start a domain and look at a console (tried virt-viewer, virt-manager on Linux, and the builtin Gnome Remote client) and all I see is a black screen. I also tried VNC as an alternative, something I&#8217;ve never done so I don&#8217;t know if that should *just work* but it didn&#8217;t either. Lastly I tried a few different video modes, qxl, vga, cirris, nothing changed anything. The only logs I know of to look at are `/var/log/libvirt/qemu/domain.log` &#8211; which when trying to connect to the domain look like this:</p>
<pre>    main_channel_link: add main channel client
    main_channel_handle_parsed: net test: latency 12.194000 ms, bitrate 146799512 bps (139.998924 Mbps)
    red_dispatcher_set_cursor_peer:
    inputs_connect: inputs channel client create</pre>
<p>I compared that to a good connection on another machine &#8211; it looks like this:</p>
<pre>    main_channel_link: add main channel client
    main_channel_handle_parsed: net test: latency 3.128000 ms, bitrate 69543957 bps (66.322286 Mbps)
    red_dispatcher_set_cursor_peer:
    inputs_connect: inputs channel client create</pre>
<p>To complicate but fix things I was hoping reinstalling and using CentOS 7.2 which I&#8217;m more familiar with and has obviously all different packages would solve the issue. I did just that &#8211; fresh CentOS install and then installed nothing but UEK and OCFS2 tools so I could proceed with libvirt/KVM tools I knew that worked, but continue testing the OCFS2 filesystem:</p>
<pre>    [root@kvmhost images]# yum list installed | grep ol7
    kernel-uek.x86_64                     3.8.13-118.14.1.el7uek         @ol7_UEKR3
    kernel-uek-devel.x86_64               3.8.13-118.14.1.el7uek         @ol7_UEKR3
    kernel-uek-firmware.noarch            3.8.13-118.14.1.el7uek         @ol7_UEKR3
    libdtrace-ctf.x86_64                  0.5.0-2.el7                    @ol7_UEKR3
    ocfs2-tools.x86_64                    1.8.6-7.el7                    @ol7_latest
    ocfs2-tools-devel.x86_64              1.8.6-7.el7                    @ol7_latest</pre>
<p>So the interesting takeaway from this configuration is that it worked no differently when using UEK, but if I boot into the Base CentOS kernel it works fine. To be clear &#8230; I boot into the system choosing `CentOS Linux (3.8.13-118.14.1.el7uek.x86_64) 7 (Core)` at the prompt and the problem persists, but if I reboot the system and choose `CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)` then things work proper.</p>
<p>Reading just that, one would assume the problem is simply a situation where the userland components were compiled with other kernel libraries and find a new problem to think about &#8211; however I have another system running that was installed from an OL7 iso and never had anything but OL7 packages instaled exhibiting exact behavior.</p>
<p>The only other place I could think to look for anything useful was the virt-manager logs. I installed enough X11 components so that I could get on it graphically and make some local logs from that app, here is what came from that:</p>
<p>Not working</p>
<pre>    [Sat, 05 Nov 2016 14:55:04 virt-manager 15862] DEBUG (details:602) Showing VM details: 
    [Sat, 05 Nov 2016 14:55:04 virt-manager 15862] DEBUG (engine:357) window counter incremented to 2
    [Sat, 05 Nov 2016 14:55:04 virt-manager 15862] DEBUG (console:650) Starting connect process for proto=spice trans= connhost=127.0.0.1 connuser= connport= gaddr=127.0.0.1 gport=5900 gtlsport=None gsocket=None
    [Sat, 05 Nov 2016 14:55:04 virt-manager 15862] DEBUG (console:771) Viewer connected</pre>
<p>Working:</p>
<pre>    [Sat, 05 Nov 2016 15:06:49 virt-manager 3917] DEBUG (details:602) Showing VM details: 
    [Sat, 05 Nov 2016 15:06:49 virt-manager 3917] DEBUG (engine:357) window counter incremented to 2
    [Sat, 05 Nov 2016 15:06:49 virt-manager 3917] DEBUG (console:650) Starting connect process for proto=spice trans= connhost=127.0.0.1 connuser= connport= gaddr=127.0.0.1 gport=5900 gtlsport=None gsocket=None
    [Sat, 05 Nov 2016 15:06:49 virt-manager 3917] DEBUG (console:771) Viewer connected</pre>
<p>Googling &#8216;Spice blank screen UEK&#8217; yields nothing helpful that I can see so for posterity&#8217;s sake and perhaps in hope that someone else will have the problem and *CAN* indeed file a bug with Oracle, this was my experience.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=414</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Host ownCloud behind your nginx reverse proxy</title>
		<link>https://www.crummylogic.com/wordpress/?p=410</link>
		<comments>https://www.crummylogic.com/wordpress/?p=410#comments</comments>
		<pubDate>Fri, 15 Jul 2016 13:34:19 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ownCloud]]></category>
		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://www.crummylogic.com/wordpress/?p=410</guid>
		<description><![CDATA[If you&#8217;re like me your public IP space is limited (/28 in my case) and your hosting needs are diverse. Lot&#8217;s of websites behind my 1 nginx reverse proxy that you&#8217;re using right now to load this site&#8217;s content. My configuration is pretty simple and really cool in my opinion. All of my SSL is &#8230; <a href="https://www.crummylogic.com/wordpress/?p=410" class="more-link">Continue reading <span class="screen-reader-text">Host ownCloud behind your nginx reverse proxy</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;re like me your public IP space is limited (/28 in my case) and your hosting needs are diverse. Lot&#8217;s of websites behind my 1 nginx reverse proxy that you&#8217;re using right now to load this site&#8217;s content.</p>
<p>My configuration is pretty simple and really cool in my opinion. All of my SSL is terminated on my reverse proxy so I don&#8217;t have to manage certificates inside my network at all. While this configuration isn&#8217;t particularly exotic, I thought it might be worth sharing anyway. I bet someone will someday find good use from it:</p>
<pre>
server {
   listen  80;
   server_name     owncloud.example.net;
   rewrite ^       https://$server_name$request_uri? permanent;
}

server {
        listen       443;
        server_name  owncloud.example.net;

        ssl                  on;
        ssl_certificate      /etc/nginx/conf.d/ssl/owncloud.example.net.bundle.crt;
        ssl_certificate_key  /etc/nginx/conf.d/ssl/owncloud.example.net.key;
# Ridiculously high timeout due to long requests for uploads
        ssl_session_timeout  5m;

        ssl_protocols  SSLv2 SSLv3 TLSv1;
        ssl_ciphers  HIGH:!aNULL:!MD5;

        access_log  /var/log/nginx/owncloud.example.net.log main;

        proxy_redirect  off;
        proxy_set_header        Host    $host;
        proxy_set_header        X-Real-IP       $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_buffering         off;
        proxy_set_header Connection     "Keep-Alive";

# Allow uploads up to 16GB in size
        client_max_body_size    16000m;

# transparently handle requests to server root
        location / {
                rewrite ^ https://owncloud.example.net/owncloud$request_uri redirect;
        }

        location /owncloud {
# owncloud.example.local is your actual owncloud server inside your network
                proxy_pass http://owncloud.example.local:80/owncloud;
        }

}
</pre>
<p>This works, not only the web client but also the mobile and desktop clients. I put in the neat rewrite rule so that users can just type the server name and don&#8217;t have to get excited about the owncloud URI component. ownCloud is installed using default configurations on the internal server, no complex configurations or anything there. I love nginx reverse proxying.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=410</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS sieve authentication using saslauthd</title>
		<link>https://www.crummylogic.com/wordpress/?p=404</link>
		<comments>https://www.crummylogic.com/wordpress/?p=404#comments</comments>
		<pubDate>Sun, 03 Jul 2016 21:37:44 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[Cyrus]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SASL]]></category>
		<category><![CDATA[sieve]]></category>

		<guid isPermaLink="false">http://www.crummylogic.com/wordpress/?p=404</guid>
		<description><![CDATA[Quick solution to an infuriating problem. Cyrus IMAP server is installed and authenticating just fine using saslauthd to my Active Directory: /etc/imapd.conf: ...snip... sievedir: /var/lib/imap/sieve sendmail: /usr/sbin/sendmail sasl_pwcheck_method: saslauthd sasl_mech_list: PLAIN LOGIN ...snip... /etc/sysconfig/saslauthd: SOCKETDIR=/run/saslauthd MECH=ldap FLAGS="-r" However I can&#8217;t get my sieve clients including sieveshell to authenticate: [root@mailserver /]# sieveshell --user="first.last@example.com" --authname="first.last@example.com" localhost connecting &#8230; <a href="https://www.crummylogic.com/wordpress/?p=404" class="more-link">Continue reading <span class="screen-reader-text">CentOS sieve authentication using saslauthd</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Quick solution to an infuriating problem.</p>
<p>Cyrus IMAP server is installed and authenticating just fine using saslauthd to my Active Directory:</p>
<p>/etc/imapd.conf:</p>
<pre>
...snip...
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
...snip...
</pre>
<p>/etc/sysconfig/saslauthd:</p>
<pre>
SOCKETDIR=/run/saslauthd
MECH=ldap
FLAGS="-r"
</pre>
<p>However I can&#8217;t get my sieve clients including sieveshell to authenticate:</p>
<pre>
[root@mailserver /]# sieveshell --user="first.last@example.com" --authname="first.last@example.com" localhost
connecting to localhost
connect: Connection refused
unable to connect to server at /bin/sieveshell line 170.
</pre>
<p>Telnet-ing in yielded no auth mech&#8217;s presented:</p>
<pre>
[root@mailserver /]# telnet localhost sieve
Trying ::1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-8.el7_1"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"
OK
</pre>
<p>No auth mech&#8217;s listed, e.g. PLAIN, LOGIN, etc. What gives? The search string &#8220;timsieved sasl_auth_mech&#8221; yielded 3 results on Google, luckily <a href="https://www.wogri.at/tutorials/cyrus-sieve/">this page</a> was one of them. How often is it simply that some package you need isn&#8217;t installed?</p>
<pre>
[root@mailserver /]# yum -y install cyrus-sasl-plain
</pre>
<p>That&#8217;s it:</p>
<pre>
[root@mailserver /]# telnet localhost sieve
Trying ::1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17-Fedora-RPM-2.4.17-8.el7_1"
"SASL" "PLAIN LOGIN"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"
OK
</pre>
<p>Another takeaway I learned &#8211; if you want disable TLS for just Cyrus sieve adjust your /etc/cyrus.conf as such:</p>
<pre>
  sieve         cmd="timsieved" -C /etc/sieve.conf listen="sieve" prefork=0
</pre>
<p>And just modify the /etc/sieve.conf file to suit your needs. I know this has caused me issues in the past and never knew it could be tuned separate of imapd.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=404</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
