Project

General

Profile

Actions

Bug #2456

closed

Error while testing compute resources

Added by David Schmitt about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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'

Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #2002: Problem editing Libvirt Host in ForemanResolvedMarek Hulán12/05/2012Actions
Actions #1

Updated by Greg Sutcliffe about 11 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...

Actions #2

Updated by David Schmitt about 11 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.

Actions #3

Updated by Ohad Levy about 11 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 10

Ohad, 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?

Actions #4

Updated by Greg Sutcliffe about 11 years ago

Ohad: https://github.com/fog/fog/pull/1803

David: shall we close this?

Actions #5

Updated by David Schmitt about 11 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.

Actions #6

Updated by Greg Sutcliffe about 11 years ago

  • Status changed from New to Closed

Thanks David :)

Actions

Also available in: Atom PDF