Posts|Comments
Aug 24 2008

On Vacation

On the East Coast for the week enjoying some quiet family time at the beach. Managed to find a really nice house (with hot tub) within walking distance from the beach. More later, pics here

Jul 07 2008

Xen and vlans

During a big lab move at work a few months ago, we decided that our utility virt server needed VLAN support. The dhcp vm needed interfaces on three different networks and it seemed rather silly to add extra physical interface for the minimal traffic generated.

The first issue we encountered was the rather interesting bridging script installed by default. It does wonders for being able to bridge the primary interface and can be used to bridge multiple interface, but it fails entirely for VLAN interfaces. Best bet is just to disable any network scripts in /etc/xen/xend-config.sxp and let the os handle it. We’re using RHEL5, so we created the VLAN interface along with the bridge using the normal configs in /etc/sysconfig/network-scripts. Our naming scheme for the devices was ${DEVICE_TYPE}{$VLAN_NUMBER}.conf.

Example vlan123.conf:

DEVICE=vlan123
VLAN=yes
VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
PHYSDEV=eth1
BOOTPROTO=static
ONBOOT=yes
BRIDGE=xenbr123

As you can see, eth1 is the physical interface connected to the switch port tagged with the vlans. We added the ‘VLAN_PLUS_VID_NO_PAD’ param to use the vlan${NUMBER} scheme. We aren’t bringing the interface up with an ip as it’s gonna be part of a bridge.

xenbr123.conf:

DEVICE=xenbr123
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes

This brings up our bridge without an ip address. The dom0 doesn’t need an ip on this VLAN, so no point in enabling it. To use the bridge in your domu’s, just specify the interface in the config file (or at creation time).

Example domu def file with multiple interfaces:

name = "example"
uuid = "62e4f71f-a46c-25f7-e947-f161aaad6f00"
maxmem = 512
memory = 512
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ ]
disk = [ "phy:/dev/vm/example,xvda,w" ]
vif = [ "mac=00:16:3e:4b:a5:46,bridge=xenbr123", "mac=00:16:3e:4b:a5:4a,bridge=xenbr456", mac=00:16:3e:4b:a5:47,bridge=xenbr789"]

The above was pretty straightforward, but after putting it in place we ran into a very odd issue. The vm’s couldn’t actually communicate via the vlan’d interfaces. After a bit of tcpdumping we discovered the default firewall was allowing outbound traffic on the bridge, but incoming was getting rejected. Easy fix was to add the following lines to /etc/sysconfig/iptables:


-A RH-Firewall-1-INPUT -i xenbr+ -j ACCEPT
-A RH-Firewall-1-INPUT -o xenbr+ -j ACCEPT

Note that this allows all traffic to pass on all xenbr devices. Since the dom0 doesn’t have an ip bound it’s not an issue in our configuration since the only traffic on the bridges are for the domu’s. If you do use the devices in your dom0, you’ll need to adjust the firewall accordingly or you’ll end up with a gaping hole in your security scheme.

Jul 06 2008

Openid two-factor authentication

So, went looking around last night at the various Openid options and came across Verisign’s PIP service. I rather liked the idea of using Verisign anyway simply due to their position as a well established security/identity provider. Then I came across this post detailing the available two-factor authentication and I was sold. I won’t go into the gory details, but suffice to say I’ve got my key on order.

Oh, and I’ve got this blog now fully Openid-ized so you can use your id to leave comments.

Nov 20 2007

Down in Mississippi…

Traveling for the holidays has us staying with Tiff’s folks in Picayune this week. Kris and Candice scheduled Addisyn’s first bday party for Sunday (pics) so we were able to make that. Amazing how fast kids grow/change that first year.

Managed to get by Southern and visited with some of the profs I worked with there. Nice to catch up with those guys, compare war stories, etc. They tried to rope me into a LUG meeting, but I got saved from that one by dinner plans. It was rather depressing to hear about the general state of OSS within IT planning there. They seem to be following the old vendor lock-in ways without even considering any of the better options out there. Ah well…

Dinner was excellent. Caught up with Wesley and Eryn and grabbed some sushi at Sakura. Food was decent, company was much better. Got into some rather lively discussions about religion, politics and just life in general. Rather amusing that Wesley lives ~3 hrs from us, yet we have to meet 800+ miles away.

Ended up grabbing a beer over at the ol’ End Zone. Seems Hattiesburg now has a smoking ban, so I missed out on the whole smoky, hole-in-the-wall-bar experience I was hoping for. Did get up with Chris and Jennifer, and kicked Chris’ ass at some pool for old time’s sake.

As nice as it is to visit old friends and family, I can’t fsking wait to get back home. I could write volumes about how backwards things are here, but it would be rather pointless. Suffice to say it’s at least 5 years behind in tech, and attitudes are even further in the dark ages.

(With apologies to Sublime for the title)

Aug 27 2007

New Bugzilla!

So we finally wrapped up the big migration of bugzilla.redhat.com yesterday morning. We moved from an internal system (1 web, 1 db w hot spare) to one in the datacenter (multiple web and db) plus some basic code fixes. It was an epic effort with large amounts of data having to be copied over relatively slow links and being converted from Postgresql to MySQL. We made the decision to move to MySQL for a handful of reasons, primary being real replication. Slony is a mostly adequate option for Postgresql, however it’s performance isn’t great and it’s got some pretty large limitations since it’s all triggers and stored procedures. Now we have a system that’s much more scalable and should have a noticeable improvement in performance.

We had a few minor issues during the migration, but data is intact and it was a largely uneventful process. It took a total of ~15 hrs to complete which completely sucked, but was pretty much unavoidable. Apparently rsync got confused with some of our converted dump files and decided they had to be copied whole. Best guess was that it didn’t care for the format of some of the converted dump files, but oh well….

If you notice any issues with the new system, please drop an email to bugzilla-owner.

Hurrah for proper infra!