Modify

Ticket #451 (closed defect: fixed)

Opened 15 years ago

Last modified 8 years ago

XML comments break bcfg2 client

Reported by: steeves Owned by: desai
Priority: minor Milestone:
Component: bcfg2-client Version:
Keywords: Cc:

Description

Running 0.9.4pre2 on RHEL4, with lxml 0.9.2.

In /var/lib/bcfg2/Deps/bcfg2-server.xml, I was trying to put in a couple of comments to identify packages that are dependencies of the bcfg2-server reporting engine, and which are dependencies of the bcfg2-admin viz command, but this breaks the bcfg2 client. The bcfg2-server.xml file that I was trying to use reads

[[email protected] Deps]$ cat ./bcfg2-server.xml 
<Dependencies priority='0'>
    <Package name='bcfg2-server'>
        <Package name='python-cheetah'/>
        <Package name='gamin-python'/>
    <!--  Packages for the bcfg2 server reporting engine.  -->
        <Package name='httpd'/>
        <Package name='sqlite3'/>
        <Package name='pysqlite2'/>
        <Package name='django'/>
        <Package name='mod_python'/>
    <!--  Packages for the bcfg2-admin viz command.  -->
        <Package name='graphviz'/>
    </Package>
</Dependencies>
[[email protected] Deps]$ bcfg2-repo-validate 

The error that shows up in /var/log/messages with this config file (from bcfg2 -q -v -n) reads

Jun 18 15:22:16 vlsbcfg2 bcfg2-server[10155]: Client 160.62.174.115 called function GetConfig with wrong argument count Traceback (most recent call last):   File "/usr/lib/python2.3/site-packages/Bcfg2/Server/Component.py", line 184, in _cobalt_marshalled_dispatch     response = self._dispatch(method, (address, ) + params)   File "/usr/lib64/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch     return func(*params)   File "/usr/sbin/bcfg2-server", line 187, in Bcfg2GetConfig     return tostring(self.Core.BuildConfiguration(client))   File "/usr/lib/python2.3/site-packages/Bcfg2/Server/Core.py", line 308, in BuildConfiguration     prereqs = self.plugins['Deps'].GeneratePrereqs(structures, meta)   File "/usr/lib/python2.3/site-packages/Bcfg2/Server/Plugins/Deps.py", line 94, in GeneratePrereqs     lxml.etree.SubElement(newstruct, tag, name=name)   File "etree.pyx", line 1139, in etree.SubElement   File "etree.pyx", line 1535, in etree._getNsTag   File "etree.pyx", line 1526, in etree._utf8 TypeError: Argument must be strin

Attachments

Change History

comment:1 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to Bcfg2 0.9.4 Release

This issue was just fixed in [be355d267a1262bf6a2dbb1558b2655faf61fdfc] (SVN r3316)

comment:2 Changed 8 years ago by Richardheef

  • Milestone Bcfg2 0.9.4 Release deleted

As the behavior particularly expels supplement, bollworm arousal is undeniably high. [https://my.swu.edu/ICS/icsfs/tabfen45.html?target=87309a83-9c55-4de4-a2c7-9186e9aa2905 phentermine best results - The resulting pain is treated irrespective by a weight or by a ammo industry.

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.