Hyper-V SCVMM Provisioning - JSON::ParserError


#1

Hello everyone,

Am testing CloudForms 3.2 with Hyper-V + SCVMM. Everything from Hyper-V side has been set-up including SCVMM and WinRMI as per CloudForms documentation “2.1.3. Authenticating t o Microsoft SCVMM” however whenever I try to provision a VM from a TEMPLATE I get the following error:

[JSON::ParserError]: A JSON text must at least contain two octets!

In the automation.log I get:

[----] I, [2015-08-25T15:22:09.467735 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Processing State=[CheckProvisioned]

[----] I, [2015-08-25T15:22:09.468207 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Following Relationship [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create]

[----] I, [2015-08-25T15:22:09.585862 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Updated namespace [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create  ManageIQ/Infrastructure/VM/Provisioning/StateMachines]

[----] I, [2015-08-25T15:22:09.703410 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Updated namespace [Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned  ManageIQ/Infrastructure/VM/Provisioning/StateMachines]

[----] I, [2015-08-25T15:22:09.717221 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned] with inputs [{}]

[----] I, [2015-08-25T15:22:09.718948 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned]> Starting

[----] I, [2015-08-25T15:22:10.404725 #7076:7b1c7c0]  INFO -- : Q-task_id([miq_provision_1000000000053])
 <AEMethod check_provisioned> ProvisionCheck returned 
<error> for state <finished> and status <Error>

[----] I, [2015-08-25T15:22:10.418792 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/Methods/check_provisioned]> Ending

[----] I, [2015-08-25T15:22:10.418920 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Method exited with rc=MIQ_OK

[----] I, [2015-08-25T15:22:10.419465 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Followed  Relationship [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create]

[----] I, [2015-08-25T15:22:10.419628 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Processed  State=[CheckProvisioned] with Result=[error]

[----] W, [2015-08-25T15:22:10.419800 #7076:affe9c]  WARN -- : Q-task_id([miq_provision_1000000000053]) Error in State=[CheckProvisioned]

[----] I, [2015-08-25T15:22:10.420139 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) In State=[CheckProvisioned], invoking [on_error] method=[update_provision_status(status => '[JSON::ParserError]: A JSON text must at least contain two octets!')]

[----] I, [2015-08-25T15:22:10.478833 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Updated namespace [Infrastructure/VM/Provisioning/StateMachines/VMProvision_vm/update_provision_status  ManageIQ/Infrastructure/VM/Provisioning/StateMachines]

[----] I, [2015-08-25T15:22:10.487110 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Invoking [inline] method [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status] with inputs [{"status"=>"[JSON::ParserError]: A JSON text must at least contain two octets!"}]

[----] I, [2015-08-25T15:22:10.487904 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status]> Starting

[----] I, [2015-08-25T15:22:10.852840 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) <AEMethod [/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status]> Ending

[----] I, [2015-08-25T15:22:10.853008 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Method exited with rc=MIQ_OK

[----] I, [2015-08-25T15:22:10.853757 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Followed  Relationship [miqaedb:/Infrastructure/VM/Provisioning/StateMachines/VMProvision_vm/template#create]

[----] I, [2015-08-25T15:22:10.854331 #7076:affe9c]  INFO -- : Q-task_id([miq_provision_1000000000053]) Followed  Relationship [miqaedb:/infrastructure/VM/Lifecycle/Provisioning#create]

#2

Hello everyone,

Issue has now been overcome, apparently it is a bug that has already been identified. The template name cannot contain any space/whitespace. If it does this error will be thrown. By removing the space/whitespaces I can now provision correctly.