Ticket #699 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

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:


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.



Change History

comment:1 Changed 14 years ago by solj

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

This should be correct in [676e5cec8cd057f1ba404e6af2a4fd1453bdd36c] (SVN r5394). Thanks for the bug report!

comment:2 Changed 14 years ago by solj

  • Milestone set to Bcfg2 1.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.