Bug 1303408

Summary: [RFE] Openstack integrated with VMware will cause wrong VM count on CF
Product: Red Hat CloudForms Management Engine Reporter: Tzach Shefi <tshefi>
Component: ProvidersAssignee: John Hardy <jhardy>
Status: CLOSED WONTFIX QA Contact: Ola Pavlenko <opavlenk>
Severity: low Docs Contact:
Priority: low    
Version: 5.4.0CC: dajohnso, jfrey, jhardy, obarenbo, psavage, tshefi
Target Milestone: GAKeywords: FutureFeature
Target Release: cfme-future   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: openstack:vsphere
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-28 15:07:30 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:
Embargoed:
Attachments:
Description Flags
Openstack conf files none

Description Tzach Shefi 2016-01-31 14:04:19 UTC
Description of problem: If you configure Openstack (Nova/Cinder) to use VMware vsphere and boot some instances, instances will as expected bootup as VMs on vmware's side, problem is CF doesn't detect that these are the same instance/vms and counts them twice. Once as an Openstack instance, then twice as a VM on vmware's side. 

Same issue happens with Openstack Cinder volume, on vmware side a phantom VM is created, it's only used as a place holder for Cinder's volume, this VM will never be booted or used hence should probably not be counted as a "VM" on CF either. 

Version-Release number of selected component (if applicable):
CloudForms-3.0-2014-08-12.2-rhos
Openstack Kilo 
vmware 5.5u3 

How reproducible: Every time.

Steps to Reproduce:
1. Install vmware vshere 5.5u3 (doesn't matter which version, as long as it works with Openstack), add one esxi server. 

2. Install Openstack in my case used Kilo release, all in one deployment. In my case due to lack of resources installed this on a VM running inside VMware.  

3. Configure Nova & Cinder to use VMware vSphere as backend. 

4. Configure CF to monitor both Openstack & VMware. 

5. Boot a VM on VMware's side, notice VM count on CF - should be 1 (or 2 if like me you also installed openstack on top of a vm inside vmware). 

6. Boot an instance on Openstack, it should create a VM on vmware - now check CF VM count again, you'll notice it counted twice, once as an instance and again as a VM. CF doesn't detect that it's the same instance/vm and should only count it as a single instance (or vm). 

7. Do the same test this time create a Cinder volume on Openstack's side, this will create a phantom VM on vmware, this too will be counted. This VM will never be used as a VM, never turned on or used other than as a resource, IMHO this too should not be counted as a regular VM.  
 
Actual results:
CF counts Openstack and it's VM's on vmware side twice. 

Expected results:
I'm guessing what should happen, maybe PM should answer, CF should be smart enough to detect that we are talking about the same instance/vm and not count them twice, same goes for Cinder volume the phantom vm shouldn't be counted. 

Additional info:

Comment 2 Tzach Shefi 2016-01-31 14:27:58 UTC
Created attachment 1119907 [details]
Openstack conf files

Comment 7 Chris Pelland 2017-08-28 15:07:30 UTC
This bug has been open for more than a year and is assigned to an older release of CloudForms. 
If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.