Ticket #9 (closed defect: fixed)
Traceback from a Postinstall
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 0.8.1 Release |
Component: | bcfg2-client | Version: | |
Keywords: | Cc: |
Description
This confuses me since the Postinstall is acutally commented out, but I get this:
[[email protected]:/fc/qlafc-linux-8.01.01-1-install]$ /usr/sbin/bcfg2 -q -n Failure in Verify for entry: <Postinstall name="/sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install uname -r"/> File /usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py, line 263, in VerifyEntry?
method = getattr(self, "Verify%s" % (entry.tag))
exceptions.AttributeError?: 'ToolsetImpl?' object has no attribute 'VerifyPostinstall?'
/usr/lib/python2.3/site-packages/Bcfg2/Client/Toolset.py:215: FutureWarning?: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
print "State verify evidently failed for %s" % (msg)
State verify evidently failed for <Element Postinstall at b7ca4488>
With this bundle: <Bundle name="qlogic-fc" version="2.0">
<System name="rh">
<!-- modprobe.conf needs some work for it to work right <ConfigFile? name="/etc/modprobe.conf"/> --> <Package name="qla2xxx"/> <Package name="scli"/> <!-- <Postinstall name="/sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install uname -r"/> -->
</System>
</Bundle>
Attachments
Change History
comment:2 Changed 17 years ago by [email protected]…
- Priority changed from major to minor
The problem was two-fold. I had misspelled PostInstall? (forgot the capital "i"). Then, when I commented out the line the XML parser got confused since there were now '--' in the comment. Replacing these with the HTML escaped representation, --, fixed that problem. Obviously, it would be nice to include double dashes in comments. Double dashes in a non-commented out line pose no problem.