[Ovirt-devel] Re: [PATCH server] build correct db using configured rails env in ovirt-server-install

Mohammed Morsi mmorsi at redhat.com
Mon Nov 10 19:29:50 UTC 2008

Mohammed Morsi wrote:
> set RAILS_ENV in conf/ovirt-rails.sysconf before building
> ---

This patch is needed to fix the test suite and useful just for general

After it is applied, anyone (including autobuild) can set their server
to be in the 'development' or any other mode as when building a new rpm.
oVirt will pick this up and create / configure the appropriate database
and set rails to run in the proper environment. Many of the 'rake'
features, particularly those relating to testing, default to generating
a schema from the 'development' database before creating the test one.

This will fix selenium and a few other tests as well, since the
environment can be set to development during the build phase, the
application's user, as defined in the application controller, will be
statically set to ovirtadmin, thus manual authentication will not be
required (obviously a problem for autobuild)


More information about the ovirt-devel mailing list