Project

General

Profile

Actions

Bug #3688

closed

Can't edit VMware host after adding raw disk

Added by Wannes Van Causbroeck over 10 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When i click edit host after i added a raw disk through Vsphere, i get the following error:

undefined method `thinProvisioned' for #<RbVmomi::VIM::VirtualDiskRawDiskMappingVer1BackingInfo:0x00000007d2adc8>

full trace:

NoMethodError
undefined method `thinProvisioned' for #<RbVmomi::VIM::VirtualDiskRawDiskMappingVer1BackingInfo:0x00000007d2adc8>
app/views/compute_resources_vms/form/_vmware.html.erb:26:in `block in app_views_compute_resources_vms_form_vmware_html_erb___3629224447530518198_64961900'
app/views/compute_resources_vms/form/_vmware.html.erb:26:in `_app_views_compute_resources_vms_form__vmware_html_erb___3629224447530518198_64961900'
app/views/hosts/_compute.html.erb:4:in `block in app_views_hosts_compute_html_erb__3886529712672857927_69818491889200'
app/views/hosts/_compute.html.erb:1:in `_app_views_hosts__compute_html_erb__3886529712672857927_69818491889200'
app/views/hosts/_unattended.html.erb:2:in `_app_views_hosts__unattended_html_erb___2264624007407781015_69818497948800'
app/views/hosts/_form.html.erb:79:in `block (2 levels) in app_views_hosts_form_html_erb__3269122963774744318_64173640'
app/helpers/layout_helper.rb:205:in `form_for'
app/views/hosts/_form.html.erb:7:in `block in app_views_hosts_form_html_erb__3269122963774744318_64173640'
app/models/taxonomy.rb:55:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:143:in `as_location'
app/models/taxonomy.rb:54:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:108:in `as_org'
app/models/taxonomy.rb:53:in `as_taxonomy'
app/views/hosts/_form.html.erb:5:in `_app_views_hosts__form_html_erb__3269122963774744318_64173640'
app/views/hosts/edit.html.erb:7:in `_app_views_hosts_edit_html_erb___3698344318763456407_64122560'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'


Related issues 3 (1 open2 closed)

Related to Foreman - Feature #3088: Allow user to select thick and thin provision for vSphere volumesClosedMartin Matuška09/14/2013Actions
Related to Foreman - Feature #6732: [RFE] RAW Disk Mapping in VMwareNew07/22/2014Actions
Has duplicate Foreman - Bug #3745: Issue with editing host with mapped disk.Duplicate11/25/2013Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Related to Feature #3088: Allow user to select thick and thin provision for vSphere volumes added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Category set to Compute resources
  • translation missing: en.field_release deleted (1)
Actions #3

Updated by Dominic Cleal over 10 years ago

  • Has duplicate Bug #3745: Issue with editing host with mapped disk. added
Actions #4

Updated by Toni Schmidbauer about 10 years ago

just a me too. same message with foreman 1.4.2

Operation FAILED: undefined method `thinProvisioned' for #<RbVmomi::VIM::VirtualDiskRawDiskMappingVer1BackingInfo:0x007f04c8e93198>

the admin of the system added a second disk to the vm. is there a workaround available?

thanks
toni

Actions #5

Updated by Toni Schmidbauer about 10 years ago

this is fixed in fog version 1.21. we currently run foreman 1.4.2 with fog 1.19. hopefully this is fixed with the next forman update.
in the meantime you just have to change

:thin => vol.backing.thinProvisioned,

to

:thin => (vol.backing.thinProvisioned rescue(nil)),

in fog/lib/fog/vsphere/requests/compute/list_vm_volumes.rb

toni

Actions #6

Updated by Dominic Cleal over 9 years ago

  • Category changed from Compute resources to Compute resources - VMware
Actions #7

Updated by Dominic Cleal over 9 years ago

  • Related to Feature #6732: [RFE] RAW Disk Mapping in VMware added
Actions #8

Updated by Anonymous almost 8 years ago

  • Status changed from New to Resolved

should be fixed by fog now.

Actions

Also available in: Atom PDF