Ticket #643 (closed defect: fixed)
Error/warn on xml dupes
Reported by: | anonymous | Owned by: | solj |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
Currently it is possible for duplicate - but different and conflicting - duplicates to exist in most (any?) config file.
e.g. Pkgmgr/distro.xml
<Package name='kernel'>
<Instance version='2.6.19' release='1.el5' arch='i686' />
</Package> <Package name='kernel'>
<Instance version='2.6.18' release='53.el5' arch='i686' verify_flags='nomtime' /> <Instance version='2.6.18' release='92.el5' arch='i686' verify_flags='nomtime'/>
</Package>
The validator does not catch this, and one of the two sets of package instances is chosen by bcfg2. The first one last time I checked, but this might be random.
Attachments
Change History
comment:1 Changed 14 years ago by solj
- Owner changed from desai to solj
- Status changed from new to assigned
comment:2 Changed 14 years ago by solj
- Milestone changed from Bcfg2 0.9.6.1 (Reporting System Bugfixes) to Bcfg2 1.0 Release
comment:3 Changed 14 years ago by solj
- Status changed from assigned to closed
- Resolution set to fixed
This should be resolved in [99b7eba28856d43d1c7a70551d0974e4a266e5f0] (SVN r5220). You can check for duplicates by running bcfg2-repo-validate.