Modify

Ticket #1041 (closed defect: worksforme)

Opened 11 years ago

Last modified 11 years ago

Error in Ubuntu example

Reported by: https://www.google.com/accounts/o8/id?id=AItOawkPb0RtPyicSdU7pLcv1UrX-yCh-YjkOwU Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-doc Version: 1.0
Keywords: Cc:

Description

http://docs.bcfg2.org/quickstart/ubuntu.html

# cat /var/lib/bcfg2/Packages/config.xml
<Sources>
  <APTSource>
    <Group>ubuntu-lucid</Group>
    <URL>http://us.archive.ubuntu.com/ubuntu</URL>
    <Version>lucid</Version>
    <Component>main</Component>
    <Component>multiverse</Component>
    <Component>restricted</Component>
    <Component>universe</Component>
    <Arch>amd64</Arch>
    <Arch>i386</Arch>
  </APTSource>
</Sources>

Gives the following with bcfg2-repo-validate:

Failed to open directory /var/lib/bcfg2/Base/
Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Core.py", line 171, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/Packages.py", line 829, in __init__
    self.cachepath, core.fam, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/Packages.py", line 734, in __init__
    Bcfg2.Server.Plugin.SingleXMLFileBacked.__init__(self, filename, fam)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugin.py", line 575, in __init__
    fam.AddMonitor(filename, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/FileMonitor.py", line 279, in AddMonitor
    mode = os.stat(path)[stat.ST_MODE]
OSError: [Errno 2] No such file or directory: '/var/lib/bcfg2/Packages/sources.xml'

When renamed to Packages/sources.xml the error changes to:

ERROR: /var/lib/bcfg2/Packages/sources.xml fails to verify:
  /var/lib/bcfg2/Packages/sources.xml:2: element APTSource: Schemas validity error : Element 'APTSource': This element is not expected. Expected is one of (
  Group, Client, Source, Sources ).
  /var/lib/bcfg2/Packages/sources.xml fails to validate
Serverless plugins encountered errors, skipping server plugins
1 errors

Attachments

Change History

comment:1 Changed 11 years ago by solj

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

The documentation for the 1.2 series release is at http://docs.bcfg2.org/dev. The behavior of the Packages plugin has changed in this version as noted at http://trac.mcs.anl.gov/projects/bcfg2/milestone/Bcfg2%201.2.0%20Release. You need to convert your old Packages/config.xml using browser:tools/packages-convert.py.

comment:2 Changed 11 years ago by solj

  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.0 Release

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.