Bug #2456
closedError while testing compute resources
Description
This comes when I try to edit one of my test nodes which were created on a compute resource.
NoMethodError undefined method `id' for #<Fog::Compute::Libvirt::Nic:0x0000000835ec08> app/views/compute_resources_vms/form/_libvirt.html.erb:11:in `block in _app_views_compute_resources_vms_form__libvirt_html_erb__3378791992696819986_56780540__3664015549457462270' app/views/compute_resources_vms/form/_libvirt.html.erb:11:in `_app_views_compute_resources_vms_form__libvirt_html_erb__3378791992696819986_56780540__3664015549457462270' app/views/hosts/_compute.html.erb:4:in `block in _app_views_hosts__compute_html_erb___685849808380996613_68673240_1597366395288774769' app/views/hosts/_compute.html.erb:1:in `_app_views_hosts__compute_html_erb___685849808380996613_68673240_1597366395288774769' app/views/hosts/_unattended.html.erb:2:in `_app_views_hosts__unattended_html_erb___3381483254598343420_68624060__1769907204343245939' app/views/hosts/_form.html.erb:72:in `block in _app_views_hosts__form_html_erb__643592888109913872_66724040_4188935408033908914' app/helpers/layout_helper.rb:190:in `form_for' app/views/hosts/_form.html.erb:4:in `_app_views_hosts__form_html_erb__643592888109913872_66724040_4188935408033908914' app/views/hosts/edit.html.erb:7:in `_app_views_hosts_edit_html_erb__847690414629689743_66685920_1413022787927814499' lib/foreman/thread_session.rb:31:in `clear_thread'
Updated by Greg Sutcliffe almost 12 years ago
I've hit this once before. You can manually fix it with a oneliner:
Edit `bundle show fog`/lib/fog/libvirt/models/compute/nic.rb
Put "attribute :id" at line 10
Ohad, would this be worth sending up to fog? I thought it was just me, but clearly other people are hitting it too...
Updated by David Schmitt almost 12 years ago
I'm pretty sure that I've fubared something with the VM while testing, and manually deleting the VM in virt-manager cleared this problem, still it's annoying and might throw others off track.
Updated by Ohad Levy almost 12 years ago
Greg Sutcliffe wrote:
I've hit this once before. You can manually fix it with a oneliner:
Edit `bundle show fog`/lib/fog/libvirt/models/compute/nic.rb
Put "attribute :id" at line 10Ohad, would this be worth sending up to fog? I thought it was just me, but clearly other people are hitting it too...
sure, why not?
Updated by Greg Sutcliffe almost 12 years ago
Ohad: https://github.com/fog/fog/pull/1803
David: shall we close this?
Updated by David Schmitt almost 12 years ago
Greg Sutcliffe wrote:
David: shall we close this?
I'm totally ok with closing this, as there's a solution and a workaround.