> Hi there,
>
> Seeing an odd error when running the foreman task, this is a clean install
> of puppet 3.0.2 from puppetlabs repo under Passenger, and foreman 1.1rc4
> from git as of yesterday. It's using the old activerecord and mysql backend
> as well. 170 hosts reporting.
>
> I have another identical environment on the same versions which runs
> without any errors, but has only 5 hosts.
>
> $ rake puppet:migrate:populate_hosts --trace
> ** Invoke puppet:migrate:populate_hosts (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute puppet:migrate:populate_hosts
> rake aborted!
> Validation failed: Major is not a number
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/validations.rb:49:in
> save!' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/attribute_methods/dirty.rb:30:in >
save!'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/transactions.rb:245:in
> save!' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/transactions.rb:292:in >
with_transaction_returning_status'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
> transaction' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/transactions.rb:207:in >
transaction'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/transactions.rb:290:in
> with_transaction_returning_status' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/transactions.rb:245:in >
save!'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/validations.rb:34:in
> create!' > /usr/share/foreman-git/foreman/app/models/facts_importer.rb:25:in >
operatingsystem'
> /usr/share/foreman-git/foreman/app/models/host.rb:880:in send' > /usr/share/foreman-git/foreman/app/models/host.rb:880:in >
set_non_empty_values'
> /usr/share/foreman-git/foreman/app/models/host.rb:879:in each' > /usr/share/foreman-git/foreman/app/models/host.rb:879:in >
set_non_empty_values'
> /usr/share/foreman-git/foreman/app/models/host.rb:488:in
> populateFieldsFromFacts' > /usr/share/foreman-git/foreman/lib/tasks/puppet.rake:36 > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/relation/batches.rb:21:in >
find_each'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/relation/batches.rb:21:in
> each' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/relation/batches.rb:21:in >
find_each'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/relation/batches.rb:69:in
> find_in_batches' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/relation/batches.rb:20:in >
find_each'
> /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/base.rb:446:in
> __send__' > /usr/share/foreman-git/foreman/vendor/ruby/1.8/gems/activerecord-3.0.18/lib/active_record/base.rb:446:in >
find_each'
> /usr/share/foreman-git/foreman/lib/tasks/puppet.rake:30
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in call' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in
execute'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in each' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in
execute'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in
> invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in
synchronize'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in
> invoke_with_call_chain' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in
invoke'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in
> invoke_task' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in >
top_level'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in each' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in >
top_level'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in
> run_with_threads' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in >
top_level'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in run' > /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in >
standard_exception_handling'
> /var/lib/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in run' > /var/lib/gems/1.8/gems/rake-10.0.3/bin/rake:33 > /usr/local/bin/rake:19:in
load'
> /usr/local/bin/rake:19
> Tasks: TOP => puppet:migrate:populate_hosts
>
> Can someone help out with this one?
>
this sounds like a fix we added for incorrect OS being created, can you
identify which host is and create a ticket and attach its facts ?
thanks for testing!
Ohad
···
On Sat, Jan 5, 2013 at 2:05 AM, david wrote:I’ve looked in the mysql database, and can only find a few matches for
‘Major’, all of which have integers assigned, I’m probably looking in the
wrong place.–
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/-/ouYlvgPTmgMJ.
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.