Hello all,
I am trying to use Foreman 1.4.2 for openstack,
After openstack-foreman-installer,
http://openstack.redhat.com/Deploying_RDO_using_Foreman
@ step: configuring foreman server
I am seeing this error. Appreciate any kind of help here.
My environment details:
HOSTNAME: foreman.test.org
OS: redhat
RELEASE: Red Hat Enterprise Linux Server release 6.5 (Santiago)
FOREMAN: 1.4.2
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 3.5.1
-------------------- Error log --------------------
[root@redhat-vm-1 bin]# sh foreman_server.sh
- RED HAT OPENSTACK #####################
Thank you for using the Red Hat OpenStack Foreman Installer!
···
############################################################
Press [Enter] to continue
net.ipv4.ip_forward = 1
/usr/share/foreman-installer /usr/share/openstack-foreman-installer/bin
Info: Loading facts in
/usr/share/foreman-installer/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in
/usr/share/foreman-installer/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in
/usr/share/foreman-installer/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in
/usr/share/foreman-installer/modules/concat/lib/facter/concat_basedir.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera
defaults
Warning: Puppet::Node::Environment.current has been replaced by
Puppet.lookup(:current_environment), see
http://links.puppetlabs.com/current-env-deprecation
(at (erb):4:in `result')
Warning: Puppet::Node::Environment.current has been replaced by
Puppet.lookup(:current_environment), see
http://links.puppetlabs.com/current-env-deprecation
(at
/usr/share/foreman-installer/modules/puppet/templates/agent/puppet.conf.erb:3:in
`result')
Warning: Puppet::Node::Environment.current has been replaced by
Puppet.lookup(:current_environment), see
http://links.puppetlabs.com/current-env-deprecation
(at
/usr/share/foreman-installer/modules/puppet/templates/server/config.ru.erb:3:in
`result')
Warning: Puppet::Node::Environment.current has been replaced by
Puppet.lookup(:current_environment), see
http://links.puppetlabs.com/current-env-deprecation
(at
/usr/share/foreman-installer/modules/puppet/templates/server/puppet.conf.erb:3:in
`result')
Error: Could not find class passenger for foreman.test.org on node
foreman.test.org
Error: Could not find class passenger for foreman.test.org on node
foreman.test.org
/usr/share/openstack-foreman-installer/bin
rake aborted!
Please install the sqlite3 adapter: `gem install
activerecord-sqlite3-adapter` (Could not find sqlite3 (~> 1.3.5) amongst
[actionmailer-3.2.8, actionpack-3.2.8, activemodel-3.2.8,
activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8,
ancestry-2.0.0, apipie-rails-0.0.23, arel-3.0.2, audited-3.0.0,
audited-activerecord-3.0.0, bigdecimal-1.1.0, bootstrap-sass-3.0.3.0,
builder-3.0.0, bundler-1.1.4, bundler_ext-0.3.0, daemons-1.1.4,
deface-0.7.2, diff-lcs-1.1.3, erubis-2.7.0, eventmachine-0.12.10,
fast_gettext-0.8.0, foreigner-1.4.2, foreman_simplify-0.0.5,
gettext_i18n_rails-0.10.0, gettext_i18n_rails_js-0.0.8, hike-1.2.1,
i18n-0.6.0, i18n_data-0.2.7, io-console-0.3, journey-1.0.4,
jquery-rails-2.0.2, jquery-ui-rails-4.0.2, json-1.5.5, mail-2.4.4,
mime-types-1.19, multi_json-1.8.2, mysql2-0.3.11, net-http-persistent-2.7,
net-ldap-0.3.1, nokogiri-1.5.6, oauth-0.4.7, po_to_json-0.0.7,
polyglot-0.3.3, rabl-0.7.6, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2,
rack-test-0.6.1, rails-3.2.8, railties-3.2.8, rake-0.9.2.2, rdoc-3.9.5,
ref-1.0.0, rest-client-1.6.1, ruby2ruby-2.0.1, ruby_parser-3.1.1,
safemode-1.2.0, sass-3.2.13, scoped_search-2.6.5, sexp_processor-4.1.3,
sprockets-2.4.5, therubyracer-0.11.0beta5, thin-1.3.1, thor-0.15.4,
tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.33, uuidtools-2.1.3,
will_paginate-3.0.2])
Tasks: TOP => puppet:import:puppet_classes => environment
(See full trace by running task with --trace)
rake aborted!
I tried installing sqlite3 “yum install sqlite-devel” and “gem install
sqlite3”
But seeing error
[root@redhat-vm-1 bin]# gem install sqlite3
Building native extensions. This could take a while…
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for sqlite3.h… no
sqlite3.h is missing. Try ‘port install sqlite3 +universal’,
‘yum install sqlite-devel’ or 'apt-get install libsqlite3-dev’
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Thanks,
Shyam.
Shayam,
Remove the line from foreman_server.sh:
include passenger
Brad
···
On Wednesday, April 23, 2014 6:48:31 AM UTC-4, Shyam Goud wrote:
>
> Hello all,
>
> I am trying to use Foreman 1.4.2 for openstack,
>
> After openstack-foreman-installer,
> http://openstack.redhat.com/Deploying_RDO_using_Foreman
>
> @ step: configuring foreman server
>
> I am seeing this error. Appreciate any kind of help here.
>
> My environment details:
> HOSTNAME: foreman.test.org
> OS: redhat
> RELEASE: Red Hat Enterprise Linux Server release 6.5 (Santiago)
> FOREMAN: 1.4.2
> RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
> PUPPET: 3.5.1
>
> -------------------- Error log --------------------
> [root@redhat-vm-1 bin]# sh foreman_server.sh
>
> 1. RED HAT OPENSTACK #####################
> Thank you for using the Red Hat OpenStack Foreman Installer!
> ############################################################
> Press [Enter] to continue
> net.ipv4.ip_forward = 1
> /usr/share/foreman-installer /usr/share/openstack-foreman-installer/bin
> Info: Loading facts in
> /usr/share/foreman-installer/modules/stdlib/lib/facter/puppet_vardir.rb
> Info: Loading facts in
> /usr/share/foreman-installer/modules/stdlib/lib/facter/pe_version.rb
> Info: Loading facts in
> /usr/share/foreman-installer/modules/stdlib/lib/facter/root_home.rb
> Info: Loading facts in
> /usr/share/foreman-installer/modules/concat/lib/facter/concat_basedir.rb
> Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera
> defaults
> Warning: Puppet::Node::Environment.current has been replaced by
> Puppet.lookup(:current_environment), see
> http://links.puppetlabs.com/current-env-deprecation
> (at (erb):4:in `result')
> Warning: Puppet::Node::Environment.current has been replaced by
> Puppet.lookup(:current_environment), see
> http://links.puppetlabs.com/current-env-deprecation
> (at
> /usr/share/foreman-installer/modules/puppet/templates/agent/puppet.conf.erb:3:in
> `result')
> Warning: Puppet::Node::Environment.current has been replaced by
> Puppet.lookup(:current_environment), see
> http://links.puppetlabs.com/current-env-deprecation
> (at
> /usr/share/foreman-installer/modules/puppet/templates/server/config.ru.erb:3:in
> `result')
> Warning: Puppet::Node::Environment.current has been replaced by
> Puppet.lookup(:current_environment), see
> http://links.puppetlabs.com/current-env-deprecation
> (at
> /usr/share/foreman-installer/modules/puppet/templates/server/puppet.conf.erb:3:in
> `result')
> Error: Could not find class passenger for foreman.test.org on node
> foreman.test.org
> Error: Could not find class passenger for foreman.test.org on node
> foreman.test.org
> /usr/share/openstack-foreman-installer/bin
> rake aborted!
> Please install the sqlite3 adapter: `gem install
> activerecord-sqlite3-adapter` (Could not find sqlite3 (~> 1.3.5) amongst
> [actionmailer-3.2.8, actionpack-3.2.8, activemodel-3.2.8,
> activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8,
> ancestry-2.0.0, apipie-rails-0.0.23, arel-3.0.2, audited-3.0.0,
> audited-activerecord-3.0.0, bigdecimal-1.1.0, bootstrap-sass-3.0.3.0,
> builder-3.0.0, bundler-1.1.4, bundler_ext-0.3.0, daemons-1.1.4,
> deface-0.7.2, diff-lcs-1.1.3, erubis-2.7.0, eventmachine-0.12.10,
> fast_gettext-0.8.0, foreigner-1.4.2, foreman_simplify-0.0.5,
> gettext_i18n_rails-0.10.0, gettext_i18n_rails_js-0.0.8, hike-1.2.1,
> i18n-0.6.0, i18n_data-0.2.7, io-console-0.3, journey-1.0.4,
> jquery-rails-2.0.2, jquery-ui-rails-4.0.2, json-1.5.5, mail-2.4.4,
> mime-types-1.19, multi_json-1.8.2, mysql2-0.3.11, net-http-persistent-2.7,
> net-ldap-0.3.1, nokogiri-1.5.6, oauth-0.4.7, po_to_json-0.0.7,
> polyglot-0.3.3, rabl-0.7.6, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2,
> rack-test-0.6.1, rails-3.2.8, railties-3.2.8, rake-0.9.2.2, rdoc-3.9.5,
> ref-1.0.0, rest-client-1.6.1, ruby2ruby-2.0.1, ruby_parser-3.1.1,
> safemode-1.2.0, sass-3.2.13, scoped_search-2.6.5, sexp_processor-4.1.3,
> sprockets-2.4.5, therubyracer-0.11.0beta5, thin-1.3.1, thor-0.15.4,
> tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.33, uuidtools-2.1.3,
> will_paginate-3.0.2])
>
> Tasks: TOP => puppet:import:puppet_classes => environment
> (See full trace by running task with --trace)
> rake aborted!
>
> ----------------------------------------------------
>
> I tried installing sqlite3 "yum install sqlite-devel" and "gem install
> sqlite3"
>
> But seeing error
>
> [root@redhat-vm-1 bin]# gem install sqlite3
> Building native extensions. This could take a while...
> ERROR: Error installing sqlite3:
> ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby extconf.rb
> checking for sqlite3.h... no
> sqlite3.h is missing. Try 'port install sqlite3 +universal',
> 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
> and check your shared library search path (the
> location where your sqlite3 shared library is located).
> *** extconf.rb failed ***
>
>
> Thanks,
> Shyam.
>