Ticket #699 (closed defect: fixed)
bcfg2-repo-validate treats Deps/info.xml incorrectly
Reported by: | mccallis | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
I have a file in my repo named Deps/info.xml that specifies the dependencies for the info package. The bcfg2-repo-validate command seems to treat this as a infoxml file and then to validate it. It produces the following error:
/var/lib/bcfg2/Deps/info.xml ***FAILS*** to verify <---- /var/lib/bcfg2/Deps/info.xml:2: element Dependencies: Schemas validity error : Element 'Dependencies': No matching global declaration available for the validation root. /var/lib/bcfg2/Deps/info.xml fails to validate
It looks like lines 35-36 in source:trunk/bcfg2/src/sbin/bcfg2-repo-validate try to eliminate files named info.xml from directories where they won't logically be found. Probably should add others to this list such as Deps, Base, Probes, and Rules.
This proposed fix is still somewhat brittle. A more robust and involved fix would be to have bcfg2-repo-validate only search for info.xml files in the folders "owned" by subclasses of Bcfg2.Server.Plugin.EntrySet or Bcfg2.Server.Plugin.GroupSpool.
Mike
This should be correct in [676e5cec8cd057f1ba404e6af2a4fd1453bdd36c] (SVN r5394). Thanks for the bug report!