Skip to main content

Posts

Showing posts from 2014

uwsgi packages for EL7

I recently had need to install uwsgi on EL7 (CentOS 7, actually, but RHEL 7 will be the same). I ended up rebuilding the uwsgi SRPM from Fedora 21 which was relatively straight-forward but it required a few tweaks to the .spec file. I also had to build a chain of dependencies: mongodb, perl-Cora, libecb, perl-EV, libev, zeromq, perl-BDB, perl-AnyEvent-BDB, perl-AnyEvent-AIO. All packages (including SRPMs) are in my repo:  http://repo.yo61.net/el/7/

Fixing NFS on SmartOS after rebooting

For some undetermined reason, NFS fails when my SmartOS NAS is rebooted. statd fails to start and nlockmgr also fails. These commands seem to fix it: svcadm restart svc:/network/rpc/bind:defaultsvcadm clear svc:/network/nfs/status:defaultsharectl set -p lockd_servers=80 nfssvcadm clear svc:/network/nfs/nlockmgr:default

passenger native libs on CentOS 7

I'm setting up a new puppet master running under passenger on CentOS 7 using packages from the puppetlabs and foreman repos. I used a fork of Stephen Johnson's puppet module to set everything up (with puppet apply). All went swimmingly, except I would see this error in the logs the first time the puppet master app loaded (ie. the first time it got a request): [ 2014-11-07 23:22:13.2600 2603/7f1a0660e700 Pool2/Spawner.h:159 ]: [App 2643 stderr] *** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)...[ 2014-11-07 23:22:13.2600 2603/7f1a0660e700 Pool2/Spawner.h:159 ]: [App 2643 stderr] # mkdir -p /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/locations.ini/buildout/ruby/ruby-2.0.0-x86_64-linux[ 2014-11-07 23:22:13.2600 2603/7f1a0660e700 Pool2/Spawner.h:159 ]: [App 2643 stderr] Not a valid directory. Trying a different one...[ 2014-11-07 23:22:13.2600 2...

An example of why open source software is fantastic

I was writing some basic RSpec tests for a puppet module this morning, methodically adding in fixtures and hiera data items to get the module to compile under the spec tests. Then I hit this error: Failures:1) profile_puppet::master supported operating systems profile_puppet::master class without any parameters on redhat 6.4 should compile into a catalogue without dependency cyclesFailure/Error: it { should compile.with_all_deps }NoMethodError:undefined method `groups' for nil:NilClass# ./spec/classes/init_spec.rb:36:in `block (5 levels) in ' Uh oh, that doesn’t look good. I did what I always do in such circumstances and googled the error message: puppet NoMethodError: undefined method `groups' for nil:NilClass . The first hit was https://tickets.puppetlabs.com/browse/PUP-1547  which describes my situation completely (I am testing for RHEL 6.4 on OSX). What’s even better is that the ticket was updated 3 days ago with a pull request that fixes the issue. I applied the change...

jameswhite manifesto

In his talk at Puppetconf 2013 , James Fryman mentioned a blog post by James White which contains a list of guidelines for management which has come to be known as the jameswhite manifesto. Here’s the same list but unconstrained by a fixed-width text box so you can actually read it. 🙂 Rules On Infrastructure There is one system, not a collection of systems. The desired state of the system should be a known quantity. The “known quantity” must be machine parseable. The actual state of the system must self-correct to the desired state. The only authoritative source for the actual state of the system is the system. The entire system must be deployable using source media and text files. On Buying Software Keep the components in the infrastructure simple so it will be better understood. All products must authenticate and authorize from external, configurable sources. Use small tools that interoperate well, not one “do everything poorly” product. Do not implemen...