Bug 1444201
| Summary: | SCVMM provisioning started failing with Errno::ENAMETOOLONG | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Jeff Teehan <jteehan> | |
| Component: | Providers | Assignee: | Daniel Berger <dberger> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Leo Khomenko <lkhomenk> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.8.0 | CC: | dajohnso, dberger, jfrey, jhardy, lkhomenk, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | Regression, TestOnly | |
| Target Release: | 5.9.0 | |||
| Hardware: | Unspecified | |||
| OS: | Windows | |||
| Whiteboard: | provider:scvmm | |||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1445936 (view as bug list) | Environment: |
SCVMM2
|
|
| Last Closed: | 2018-03-06 14:50:05 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1445936 | |||
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 |
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: