Provisioning of a discovered system fails

I get a failure when I try to provision a system that has been discovered.

ActiveRecord::RecordNotSaved
Failed to replace interfaces because one or more of the new records could
not be saved.
app/models/host/base.rb:282:in becomes' app/models/host.rb:15:inmethod_missing'
app/controllers/concerns/application_shared.rb:13:in set_timezone' app/models/concerns/foreman/thread_session.rb:32:inclear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

I have tried to turn on debugging within foremen but that does not seem to
be yielding any more detail.
I have uploaded foreman-debug-W9KOv.tar.xz if that is of any help.

http://projects.theforeman.org/issues/10936

··· On Tue, Jul 14, 2015 at 10:08:53AM -0700, Alvin Starr wrote: > I get a failure when I try to provision a system that has been discovered. > > ActiveRecord::RecordNotSaved > Failed to replace interfaces because one or more of the new records could > not be saved. > app/models/host/base.rb:282:in `becomes' > app/models/host.rb:15:in `method_missing' > app/controllers/concerns/application_shared.rb:13:in `set_timezone' > app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > I have tried to turn on debugging within foremen but that does not seem to > be yielding any more detail. > I have uploaded foreman-debug-W9KOv.tar.xz if that is of any help. > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

I saw that issue but could not understand from the last post what was
actually going wrong.

I have tried to turn up the debugging in foreman but did not have any luck.

··· On Wednesday, July 15, 2015 at 5:41:58 AM UTC-4, Lukas Zapletal wrote: > > http://projects.theforeman.org/issues/10936 > > On Tue, Jul 14, 2015 at 10:08:53AM -0700, Alvin Starr wrote: > > I get a failure when I try to provision a system that has been > discovered. > > > > ActiveRecord::RecordNotSaved > > Failed to replace interfaces because one or more of the new records > could > > not be saved. > > app/models/host/base.rb:282:in `becomes' > > app/models/host.rb:15:in `method_missing' > > app/controllers/concerns/application_shared.rb:13:in `set_timezone' > > app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' > > lib/middleware/catch_json_parse_errors.rb:9:in `call' > > > > I have tried to turn on debugging within foremen but that does not seem > to > > be yielding any more detail. > > I have uploaded foreman-debug-W9KOv.tar.xz if that is of any help. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Later, > Lukas #lzap Zapletal >

I manually configured a new host and after the first new host was added and
booted I was able to provision a newly discovered host.

It may have been the process of configuring the first host where I fixed
the problem or bad data.
I am not sure if the boot and install was required.

possibly there could be better error diagnostics but I know that is much
easier to say than to do.

··· On Wednesday, July 15, 2015 at 1:28:39 PM UTC-4, Alvin Starr wrote: > > > I saw that issue but could not understand from the last post what was > actually going wrong. > > I have tried to turn up the debugging in foreman but did not have any luck. > > > > On Wednesday, July 15, 2015 at 5:41:58 AM UTC-4, Lukas Zapletal wrote: >> >> http://projects.theforeman.org/issues/10936 >> >> On Tue, Jul 14, 2015 at 10:08:53AM -0700, Alvin Starr wrote: >> > I get a failure when I try to provision a system that has been >> discovered. >> > >> > ActiveRecord::RecordNotSaved >> > Failed to replace interfaces because one or more of the new records >> could >> > not be saved. >> > app/models/host/base.rb:282:in `becomes' >> > app/models/host.rb:15:in `method_missing' >> > app/controllers/concerns/application_shared.rb:13:in `set_timezone' >> > app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' >> > lib/middleware/catch_json_parse_errors.rb:9:in `call' >> > >> > I have tried to turn on debugging within foremen but that does not seem >> to >> > be yielding any more detail. >> > I have uploaded foreman-debug-W9KOv.tar.xz if that is of any help. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Foreman users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to foreman-user...@googlegroups.com. >> > To post to this group, send email to forema...@googlegroups.com. >> > Visit this group at http://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> Later, >> Lukas #lzap Zapletal >> >