On 20/10/16 00:58, 'Konstantin Orekhov' via Foreman users wrote: > Hello there! > > I'm having an isolated issue on one of the Foreman (separate) instances, > where I can't deploy Libvirt VMs into compute resources anymore. > > A standard procedure (through UI): > New Host > put a hostname for a new VM > pick a compute resource to deploy on > > At this point I see that "Interfaces" tab goes red and if I go to it, I > see this message: > > Error loading interfaces information: Internal Server Error > > My production.log show me this: > [..] > 2016-10-19 16:31:19 5e8f4434 [app] [W] Action failed > | ActiveRecord::UnknownAttributeError: unknown attribute > 'provision_method' for Host::Managed. [snip] > > As I mentioned, I have other 5 1.7.1 instances where this still works > perfectly fine. I suspect someone has mocked around with Foreman DB on a > troubled instances, I just can't figure out what it is. And Foreman > upgrades could not fix that either :(
Yes, you're probably right - either the DB's been altered or the initial upgrade (in 1.5.0) that added this "provision_method" column didn't run for some reason and was skipped. I'd suggest editing /usr/share/foreman/db/migrate/20140304184854_add_provision_method_to_hosts.rb and commenting out the "remove_column" line with a #, then run: foreman-rake db:migrate:down VERSION=20140304184854 foreman-rake db:migrate:up VERSION=20140304184854 This should reverse the column add (i.e. nothing, if you comment out the line), and then add it back. -- Dominic Cleal [email protected] -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
