Ticket #971 (closed defect: invalid)
TGenshi plugin not binding on altsrced entry
Reported by: | http://jazzslider.myopenid.com/ | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
Given the following abstract Path entry:
<Path name='/etc/somefile.conf' altsrc='/etc/somefile-template'/>
And the following correctly-located TGenshi template file:
{repo}/TGenshi/etc/somefile-template/template.newtxt
I would expect that /etc/somefile.conf on the client would be created with the TGenshi-parsed contents of {repo}/TGenshi/etc/somefile-template/template.newtxt on the server. However, the TGenshi plugin doesn't seem to want to bind to the altsrc template file. Instead, I'm getting the following error on the client side:
Entry Path:/etc/somefile.conf reports bind failure: no matching generator
And the following errors on the server side:
Failed binding entry Path:/etc/somefile.conf with altsrc None Falling back to Path:/etc/somefile.conf Failed to bind entry: Path /etc/somefile.conf
Based on that first message, I'd assume one of two things: either (a) the altsrc attribute isn't being read correctly (which seems unlikely), or (b) the TGenshi plugin isn't properly detecting that it's got a template that can fulfill the altsrc path. Unfortunately I'm a bit of a newbie on the inner workings of bcfg2, so that's as far as I got.
Other important information:
- I discussed this with solj and m4z on #bcfg2 on freenode earlier today (2010-12-16, around 9:50am); there may be additional useful context there.
- I'm running bcfg2 version "1.1.1-1~lucid1" from the alternate apt sources specified in the Ubuntu quickstart.
Determined that TGenshi's failure to bind had something to do with a syntax error in my template file. However, for some reason I wasn't getting any notices to that effect in the bcfg2-server logs. That would be a different issue, though; as it stands, the bug as I described it most likely isn't a bug at all.