Blog

  • Power blip in Tukwila – everything’s okay.

    There’s been a lot of weather here in Seattle this week. It looks like the Tukwila DC’s power blipped this morning. It gave me an excuse to update some configs on a few of the OpenVPN endpoints, re-configure some of the shorewall6 stuff, and enter a bunch of hosts and IPs into the BIG-IP’s node list. It gives me a quick way to know what needs fixing first when things start breaking and is a lot easier to configure than NAGIOS. If I really wanted to get fancy, I could even write me some hot external monitoring scripts in perl. I am growing fond of this machine.

  • Blacky-black-out

    There’s a script down there vvvvv

    and up there ^^^

  • UW Hypervisor looks stable

    UW Hypervisor looks stable

    The new hardware looks like it’s reliable. The one I swapped out 10 days ago crashed every 3 days or so for reasons I couldn’t discern. I changed that one for a spare I had laying around and have been hosting my blog on the machine to exercise it. So far, no crashes, and a 10 day uptime. Note: this is not the hypervisor I am trying the xen -> kvm migration out on. This is the one I set up for the University of Washington Bothell’s PRCCDC project. Now I need to bring their admin staff up to speed on administering it.

    cjac@proliant1:~$ uptime
     16:41:26 up 10 days, 22:15,  1 user,  load average: 0.00, 0.01, 0.05
    

    And incidentally, I’ve had more hits on the blog today than I have since the last time I started counting back in November:

    high score!

    Thanks all for giving me traffic with which to test the stack :)

  • Zelda cut her own hair

    image

    Can you believe she will be 5 in 5 months!?

  • Migrating VMs from pure paravirt hypervisor to hvm-capable hypervisor

    I’m also changing all of my disk layouts from being block devices per each guest partition to one block device hypervisor side per each /dev/xvd* guest side. The block devices all live on a single storage server and are being served via iSCSI. One of the guests is making use of AoE, but I’m thinking I’m going to move it to iSCSI, too, so there’s one less dæmon I need to maintain.

    It’s currently xen on squeeze. I want to experiment with kvm. I will miss xen-create-image, though.

    Okay. Zelda wants to watch a movie, so I’m going to stop blathering now.

    Moo,

    C.J.

  • The Very Model of a Poster to CLPM

    So, in 2002 I attended my first SPUG meeting. Also in attendance were Randal, Tim, J.P. (I think) and quite a few of the other usual suspects. The guest speaker was the inestimable Dr. Damian Conway. This night might be the single most important event in my career as a builder of the internets. I was already set in my ways regarding my operating system, and I knew enough perl to get by, but I wasn’t in touch with any users groups until then.

    The crown jewel of the night was Damian’s recital in full of his poem, “I Am The Very Model of A Poster To CLPM” (sung to the tune of that song from Pirates of Penzance). I must admit that I’d never heard of CLPM and that it all sounded like gobble-de-gook at the time. If I recall correctly, this happened just after he took about 10 minutes to teach us all to pronounce the name of then-Pumpking, Jarkko Hietaniemi. This was the same year that the following video was made…

    With that in mind, there’s one more thing I need to share with you before disclosing the lyrics. This piece was developed during a time when it was common for members of the perl community to flame one another on news feeds, take their anger and frustration out on newbies and generally be the bane of most of the internet. I like to think that it helped to shape me into a kinder, gentler perl programmer, debian user and general netizen over the years. I would also like to think that it will do the same for future members of our communities.

    And so, without further ado, Damian Conway’s


    I Am The Very Model of a Poster to CLPM

    Now everything I need to know about the Perl community
    I learned in kindergarten when I was a little lad of three
    And in these next few minutes I’ll relate those five apothegm
    For I am the very model of a poster to c.l.p.m.

    The first truism I was ever taught upon my mother’s knee
    Was that our dad’s a better dad than their’s could ever hope to be.
    His name is Larry Wall, and that’s determinism nom’native
    Since of the mural attributes he demonstrates proof positive.

    He’s eight feet tall and ten feet wide; of granite-like solidity.
    He wards us from the serpent’s tabs and coffee bean’s stupidity.
    He guards us from that Gallic tower’s B&D urbanity,
    And makes sure we don’t see sharp code that might cut loose our sanity.

    He watches over each of us, like Odin of the Norse belief —
    The stern All-Father figure and, at times, the comical relief.
    So, if you vaunt our patriarch’s supreme linguistic acumen,
    You are a model sychophantic poster to c.l.p.m.

    The second tenet that I learned concerns, of course, the fairer sex
    And why they are in short supply, while geek-boy JAPHs are multiplex.
    As every schoolboy knows each conversation has single aim:
    To raise one’s own significance, whilst razing others down in flame.

    And thus good men and true who hold this principle as sacrosanct
    Will all pursue beligerence as though they were from Mars. Or tanked.
    It is the tenor of your newgroup posts that she from Venus flies:
    Because most threads devolve into comparisons of…..meanness, guys.

    When every post affronts their own collaborative sorority
    It must exasperate them, for it renders the majority
    Of female Perl geeks absent, till we’re forced to rename blonde Dutch men
    To act as female models of a poster to c.l.p.m.

    The third grand aphorism that was drummed into my youthful head
    Was: if you can’t say something nice about someone, you should instead
    Say every nasty thing you can impart, imagine, or invent
    In any public forum that it happens you should both frequent.

    This goes especially for the young, and new, and shy, and innocent.
    To flame a newbie is a joy, t’will make you feel omnipotent.
    To watch them squirm and bleat and bleed and scurry back into their hole,
    The surge of ecstasy it brings is worth the way it eats your soul.

    So never hesitate to turn the wrath of your vocabul’ry
    Upon the hapless supplicant for Perl epistomology
    And if you flame each FAQ, and every question that’s beneath you then
    You’ll be the very model of curmudg’nly R.T.F.M.

    The next point I should like to make’s the obverse of the previous
    For while it’s true that to be newbie is a sin most grieveous
    It ain’t as bad as being old and greyed and staid and tedious
    And sitting at the keys all day dispensing thoughts invidious.

    What right have you to tell me not to ask about my CGI???
    I thought that Perl was all about website development, and I
    Expect that you’d extend to me the simple human courtesy
    Of dropping everything so you can do this homework now for me.

    The Internet exists so I need never read the manual
    And so my inane questioning can form a stream continual
    While pleading for an email since I never read this group, as well
    As posting them in jeopardy, in caps, and in HTML.

    The rule I learned in kinder that explains where this approach springs from
    Is fundamental to a certain class of Gen-X hackerdom
    The single principle that guides their Internet activity
    Is: “me, me, me, me, me, me, me, me, me, me, me, me, me, me, ME!”

    So if you are prepared to treat the Net as your god-given right
    And suck the newsgroups dry like some goodwill-devouring parasite
    And use them as a help-desk and a perldoc substitute, well then
    You are the very model clueless poster to c.l.p.m.

    The final precept that my pre-school inculcated in my head
    Is one I would commend as antithetical to all I’ve said.
    It is a noble concept that once used to garner more elan
    The idea that, when I grow up…..I want to be a fireman.

    The fire-fighter’s job’s to help, despite the inconvenience
    And spare the inexperienced the cost of their own ignorance
    And put out fires when the flames ignite the common living space
    And through it all maintain an air of competence and skill and grace.

    And this, my friends, I recommend to all of our community
    That rather than a careless match or carefully lit incendiary
    You spray out knowledge, patience, and a gentle stream of good advice
    And save the newbies from themselves, and oldies from their prejudice.

    And be yea more as Larry is, a fire-Wall against the threat
    Of ignorance and arrogance, with both of which we’re still beset.
    For if you choose to help your fellow JAPHs instead of scorching them,
    You’ll be the next burnt offering we spit-roast on c.l.p.m. ;-)

    [edit]

  • Replaced hypervisor

    The system which was hosting this blog had a tendency to go down every few days. I swapped it out for a spare yesterday. Let’s see if it stays up. The hypervisor hosts this web server, a mysql server and an SKS pool member, all of which are built on top of Squeeze.

  • Perl interface to processing / querying NIST’s NVD feed

    For a work project, I wrote a library in perl that can be used to query the NVD feed that NIST publishes here:

    http://nvd.nist.gov/download.cfm

    Here’s a snippit from the perldoc:

    use NIST::NVD::Query;
     
    # use convert_nvdcve to generate these files from the XML dumps at
    # http://nvd.nist.gov/download.cfm
     
    my( $path_to_db, $path_to_idx_cpe ) = @ARGV;
     
    my $q = NIST::NVD::Query->new( database => $path_to_db,
                                   idx_cpe  => $path_to_idx_cpe,
                                  );
     
    # Given a Common Platform Enumeration urn, returns a list of known
    # CVE IDs
     
    my $cve_id_list = $q->cve_for_cpe( cpe => 'cpe:/a:zaal:tgt:1.0.6' );
     
    my @entry;
     
    foreach my $cve_id ( @$cve_id_list ){
     
      # Given a CVE ID, returns a CVE entry
     
      my $entry = $q->cve( cve_id => $cve_id );
      push( @entry, $entry );
     
      print $entry->{'vuln:summary'};
    }
    
  • xend xml parsing failure – solution

    I got this error when starting xend after a filesystem crash:

    [2011-12-09 11:05:04 5590] ERROR (SrvDaemon:349) Exception starting xend (not well-formed (invalid token): line 3, column 0)

    It sounded like an XML parsing error, but the stack trace in the log didn’t say which file it had loaded. It turns out that it was trying to load something from /var/lib/xend/state/. Purging the /var/lib/xend/state directory fixed the problem, and hopefully had no side-effects.

    Thanks to this blog for the solution. I should probably file a bug, shouldn’t I?

    [edit]

    done: http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1797