Modify ↓
Ticket #1100 (closed defect: fixed)
bcfg2-build-reports is generating "Cannot resolve URI"
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawmJaCRni5uBlI_DViELXibWTZsQeeMoEIo | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.2 Release (Bugfix) |
Component: | bcfg2-reports | Version: | 1.0 |
Keywords: | Cc: |
Description
I am running a hand packaged version of bcfg2-1.2.1.tar.gz, trying to use the Statistics plugin. I have also had to include a etc/report-configuration.xml (loosely based on this: http://trac.mcs.anl.gov/projects/bcfg2/browser/examples/report-configuration.xml) to be able to run the bcfg2-build-reports tool.
But running "bcfg2-build-reports -N" yields the following:
# bcfg2-build-reports -N bcfg2-build-reports: invalid XSLT transform file. Traceback (most recent call last): File "/usr/sbin/bcfg2-build-reports", line 277, in <module> stylesheet = XSLT(parse(transformpath + transform)) File "xslt.pxi", line 395, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:107850) File "lxml.etree.pyx", line 228, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:6786) lxml.etree.XSLTParseError: Cannot resolve URI /usr/share/bcfg2/xsl-transforms/xsl-transform-includes/html-templates.xsl
The path it is complaining about is present though:
# head /usr/share/bcfg2/xsl-transforms/xsl-transform-includes/html-templates.xsl <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml"> <xsl:template match="Node"> <xsl:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Extra)+count(Statistics/Modified)+count(Statistics/Stale) > 0"> <a name="{Client/@name}}"></a> <div class="nodebox""> <span class="notebox">Time Ran: <xsl:value-of select="Statistics/@time" /></span> <span class="configbox">(<xsl:value-of select="Client/@profile" />)</span>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Fixed in 73b031e0fe060f073676d9a692fb7108f4c0b99b.