Bug 1300815

Summary: Service Provisioning for one VM creates two VMs
Product: Red Hat CloudForms Management Engine Reporter: Jared Deubel <jdeubel>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: jdeubel, jhardy, mkanoor, obarenbo, tfitzger
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-26 16:30:55 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
service screen shot
none
Service screen shot.
none
Service screen shot.
none
Service screen shot.
none
Service screen shot. none

Description Jared Deubel 2016-01-21 19:35:39 UTC
Description of problem:

I got 2 VMs created in this service named "testlongname" and "test_0043".  "testlongname" has correct number of CPUs and Memory, "test_0043" has wrong number of both. Not sure why the test_0043 VM is being created.


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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jared Deubel 2016-01-21 19:37:34 UTC
Created attachment 1116990 [details]
evm logs

Comment 4 Tina Fitzgerald 2016-01-25 17:00:58 UTC
Created attachment 1118122 [details]
service screen shot

Comment 5 Tina Fitzgerald 2016-01-25 17:01:50 UTC
Created attachment 1118123 [details]
Service screen shot.

Comment 6 Tina Fitzgerald 2016-01-25 17:02:26 UTC
Created attachment 1118124 [details]
Service screen shot.

Comment 7 Tina Fitzgerald 2016-01-25 17:02:54 UTC
Created attachment 1118126 [details]
Service screen shot.

Comment 8 Tina Fitzgerald 2016-01-25 17:03:28 UTC
Created attachment 1118127 [details]
Service screen shot.

Comment 9 Tina Fitzgerald 2016-01-25 17:28:25 UTC
Hi Jared,

Multiple VMs are being created from a single service item due to the way it's configured.

I've attached the screen shots Rich provided showing the service item.

1. The attachment containing Image 4 shows the entry point for the service as:
/Service/Provisioning/StateMachines/ServiceProvision_Template/VMWare_Build_VMProvisionRequest
This entrypoint is intended to be used with a generic service catalog item that provisions one or many VMs into a service

2. The attachment for the screen shot containing Image 5 shows the service item type as vmware.  (the dialogs are not present for a generic item)

So, basically, the service provision generated a vm provision request from the options passed to the VMWare_Build_VMProvisionRequest method, and another as specified in the vmware dialogs.

There is no way to convert the service item from vmware to generic, so the customer should delete the service item, and create the item again as a generic service item.
 
Please let me know if you have any questions.

Thanks,
Tina

Comment 10 Tina Fitzgerald 2016-01-26 16:30:55 UTC
Customer confirmed configuration change resolved the issue:
.....
Most recent comment: On 2016-01-26 10:24:32, Caldwell, Rich commented:
"That was the issue. I was not aware of the purpose of the Generic service item. Considering I wanted to build VMWare VMs, I chose the VMWare service item type.  Thanks for the clarification. It is now working properly once I built a new catalog item based on the proper service item type.  This case can be closed.