Description of problem: Seems to have popped up unexpectedly with 5.8.0.10 and confirmed with 5.8.0.11. Provision from a template is throwing following error below and failing immediately after submittion. Dan and I are actively working the issue. I rechecked the entire system and everything is working with 5.7.2, so it appears to be 5.8 specific. [----] E, [2017-04-20T14:54:14.841956 #15064:abd13c] ERROR -- : Q-task_id([miq_provision_420000000000002]) MIQ(ManageIQ::Providers::Microsoft::InfraManager::Provision#provision_error) [[Errno::ENAMETOOLONG]: File name too long @ rb_sysopen - Import-Module VirtualMachineManager | Out-Null; Get-SCVMMServer localhost | Out-Null; [----] E, [2017-04-20T14:54:14.842139 #15064:abd13c] ERROR -- : Q-task_id([miq_provision_420000000000002]) /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/powershell.rb:122:in `read' [----] E, [2017-04-20T14:55:16.345054 #15064:abd13c] ERROR -- : Q-task_id([miq_provision_420000000000002]) <AutomationEngine> State=<CheckProvisioned> running on_error raised exception: <invalid method calling syntax: [update_provision_status(status => '[Errno::ENAMETOOLONG]: File name too long @ rb_sysopen - Import-Module VirtualMachineManager | Out-Null; Get-SCVMMServer localhost | Out-Null; [----] E, [2017-04-20T14:55:16.347211 #15064:abd13c] ERROR -- : Q-task_id([miq_provision_420000000000002]) MIQ(MiqAeEngine.deliver) Error delivering {"request"=>"vm_provision"} for object [ManageIQ::Providers::Microsoft::InfraManager::Provision.420000000000002] with state [CheckProvisioned] to Automate: Version-Release number of selected component (if applicable): 5.8.0.10/11 How reproducible: Always right now Steps to Reproduce: 1. Find template 2. LifeCycle provision to SCVMM 3. Check request logs Actual results: Fails pretty much immediately with Error Finished 420,000,000,000,003 Administrator VM Provision 04/20/17 19:05:39 UTC Provision from [Win12SCoreTemplate] to [x1] Approved Administrator 04/20/17 19:04:54 UTC 04/20/17 19:04:38 UTC 04/20/17 19:05:39 UTC Auto-Approved [EVM] VM [x1] Step [CheckProvisioned] Status [Creating VM] Message [Creating VM] Current Retry Number [1] Expected results: Additional info:
It turns out some of our powershell scripts are inlined, not files: https://github.com/ManageIQ/manageiq/pull/14854
Disregard last. We're going to assume a string from now on. In part, this is to retain compatibility with the miq_winrm.rb library in gems-pending, which we hope to incorporate at some point. https://github.com/ManageIQ/manageiq/pull/14859