Created attachment 1056471 [details] duplicate providers Description of problem: Version-Release number of selected component (if applicable): 5.4.1 How reproducible: 100% Steps to Reproduce: 1.First add provider for ex: rhevm with hostname 2.Then Add the same provider with ip address 3. Actual results: Duplicate providers can be added. see attached screenshots. All VMs and Templates listed twice. Expected results: Validation required Additional info:
I have no idea how we could prevent this, to be honest. I'll leave this up to John Hardy to decide how critical an issue this is.
Keenan, on today's bug triage call we discussed this a probably a good thing as its required for tenancy moving forward. It sounds like we could probably do some validation in the screens to ensure that the same provider cannot be added with the same tenant. Ultimately this was a change introduce with the ipv6 work when ip address was a unique field and now the field is ip or hostname. Its up in the air and may not even be valid but wanted to throw in you direction to consider while working on tenancy.
*** Bug 1287834 has been marked as a duplicate of this bug. ***
I'm closing this as wontfix. The code required to prevent this seems problematic and could easily have unintended side effects (accidentally preventing a valid provider from being added because of old DNS records, or whatever), especially when balanced against allowing a situation that no customer has yet hit.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days