Ticket #910 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

bcfg2-repo-validate doesn't work when built from source on openSUSE

Reported by: m4z <[email protected]…> Owned by: desai
Priority: minor Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


On openSUSE (11.3), the default location for the bcfg files when installed from source via "python install" (without explicitly specifying a prefix) is /usr/local/..., which seems to break bcfg2-repo-validate:

chaos:~ # bcfg2-repo-validate 
Traceback (most recent call last):
  File "/usr/local/bin/bcfg2-repo-validate", line 26, in <module>
OSError: [Errno 2] No such file or directory: '/usr/share/bcfg2/schemas'
chaos:~ # grep schema bcfg2-files.log 


Change History

comment:1 Changed 13 years ago by fabaff

I committed a quick-and-dirty hack to catch your path. Can you please test it? On Fedora based system this issue doesn't occur.

Changeset [3aed1086233473a5262a58bb6d87c8127a076e58] (SVN r6017) contains the new code.

comment:2 Changed 13 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.0 Release

You can fix this with the current code by setting a prefix in the [server] section of bcfg2.conf:


comment:3 Changed 13 years ago by m4z <[email protected]…>

Thanks to both of you for the quick replies, using the config option works fine.

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.