Created attachment 1067690 [details]
Description of problem:
I tried to add to host with already configured and working drac5 power management, 2 more ipmilan power managements, same address/user/password for all 3 power managements. After saving if I try to edit the host again I can't see OK/Cancel buttons, power management is disabled and all power managements are missing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. configure host with drac5 pm
2. add 2 more pm with same address, user and password but type ipmilan and save the dialog
3. try to edit the host again
described above and in attached screenshot
error before saving the dialog with 2 of the same power management or correct dialog appearance
You can still set up the same power management, when you set one with IP and the other with FQDN, but that doesn't cause any problems, so it's OK.
Other thing is that I can't set up the same PM but with another type, eg. if I want sequential agents, first drac5 and if it fails, I might want to use ipmilan.
Obviously the frontend has no ability to determine if a FQDN is the same as an ip address.
So I wasn't aware that one should be allowed to use the same ip address but with a different type. Can you point me to the specification of these requirements so I can double check anything else hasn't been missed?
I cannot, it's just a logical thing to have. And I hope the only one missing in scope of this bug.
Well it obviously wasn't logic to me, but I have posted a patch that checks for the ip/type combination instead of just the ip, so you can have duplicate ips with different types.