Bug #2002
closedProblem editing Libvirt Host in Foreman
Description
This is on my bleeding edge Foreman (ruby 1.9, puppet 3, psql 9.2)
I can create and destroy Libvirt Hosts in Foreman fine, but if I try to edit one, I get this error/trace:
"undefined method `id' for #<Fog::Compute::Libvirt::Nic:0xda7a000>" from app/views/compute_resources_vms/form/_libvirt.html.erb:11
Updated by Ohad Levy almost 12 years ago
can you confirm this happens on ruby 1.9 only?
Updated by Marek Hulán over 11 years ago
- Status changed from New to Assigned
- Assignee set to Marek Hulán
I can confirm. In ruby 1.8 every object has a method id that was replaced by object_id in ruby 1.9. The proper fix is in unreleased fog master branch (see https://github.com/fog/fog/blob/master/lib/fog/libvirt/models/compute/nic.rb#L10). We can either wait for a new release or make some monkey patch. However they claim to release soon.
Updated by Greg Sutcliffe over 11 years ago
I don't want to put bundler git gems back in the packaging, it makes a mess :). Let's hope they release a new version.
Updated by Dominic Cleal over 11 years ago
- Target version set to 1.2.0
I think this is important to fix for 1.2, as we're moving to Ruby 1.9 on the RPMs. I don't think the fix is in the 1.11.1 release, so can we monkey patch?
Updated by Marek Hulán over 11 years ago
- Status changed from Assigned to Ready For Testing
PR https://github.com/theforeman/foreman/pull/663
Before we close this one, we should create a new issue to remove this quick fix in future.
Updated by Ohad Levy over 11 years ago
- Status changed from Ready For Testing to Resolved