Bug 1395789

Summary: CFME allows adding the same RHV provider twice
Product: Red Hat CloudForms Management Engine Reporter: movciari
Component: ProvidersAssignee: Moti Asayag <masayag>
Status: CLOSED WONTFIX QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: jfrey, jhardy, obarenbo, oourfali
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 07:10:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:

Description movciari 2016-11-16 16:32:22 UTC
Description of problem:
If you added RHV provider to CFME using hostname, you can accidentally add the same provider again using IP address

Also, when this happens, only the CFME representation of RHV provider which was refreshed last will remain populated

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

How reproducible:
always

Steps to Reproduce:
1. Add RHV provider using hostname
2. Add the same RHV provider using IP
3. Check your providers

Actual results:
RHV provider will be there twice

Expected results:
CFME should detect it's the same provider and refuse to add it again, with user-friendly error message

Additional info:
Detection can be done by resolving hostname to IP address, or by having some provider UUID field in RHV

Comment 2 Oved Ourfali 2016-11-21 07:10:36 UTC
As long as the name is being checked (and it is as far as I know), I don't see why someone would add the provider using an IP.
In general, usage of IPs is not common and not recommended.

Closing this as WONTFIX.