[Users] Ovirt 3.1/ Foreman integration

Trey Dockendorf treydock at gmail.com
Thu Aug 30 20:39:28 UTC 2012


On Aug 30, 2012 3:21 PM, "Andrei Vakhnin" <Andrey.A.Vakhnin at nasa.gov> wrote:
>
> I've installed Foreman v.1.0 to work with my Ovirt 3.1 install on rhel6
machines.
>
>
> foreman-ovirt-1.0.0-2.el6.noarch
> rubygem-foremancli-1.0-1.el6.noarch
> foreman-console-1.0.0-2.el6.noarch
> foreman-release-1.0.0-1.el6.noarch
> foreman-cli-1.0.0-2.el6.noarch
> foreman-vmware-1.0.0-2.el6.noarch
> foreman-sqlite-1.0.0-2.el6.noarch
> foreman-ec2-1.0.0-2.el6.noarch
> foreman-postgresql-1.0.0-2.el6.noarch
> foreman-libvirt-1.0.0-2.el6.noarch
> foreman-mysql-1.0.0-2.el6.noarch
> foreman-mysql2-1.0.0-2.el6.noarch
> foreman-proxy-1.0.0-2.el6.noarch
> foreman-1.0.0-2.el6.noarch
>
> When I attempt to start foreman I get following errors:
>
> [root at dsrvr130 avakhnin]# /etc/init.d/foreman start
> Starting foreman:
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10:
warning: already initialized constant ENC_NONE
>
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11:
warning: already initialized constant ENC_EUC
>
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12:
warning: already initialized constant ENC_SJIS
>
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13:
warning: already initialized constant ENC_UTF8
>
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in
`establish_connection': production database is not configured
(ActiveRecord::AdapterNotSpecified)
>         from
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in
`establish_connection'
>         from
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railtie.rb:59
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:36:in
`instance_eval'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:36:in
`execute_hook'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/lazy_load_hooks.rb:26:in
`on_load'
>         from
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/railtie.rb:57
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in
`instance_exec'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:25:in
`run'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:50:in
`run_initializers'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in
`each'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/initializable.rb:49:in
`run_initializers'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:134:in
`initialize!'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in
`send'
>         from
/usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/application.rb:77:in
`method_missing'
>         from /usr/share/foreman/config/environment.rb:5
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in
`require'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in
`require'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in
`load_dependency'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:597:in
`new_constants_in'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:225:in
`load_dependency'
>         from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:242:in
`require'
>         from /usr/share/foreman/config.ru:3
>         from
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in
`instance_eval'
>         from
/usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/builder.rb:46:in
`initialize'
>         from /usr/share/foreman/config.ru:1:in `new'
>         from /usr/share/foreman/config.ru:1
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

Did you define you databases in /usr/share/foreman/config/databases.yaml?
May be symlinked to /etc/foreman/databases.yaml.   error indicates no
database adapter specified (sqlite, postgres, mysql, mysql2).

- Trey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20120830/3d03da31/attachment-0001.html>


More information about the Users mailing list