Modify

Ticket #1100 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.