Bug 1344103 - Service : Azure service catalog request fails with error
Summary: Service : Azure service catalog request fails with error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.7.0
Assignee: Bill Wei
QA Contact: Shveta
URL:
Whiteboard: service:azure
Depends On:
Blocks: 1353243 1367176
TreeView+ depends on / blocked
 
Reported: 2016-06-08 18:44 UTC by Shveta
Modified: 2017-01-12 05:14 UTC (History)
5 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1353243 1367176 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:00:08 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
automation logs (189.75 KB, text/plain)
2016-06-08 18:44 UTC, Shveta
no flags Details

Description Shveta 2016-06-08 18:44:06 UTC
Created attachment 1166068 [details]
automation logs

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Create a service catalog for Azure .
2. Fill all the fields .Submit request . It fails
3. Same provisioning request works from - Cloud - Instance - Provision Instance.
Logs attached

Actual results:


Expected results:


Additional info:
Build : 5.6.0.10-rc2.1.20160607103248_d06c141

Comment 2 Greg McCullough 2016-06-10 12:53:58 UTC
Bill - Found the following error in the attached log:
[Azure::Armrest::BadRequestException]: Windows computer name cannot be more than 15 characters long, be entirely numeric, or contain the following characters: ` ~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \ | ; : . ' " , < > / ?.')]

If applicable we enforce some of these rules here:
https://github.com/ManageIQ/manageiq/blob/master/app/models/miq_provision/helper.rb

Comment 4 Bill Wei 2016-06-14 15:58:49 UTC
I think I identified the problem and is working on a fix.

Comment 7 CFME Bot 2016-06-15 18:20:55 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/514037fc199ae7ff995fc5e295726b6fb50a7614

commit 514037fc199ae7ff995fc5e295726b6fb50a7614
Author:     Bill Wei <bilwei>
AuthorDate: Wed Jun 15 11:10:34 2016 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Wed Jun 15 12:26:10 2016 -0400

    Use hostname for Azure computerName option
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1344103

 .../manageiq/providers/azure/cloud_manager/provision/cloning.rb       | 2 +-
 app/models/miq_provision/options_helper.rb                            | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

Comment 10 Shveta 2016-09-20 19:46:32 UTC
FIxed.
Verified in 5.7.0.0.20160906172503_12f65cb


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