Bug 1382265

Summary: Issue with "_x" in VM name on SCVMM
Product: Red Hat CloudForms Management Engine Reporter: Leo Khomenko <lkhomenk>
Component: DocumentationAssignee: Red Hat CloudForms Documentation <cloudforms-docs>
Status: CLOSED WONTFIX QA Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: bsorota, dajohnso, dberger, gblomqui, hhudgeon, hkataria, jfrey, jhardy, mpovolny, obarenbo
Target Milestone: GAKeywords: Reopened
Target Release: cfme-futureFlags: lkhomenk: automate_bug-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: scvmm:vm
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-19 15:46:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screen from CFME vs RDP(scvmm) none

Description Leo Khomenko 2016-10-06 07:30:19 UTC
Created attachment 1207834 [details]
screen from CFME vs RDP(scvmm)

Description of problem:if  VM name contains "_x" it will be shown as "_x005F_x"


Version-Release number of selected component (if applicable):5.6.2.1 / 5.7.0.3


How reproducible:100%


Steps to Reproduce:
1.Provision VM with "test_x" name on SCVMM
2.Request will stuck on Verifying New VM
3.

Actual results:VM is getting provisioned , but with "test_x005Fx" name, but on provider's UI VM name is correct - test_x (you can also just rename existing VM on SCVMM to have "_x")


Expected results:"test_x" vm in CFME


Additional info:this affects only SCVMM, other infra/cloud providers are fine

Comment 3 Daniel Berger 2016-10-25 19:12:55 UTC
This is the result of some peculiar behavior with the Export-Clixml command where it automatically converts "_x" to "_x005F_x". I suspect this is ultimately an artifact of xquery behavior.

Comment 4 Bronagh Sorota 2016-10-26 14:48:36 UTC
The described bug occurs when a VM name contains the characters "_x", for example "test_x". The Powershell cmdlet that exports the inventory hash to XML (Export-CLIXML) escapes _x  to _x005F_x. This is something we cannot prevent from happening and I see no way to address it in CF in a scalable way. 
I think it would be helpful to create a KB article on this.

Comment 5 Dave Johnson 2016-10-26 16:31:52 UTC
Re-opening for a documentation note if that makes sense.

Comment 6 Bronagh Sorota 2016-10-26 16:33:43 UTC
Thanks Dave, makes sense to me.