DescriptionFelix Dewaleyne
2017-11-14 10:46:51 UTC
Description of problem:
unable to provision against SCVMM with "VMM is unable to perform this operation without a connection to a Virtual Machine Manager management server"
Version-Release number of selected component (if applicable):
5.8.2
How reproducible:
customer environment
Steps to Reproduce:
1.provision against the scvmm environment
2.
3.
Actual results:
The provision fails at the checkprovisioned stage on a JSON parsing error due to how SCVMM replied
Expected results:
the provision passes or the error is properly caught, even if not sent using the JSON format
Additional info:
the customer suspects the issue is in /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/provision
in the method cloning.rb the VMMServer attribute is missing:
--- cloning.rb 2017-11-13 16:47:25.285270237 +0100
+++ cloning.rb.rhorig 2017-11-13 16:29:54.672742487 +0100
@@ -118,7 +118,7 @@
def build_ps_script
<<-PS_SCRIPT
Import-Module VirtualMachineManager | Out-Null; \
- $template = Get-SCVMTemplate -Name '#{source.name}' -VMMServer localhost; \
+ $template = Get-SCVMTemplate -Name '#{source.name}'; \
$vmconfig = New-SCVMConfiguration -VMTemplate $template -Name 'ManageIQConfig-#{dest_name}'; \
$vmhost = Get-SCVMHost -ComputerName '#{dest_host}'; \
there is also online information suggesting that such an issue could be tied to the provider (and a trace of a community resolution that solved it by changing the owner of the SQL database)