Modify

Ticket #478 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

Schemas not updated for freebsd support

Reported by: [email protected] Owned by: desai
Priority: major Milestone: Bcfg2 0.9.5 Release
Component: bcfg2-client Version:
Keywords: Cc:

Description

I'm working on getting FreeBSD platforms working properly with bcfg2. The initial FreeBSD support commited so far seems to have forgotten to update the required schemas. The following is reported by bcfg2-repo-validate

/local/bcfg2/Pkgmgr/freebsd-6-base.xml ***FAILS*** to verify            <----
/local/bcfg2/Pkgmgr/freebsd-6-base.xml:1: element PackageList: Schemas validity error : Element 'PackageList', attribute 'type': [facet 'enumeration'] The value 'freebsdpkg' is not an element of the set {'deb', 'rpm', 'blast', 'encap', 'sysv', 'portage', 'yum'}.
/local/bcfg2/Pkgmgr/freebsd-6-base.xml:1: element PackageList: Schemas validity error : Element 'PackageList', attribute 'type': 'freebsdpkg' is not a valid value of the atomic type 'PackageTypeEnum'.

/local/bcfg2/Metadata/groups.xml ***FAILS*** to verify          <----
/local/bcfg2/Metadata/groups.xml:11: element Group: Schemas validity error : Element 'Group', attribute 'toolset': [facet 'pattern'] The value 'freebsd' is not accepted by the pattern 'rh|debian|solaris|aix|gentoo|auto'.
/local/bcfg2/Metadata/groups.xml:11: element Group: Schemas validity error : Element 'Group', attribute 'toolset': 'freebsd' is not a valid value of the atomic type 'toolsetType'.

This should be easily fixed with the following two schema updates (diffs included):

--- types.xsd   Wed Aug  8 13:26:53 2007
+++ types.xsd.orig      Wed Aug  8 13:25:39 2007
@@ -14,7 +14,6 @@
       <xsd:enumeration value='rpm' />
       <xsd:enumeration value='blast' />
       <xsd:enumeration value='encap' />
-      <xsd:enumeration value='freebsdpkg' />
       <xsd:enumeration value='sysv' />
       <xsd:enumeration value='portage' />
       <xsd:enumeration value='yum' />

--- metadata.xsd        Wed Aug  8 13:26:02 2007
+++ metadata.xsd.orig   Wed Aug  8 13:25:45 2007
@@ -13,7 +13,7 @@

   <xsd:simpleType name='toolsetType'>
     <xsd:restriction base="xsd:string">
-      <xsd:pattern value="rh|debian|solaris|aix|gentoo|freebsd|auto"/>
+      <xsd:pattern value="rh|debian|solaris|aix|gentoo|auto"/>
     </xsd:restriction>
   </xsd:simpleType>

Attachments

Change History

comment:1 Changed 16 years ago by desai

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

Committed in revision [a494480eb34a2aa6b128bb68c1bde9080f5d00d1] (SVN r3616), thanks for the patch.

-nld

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.