Hi,
I downloaded the automate essentials automate domain, and I’m trying to leverage covert to VM button. (from template)
When trying to convert the template to a machine this is what I get:
----] I, [2017-09-15T11:16:14.476791 #2890:6d112c] INFO – : <AEMethod [/PitneyBowes/Integration/VMware/vCenter/MarkVMAsVirtualMachine]> Starting [----] I, [2017-09-15T11:16:15.563096 #2890:6cf5c0] INFO – : CloudForms Automate Method Started [----] I, [2017-09-15T11:16:15.564225 #2890:6cf5c0] INFO – : Begin $evm.root.attributes [----] I, [2017-09-15T11:16:15.609472 #2874:6d112c] INFO – : Q-task_id([miq_provision_1000000005950]) Updated namespace [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create ManageIQ/Infrastructure/VM/Provisioning/StateMachines] [----] I, [2017-09-15T11:16:15.634854 #2890:d1ad44] INFO – : Attribute: ae_provider_category = infrastructure [----] I, [2017-09-15T11:16:15.641386 #2890:d1ad44] INFO – : Attribute: miq_group = #MiqAeMethodService::MiqAeServiceMiqGroup:0x00000017e18180 [----] I, [2017-09-15T11:16:15.645138 #2890:d1ad44] INFO – : Attribute: miq_server = #MiqAeMethodService::MiqAeServiceMiqServer:0x0000001ad77340 [----] I, [2017-09-15T11:16:15.647627 #2890:d1ad44] INFO – : Attribute: miq_server_id = 1000000000009 [----] I, [2017-09-15T11:16:15.651090 #2890:d1ad44] INFO – : Attribute: object_name = Request [----] I, [2017-09-15T11:16:15.654041 #2890:d1ad44] INFO – : Attribute: request = vmware_MarkVMAsVirtualMachine [----] I, [2017-09-15T11:16:15.657900 #2890:d1ad44] INFO – : Attribute: tenant = #MiqAeMethodService::MiqAeServiceTenant:0x00000017e1a160 [----] I, [2017-09-15T11:16:15.660549 #2890:d1ad44] INFO – : Attribute: user = #MiqAeMethodService::MiqAeServiceUser:0x00000017d94ec0 [----] I, [2017-09-15T11:16:15.662119 #2890:d1ad44] INFO – : Attribute: user_id = 1000000000001 [----] I, [2017-09-15T11:16:15.666604 #2890:d1ad44] INFO – : Attribute: vm = EngageOne3.1.2+Jboss_6.2+Win2012r2+OpenEDMS+SQLServer2012 [----] I, [2017-09-15T11:16:15.668275 #2890:d1ad44] INFO – : Attribute: vm_id = 1000000041286 [----] I, [2017-09-15T11:16:15.669670 #2890:d1ad44] INFO – : Attribute: vmdb_object_type = vm [----] I, [2017-09-15T11:16:15.671283 #2890:6cf5c0] INFO – : End $evm.root.attributes [----] I, [2017-09-15T11:16:15.672211 #2890:6cf5c0] INFO – : [----] I, [2017-09-15T11:16:15.691351 #2890:6cf5c0] INFO – : Detected VM: EngageOne3.1.2+Jboss_6.2+Win2012r2+OpenEDMS+SQLServer2012 vendor: vmware provider: Watford ems_ref: vm-64024 [----] I, [2017-09-15T11:16:15.692233 #2890:6cf5c0] INFO – : Resource Pool Name: Default for Cluster / Deployment Role Watford Cluster [----] I, [2017-09-15T11:16:18.561973 #2874:6d112c] INFO – : Q-task_id([miq_provision_1000000005950]) Updated namespace [Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned ManageIQ/Infrastructure/VM/Provisioning/StateMachines] [----] I, [2017-09-15T11:16:18.577716 #2874:6d112c] INFO – : Q-task_id([miq_provision_1000000005950]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned] with inputs [{}] [----] I, [2017-09-15T11:16:18.581791 #2874:6d112c] INFO – : Q-task_id([miq_provision_1000000005950]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned]> Starting [----] E, [2017-09-15T11:16:20.525908 #2890:6cf5c0] ERROR – : [(ServerFaultCode) The object has already been deleted or has not been completely created] /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/response.rb:70:in `raise_soap_and_http_errors!’
[----] I, [2017-09-18T12:36:20.876586 #2111:93353c] INFO – : Attribute: miq_server_id = 1000000000013 [----] I, [2017-09-18T12:36:20.879656 #2111:93353c] INFO – : Attribute: object_name = Request [----] I, [2017-09-18T12:36:20.881229 #2111:93353c] INFO – : Attribute: request = vmware_MarkVMAsVirtualMachine [----] I, [2017-09-18T12:36:20.883599 #2111:93353c] INFO – : Attribute: tenant = #MiqAeMethodService::MiqAeServiceTenant:0x00000011180dd8 [----] I, [2017-09-18T12:36:20.886081 #2111:93353c] INFO – : Attribute: user = #MiqAeMethodService::MiqAeServiceUser:0x00000011740cc8 [----] I, [2017-09-18T12:36:20.887590 #2111:93353c] INFO – : Attribute: user_id = 1000000000001 [----] I, [2017-09-18T12:36:20.894266 #2111:93353c] INFO – : Attribute: vm = CentOS 6.6 - GUI [----] I, [2017-09-18T12:36:20.895919 #2111:93353c] INFO – : Attribute: vm_id = 1000000040287 [----] I, [2017-09-18T12:36:20.897426 #2111:93353c] INFO – : Attribute: vmdb_object_type = vm [----] I, [2017-09-18T12:36:20.898943 #2111:4aa344] INFO – : End $evm.root.attributes [----] I, [2017-09-18T12:36:20.899950 #2111:4aa344] INFO – : [----] I, [2017-09-18T12:36:20.933583 #2111:4aa344] INFO – : Detected VM: CentOS 6.6 - GUI vendor: vmware provider: Watford ems_ref: vm-46370 [----] I, [2017-09-18T12:36:22.345276 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) Updated namespace [Infrastructure/VM/Provisioning/StateMachines/VMProvision_vm/update_provision_status PitneyBowes/Infrastructure/VM /Provisioning/StateMachines] [----] I, [2017-09-18T12:36:22.675623 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) Invoking [inline] method [/PitneyBowes/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status] with inpu ts [{}] [----] I, [2017-09-18T12:36:22.677390 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) <AEMethod [/PitneyBowes/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status]> Starting [----] I, [2017-09-18T12:36:24.704318 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) <AEMethod [/PitneyBowes/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status]> Ending [----] I, [2017-09-18T12:36:24.704528 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) Method exited with rc=MIQ_OK [----] I, [2017-09-18T12:36:24.706159 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) Followed Relationship [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/VMProvision_vm/clone_to_vm#create] [----] I, [2017-09-18T12:36:24.707506 #2087:4af13c] INFO – : Q-task_id([miq_provision_1000000005958]) Followed Relationship [miqaedb:/infrastructure/VM/Lifecycle/Provisioning#create] [----] E, [2017-09-18T12:36:27.467770 #2111:4aa344] ERROR – : [(ServerFaultCode) Attribute xsi:nil not allowed on element vim25:pool, which is not nillable.
I ran CF in debug mode and got this:
#client.operations.sort.each { |operation| $evm.log(:info, “Savon Operation: #{operation}”) } # login and set cookie login(client, username, password) mark_as_virtual_machine_result = client.call(:mark_as_virtual_machine) do message( { ‘_this’ => vm.ems_ref, :attributes! => { ‘type’ => “VirtualMachine”}, ‘pool’ => resource_pool_ems_ref } ).to_hash end likely in client.call(:mark_as_virtual_machine) as per the trace [----] E, [2017-09-18T12:36:27.467770 #2111:4aa344] ERROR – : [(ServerFaultCode) Attribute xsi:nil not allowed on element vim25:pool, which is not nillable. while parsing call information for method MarkAsVirtualMachine at line 1, column 239 while parsing SOAP body at line 1, column 229 while parsing SOAP envelope at line 1, column 38 while parsing HTTP request for method markAsVirtualMachine on object of type vim.VirtualMachine at line 1, column 0] /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/response.rb:70:in raise_soap_and_http_errors!' /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/response.rb:13:in
initialize’ /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/operation.rb:53:in new' /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/operation.rb:53:in
call’ /opt/rh/cfme-gemset/gems/savon-2.2.0/lib/savon/client.rb:36:in call' /PitneyBowes/Integration/VMware/vCenter/MarkVMAsVirtualMachine:78:in
’
Can Kevin maybe add some input here?
Thanks