Project

General

Profile

Bug #23378

Unable to create a VM on 1.17.0 on vCenter 6.5.

Added by Ian Mordey about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Following on from #23335 I applied the patch from http://projects.theforeman.org/issues/23335#note-31

I now get this error when I attempt to create a new VM:

2018-04-24 04:29:02 e0e9f15a [app] [W] Failed to create a compute prod03.ashb (VMware) instance irvin-catania.example.com: InvalidRequest:
 | Cannot parse "70aa0880-4799-11e8-b3ab-d7400f90b035" as an int value
 |
 | while parsing serialized value of type int
 | at line 1, column 1394
 |
 | while parsing property "key" of static type int
 |
 | while parsing serialized DataObject of type vim.vm.device.VirtualDisk
 | at line 1, column 1363
 |
 | while parsing property "device" of static type VirtualDevice
 |
 | while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
 | at line 1, column 1251
 |
 | while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec
 |
 | while parsing serialized DataObject of type vim.vm.ConfigSpec
 | at line 1, column 247
 |
 | while parsing call information for method CreateVM_Task
 | at line 1, column 177
 |
 | while parsing SOAP body
 | at line 1, column 167
 |
 | while parsing SOAP envelope
 | at line 1, column 0
 |
 | while parsing HTTP request for method createVm
 | on object of type vim.Folder
 | at line 1, column 0
 |
 | RbVmomi::Fault: InvalidRequest:
 | Cannot parse "70aa0880-4799-11e8-b3ab-d7400f90b035" as an int value
 |
 | while parsing serialized value of type int
 | at line 1, column 1394
 |
 | while parsing property "key" of static type int
 |
 | while parsing serialized DataObject of type vim.vm.device.VirtualDisk
 | at line 1, column 1363
 |
 | while parsing property "device" of static type VirtualDevice
 |
 | while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
 | at line 1, column 1251
 |
 | while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec
 |
 | while parsing serialized DataObject of type vim.vm.ConfigSpec
 | at line 1, column 247
 |
 | while parsing call information for method CreateVM_Task
 | at line 1, column 177
 |
 | while parsing SOAP body
 | at line 1, column 167
 |
 | while parsing SOAP envelope
 | at line 1, column 0
 |
 | while parsing HTTP request for method createVm
 | on object of type vim.Folder
 | at line 1, column 0
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/connection.rb:63:in `parse_response'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/connection.rb:92:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/basic_types.rb:213:in `_call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/basic_types.rb:76:in `block (2 levels) in init'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:48:in `create_vm_on_datastore'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/requests/compute/create_vm.rb:40:in `create_vm'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.1.0/lib/fog/vsphere/models/compute/server.rb:303:in `save'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:447:in `create_vm'
 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:77:in `setCompute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:222:in `execute'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:827:in `_run_save_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/callbacks.rb:336:in `create_or_update'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/persistence.rb:129:in `save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/validations.rb:44:in `save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/attribute_methods/dirty.rb:35:in `save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:308:in `block (2 levels) in save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:384:in `block in with_transaction_returning_status'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
 | /opt/rh/rh-ruby24/root/usr/share/ruby/monitor.rb:214:in `mon_synchronize'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:381:in `with_transaction_returning_status'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:308:in `block in save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:323:in `rollback_active_record_state!'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:307:in `save'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/suppressor.rb:42:in `save'
 | /usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
 | /usr/share/foreman/app/controllers/hosts_controller.rb:104:in `create'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
 | /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:135:in `run_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/rescue.rb:20:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `block in instrument'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/notifications.rb:166:in `instrument'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/railties/controller_runtime.rb:22:in `process_action'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:124:in `process'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionview-5.1.4/lib/action_view/rendering.rb:30:in `process'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:189:in `dispatch'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_controller/metal.rb:253:in `dispatch'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:31:in `serve'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `each'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/journey/router.rb:33:in `serve'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/routing/route_set.rb:834:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/static_dispatcher.rb:65:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/extractor/recorder.rb:136:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.6/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/conditional_get.rb:38:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/head.rb:12:in `call'
 | /usr/share/foreman/lib/middleware/session_safe_logging.rb:17:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/callbacks.rb:97:in `run_callbacks'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:36:in `call_app'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/rack/logger.rb:26:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 | /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/request_id.rb:25:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/executor.rb:12:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.4/lib/action_dispatch/middleware/static.rb:125:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/engine.rb:522:in `call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:68:in `block in call'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `each'
 | /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/rack-2.0.3/lib/rack/urlmap.rb:53:in `call'
 | /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
 | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
 | /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
 | /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2018-04-24 04:29:02 e0e9f15a [app] [W] Rolling back due to a problem: [#<Orchestration::Task:0x000000095134f8 @name="Set up compute instance irvin-catania.example.com", @status="failed", @priority=2, @action=[#<Host::Managed id: nil, name: "irvin-catania.example.com", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: "$xxxx, architecture_id: 1, operatingsystem_id: 1, environment_id: 1, ptable_id: 88, medium_id: 1, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 6, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 2, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", otp: nil, realm_id: 1, compute_profile_id: nil, provision_method: "build", grub_pass: "$xxxxx", global_status: 0, lookup_value_matcher: "fqdn=irvin-catania.example.com", pxe_loader: "PXELinux BIOS">, :setCompute], @timestamp=2018-04-24 08:29:02 UTC>]

Related issues

Related to Foreman - Bug #23335: Cannot create VM in a vCenter. NoMethodError.Closed
Related to Foreman - Bug #23427: [1.17.0] VMWare: creating new compute profile is unusable Need more information2018-04-27

Associated revisions

Revision 3b0a7ea0 (diff)
Added by Timo Goebel 12 months ago

fixes #23378 - vsphere: filter volume key parameter

History

#1 Updated by Ian Mordey about 1 year ago

  • Related to Bug #23335: Cannot create VM in a vCenter. NoMethodError. added

#2 Updated by Timo Goebel about 1 year ago

This is hard to debug without knowing what data is passed to vsphere.

Ian, do you feel comfortable adding a debug command to your code and share the output?

https://gist.github.com/timogoebel/9467f3be42cf0e08a34c8abc4fcb8be5

Thanks.

#3 Updated by Ian Mordey about 1 year ago

Here you go. Only thing I've replaced is the VM name.

2018-04-24 05:11:21 842fe5ab [app] [E] DEBUG: compute resource args: {"cpus"=>"1", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"automatic", "cluster"=>"ASHB_PROD", "resource_pool"=>"Resources", "path"=>"/Datacenters/ASHB/vm", "guest_id"=>"otherGuest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"0", "cpuHotAddEnabled"=>"0", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>[{"type"=>"VirtualLsiLogicController", "key"=>1000}], "volumes_attributes"=>{"0"=>{"thin"=>true, "name"=>"Hard disk", "mode"=>"persistent", "controller_key"=>1000, "size"=>10485760, "size_gb"=>10, "key"=>"5b1a42e0-479f-11e8-aba7-17f6bbbf24a7", "datastore"=>"PROD_DS2"}}, "name"=>"brent-lishman.example.com", "provision_method"=>"build", "firmware_type"=>:bios, "interfaces_attributes"=>{"0"=>{"network"=>"SERVER-10G_1020", "type"=>"VirtualVmxnet3", "ip"=>"10.8.12.112", "ip6"=>"", "virtualswitch"=>nil}}}

#4 Updated by Timo Goebel about 1 year ago

Interesting. The volume should not contain the `key` parameter. I believe we only use that in the react ui.

Here is a quick patch that might fix this. I haven't tested it, though and it's not a good fix. The ui should not send the parameter. The patch just filters it out from the request parameters.

https://gist.github.com/timogoebel/d2e4ac9c51e495531b15815058cce927

Do you provision the vm using a compute profile?

#6 Updated by Ian Mordey about 1 year ago

Still get the same error with that patch applied and the key is still visible in the DEBUG compute resource args.

I'm not using compute profiles at the minute.

#7 Updated by Daniel Lobato Garcia about 1 year ago

  • Legacy Backlogs Release (now unused) set to 297

#8 Updated by David Fuellgraf about 1 year ago

i have the same issue, also with patch.

#9 Updated by Timo Goebel about 1 year ago

  • Assignee set to Timo Goebel
  • Status changed from New to Assigned

It looks like the UI filtering does not work properly. I have a fix, I just have to test if this is isolated to 1.17-stable or also happens on the develop branch.

I also updated the fix in the gist. That should do as a workaround for now.

#10 Updated by Timo Goebel about 1 year ago

The vsphere storage ui renders a hidden field with json data.

The value looks different on 1.17-stable and 1.18-stable:

1.18-stable: {"scsiControllers":[{"type":"VirtualLsiLogicController","key":1000}],"volumes":[{"thin":true,"name":"Hard disk","mode":"persistent","controllerKey":1000,"size":10485760,"sizeGb":10}]}

1.17-stable: {"scsiControllers":[{"type":"VirtualLsiLogicController","key":1000}],"volumes":[{"thin":true,"name":"Hard disk","mode":"persistent","controllerKey":1000,"size":10485760,"sizeGb":10,"key":"bd3ebb40-4862-11e8-9aaf-adeef3f61848"}]}

note the added key key.

I haven't been able to figure out, why this is happening.

#11 Updated by David Fuellgraf about 1 year ago

ok, so with the change to :key, it is working now :) but only if i directly assign a data store. with a storage pod, i also get an error:

henry-mihatsch.dv.tp.nil: InvalidArgument: A specified parameter was not correct: podSelectionspec.storagePod

#12 Updated by The Foreman Bot about 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5492 added

#13 Updated by Jeff Sparrow about 1 year ago

fyi, I applied the mentioned patches here:

https://github.com/theforeman/foreman/pull/5492#issuecomment-388376176

and it worked (1.17 / ESX 6.5)

#14 Updated by Eric Hansen about 1 year ago

  • Legacy Backlogs Release (now unused) changed from 297 to 296

I'm hitting something similar here after applying patches 5492 and 5481... are there any additional patches here to make this work?

2018-05-16 19:15:25 f279f3e5 [app] [I] Failed to save: Failed to create a compute tsmvc2-New_Datacenter (VMware) instance jim-belay.qa.catalogic.us: InvalidRequest: | Cannot parse "ebcc41f0-595e-11e8-91c2-ada0f3ea3613" as an int value | | while parsing serialized value of type int | at line 1, column 1398 | | while parsing property "key" of static type int | | while parsing serialized DataObject of type vim.vm.device.VirtualDisk | at line 1, column 1367 | | while parsing property "device" of static type VirtualDevice | | while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec | at line 1, column 1255 | | while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec | | while parsing serialized DataObject of type vim.vm.ConfigSpec | at line 1, column 247 | | while parsing call information for method CreateVM_Task | at line 1, column 177 | | while parsing SOAP body | at line 1, column 167 | | while parsing SOAP envelope | at line 1, column 0 | | while parsing HTTP request for method createVm | on object of type vim.Folder | at line 1, column 0

#15 Updated by Eric Hansen about 1 year ago

Never mind... I had to apply one of the patches manually and it worked.

#16 Updated by Daniel Lobato Garcia 12 months ago

  • Legacy Backlogs Release (now unused) changed from 296 to 360

#17 Updated by Ondřej Pražák 12 months ago

  • Legacy Backlogs Release (now unused) changed from 360 to 297
  • Pull request https://github.com/theforeman/foreman/pull/5576 added

#18 Updated by Marek Hulán 12 months ago

  • Status changed from Ready For Testing to Closed

The linked PR (non react one) was delivered in 1.17.1, would you mind updating and testing? Closing this now, please let us know in case it didn't help.

#19 Updated by The Foreman Bot 12 months ago

  • Pull request https://github.com/theforeman/foreman/pull/5644 added

#20 Updated by Timo Goebel 11 months ago

  • Related to Bug #23427: [1.17.0] VMWare: creating new compute profile is unusable added

Also available in: Atom PDF