Bug 1257575

Summary: Missing buttons and power management on host edit after saving host with wrong power management
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Matyáš <pmatyas>
Component: ovirt-engineAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: gklein, lsurette, oourfali, pmatyas, pstehlik, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:29:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1158861    
Attachments:
Description Flags
screenshot none

Description Petr Matyáš 2015-08-27 11:34:46 UTC
Created attachment 1067690 [details]
screenshot

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):
rhevm-3.6.0-0.12.master.el6.noarch
rhevm-webadmin-portal-3.6.0-0.12.master.el6.noarch

How reproducible:
always

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

Actual results:
described above and in attached screenshot

Expected results:
error before saving the dialog with 2 of the same power management or correct dialog appearance

Additional info:

Comment 1 Einav Cohen 2015-08-28 15:43:08 UTC
Petr, can you please check if there are any javascript exceptions / anything unusual in the browser's console log?

Comment 3 Petr Matyáš 2015-09-21 17:26:41 UTC
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.

Comment 4 Alexander Wels 2015-09-21 17:59:19 UTC
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?

Comment 5 Petr Matyáš 2015-09-22 06:58:23 UTC
I cannot, it's just a logical thing to have. And I hope the only one missing in scope of this bug.

Comment 6 Alexander Wels 2015-09-22 12:08:30 UTC
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.