Bug 1444201 - SCVMM provisioning started failing with Errno::ENAMETOOLONG
Summary: SCVMM provisioning started failing with Errno::ENAMETOOLONG
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: Unspecified
OS: Windows
high
high
Target Milestone: GA
: 5.9.0
Assignee: Daniel Berger
QA Contact: Leo Khomenko
URL:
Whiteboard: provider:scvmm
Depends On:
Blocks: 1445936
TreeView+ depends on / blocked
 
Reported: 2017-04-20 19:46 UTC by Jeff Teehan
Modified: 2018-03-06 14:50 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1445936 (view as bug list)
Environment:
SCVMM2
Last Closed: 2018-03-06 14:50:05 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jeff Teehan 2017-04-20 19:46:55 UTC
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:

Comment 1 Daniel Berger 2017-04-24 13:35:52 UTC
It turns out some of our powershell scripts are inlined, not files:

https://github.com/ManageIQ/manageiq/pull/14854

Comment 2 Daniel Berger 2017-04-24 15:13:37 UTC
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


Note You need to log in before you can comment on or make changes to this bug.