Hi Matt,
This issue is actually caused by Puppet 3, not the Foreman upgrade
directly. There is an open pull request (
https://github.com/theforeman/foreman/pull/166) that needs some work, but
fixes this issue. I recommend downgrading to 2.7.19 if that's an option; if
not give the patch a go and report back
-Sam
···
On Fri, Oct 5, 2012 at 3:51 PM, Matt Warren wrote:Relatively novice puppet and foreman user. I’m using foreman mostly for
puppet reporting at this point.Running on cents 5.8 running into errors. Any ideas?
I upgraded:
- puppet-server-3.0.0-1.el5
- foreman-sqlite-1.0.1-1.el5
- foreman-vmware-1.0.1-1.el5
- foreman-release-1.0.1-1.el5
- foreman-1.0.1-1.el5
- foreman-ec2-1.0.1-1.el5
- foreman-proxy-1.0.0-3.el5
- and a boatload of ruby updates (ruby 1.8.7 (2012-06-29 patchlevel
- [x86_64-linux])
Tried running the db migrate per
Upgrade instructions - Foreman
withrake db:migrate RAILS_ENV=“production”
I also found ref to running as foreman user and have tried this:
su - foreman -s /bin/bash -c /usr/share/foreman/extras/**dbmigrateWhen run I get:
Libvirt binding are missing - hypervisor management is disabled
/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
rake aborted!
Error converting value for param ‘hostcert’: Error converting value for
param ‘certdir’: Error converting value for param ‘ssldir’: Could not find
value for $confdirTasks: TOP => db:migrate => environment
(See full trace by running task with --trace)If I try to start the service i get:
service foreman start
Starting foreman: Libvirt binding are missing - hypervisor management is
disabled
/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/site_ruby/1.8/puppet/settings.rb:252:inconvert': Error converting value for param 'hostcert': Error converting value for param 'certdir': Error converting value for param 'ssldir': Could not find value for $confdir (Puppet::Settings::InterpolationError) from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in
gsub’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:inconvert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:in
value’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:249:inconvert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in
gsub’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:inconvert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:in
value’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:249:inconvert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:in
gsub’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:243:inconvert' from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:971:in
value’
from /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:66:in[]' from /usr/share/foreman/lib/foreman/default_settings/loader.rb:42:in
load’
from
/usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
transaction' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.15/lib/active_record/transactions.rb:207:in
transaction’
from /usr/share/foreman/lib/foreman/default_settings/loader.rb:28:inload' from /usr/share/foreman/config/initializers/foreman.rb:4 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:in
load’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:in
load' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:227:in
load_dependency’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.15/lib/active_support/dependencies.rb:236:in
load' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:201 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:200:in
each’
from /usr/lib/ruby/gems/1.8/gems/railties-3.0.15/lib/rails/engine.rb:200
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
[FAILED]–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/VqrLFA06It0J.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.