Actions
Bug #18015
openCannot clone host
Status:
New
Priority:
Normal
Assignee:
-
Description
Cloning a host results in an error like "undefined method "vdi" for nil:NilClass
with the following stack trace
2017-01-10 13:36:48 b4b452cf [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.4.0/app/views/compute_res ources_vms/form/xenserver/_base.html.erb (5.8ms) 2017-01-10 13:36:48 b4b452cf [app] [I] Rendered hosts/_compute_detail.html.erb (8.1ms) 2017-01-10 13:36:48 b4b452cf [app] [I] Rendered hosts/_compute.html.erb (224.7ms) 2017-01-10 13:36:48 b4b452cf [app] [I] Rendered hosts/_unattended.html.erb (225.9ms) 2017-01-10 13:36:48 b4b452cf [app] [D] Setting current location thread-local variable to none 2017-01-10 13:36:48 b4b452cf [app] [D] Setting current organization thread-local variable to none 2017-01-10 13:36:48 b4b452cf [app] [I] Rendered hosts/_form.html.erb (823.2ms) 2017-01-10 13:36:48 b4b452cf [app] [I] Rendered hosts/clone.html.erb within layouts/application (824.5ms) 2017-01-10 13:36:48 b4b452cf [app] [W] Action failed | NoMethodError: undefined method `vdi' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.4.0/app/helpers/xen_compute_helper.rb:55:in `hosts_controller_compute_at tribute_map' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.4.0/app/helpers/xen_compute_helper.rb:4:in `compute_attribute_map' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_xen-0.4.0/app/views/compute_resources_vms/form/xenserver/_base.html.erb:2:in ` _4836bffa61e2bbd720629a68d6ffd52a'
new.vbds appears to have lost its Fog::Association (I think?) because I believe this should be making a second call to get the VBDs for the host. I suspect this has to do with the object being cloned in Ruby and therefore losing reference to the block devices.
Updated by Anonymous over 6 years ago
- Status changed from New to Ready For Testing
- Difficulty deleted (
medium) - Assignee changed from Neil Hanlon to Anonymous
- Pull request https://github.com/theforeman/foreman-xen/pull/56 added
Updated by Anonymous over 6 years ago
- Status changed from Ready For Testing to New
- Assignee deleted (
Anonymous) - Pull request deleted (
https://github.com/theforeman/foreman-xen/pull/56)
Actions