Bug 1361258

Summary: Editing RHEVM has default API Port 5000 in UI even though no port was set when creaing
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: UI - OPSAssignee: lgalis
Status: CLOSED CURRENTRELEASE QA Contact: Matouš Mojžíš <mmojzis>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: cpelland, dajohnso, dclarizi, gblomqui, hkataria, istein, jhardy, jocarter, mmojzis, mpovolny, nachandr, obarenbo, oourfali, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:provider:rhevm
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1368168 (view as bug list) Environment:
Last Closed: 2017-01-11 19:50:33 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:
Bug Depends On:    
Bug Blocks: 1368168    

Description Matouš Mojžíš 2016-07-28 15:40:38 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Add a rhevm provider without API Port set
2. Edit that provider name/IP
3. Try to validate it

Actual results:
It doesn't get validated, because API Port is filled in with "5000".
So everytime I edit it I have to delete predefined port 5000.

Expected results:
No API Port filled in when editing provider without port set in creation. 

Additional info:

Comment 3 Matouš Mojžíš 2016-08-04 11:33:06 UTC
1) I added rhevm provider with port blank. (In summary is API Port blank)
2) I tried to edit rhevm provider then.
3) Now I see API Port field pre-filled with port 5000
4) I can't validate it, so I must clear that port field.

Comment 6 lgalis 2016-08-19 16:33:34 UTC
*** Bug 1365959 has been marked as a duplicate of this bug. ***

Comment 7 Satoe Imaishi 2016-08-29 12:45:19 UTC
PR: https://github.com/ManageIQ/manageiq/pull/10376

Comment 8 Ilanit Stein 2016-09-15 08:32:03 UTC
Verified on:
CFME-5.7.0.1.20160913164703_66caf07
RHV-4.0.3-0.1.el7ev

1) Added rhevm provider with port blank. (In summary is API Port blank)
2) Edited rhevm provider to another IP address & password.
3) API Port field was empty, and I left it that way.
4) validate for the new values was successful.
5) Save of the data successful as well.
6) Refresh for the new setup data was displayed OK.

** Not sure this bug addresses the attached Red Hat Customer Portal case ID 01671420.
This case seem more related to bug 1370208, where it is also attached.