Bug 1635178

Summary: Cannot change appliance name
Product: Red Hat CloudForms Management Engine Reporter: Jan Zmeskal <jzmeskal>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Shriver <mshriver>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.5CC: abellott, dmetzger, dsundqvi, hkataria, izapolsk, lavenel, mpovolny, mshriver, obarenbo, simaishi, yrudman
Target Milestone: GAKeywords: AutomationBlocker, TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.19 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1639364 (view as bug list) Environment:
Last Closed: 2019-02-12 16:49:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1639364    
Attachments:
Description Flags
Save button not clickable none

Description Jan Zmeskal 2018-10-02 09:18:17 UTC
Created attachment 1489360 [details]
Save button not clickable

Description of problem:
In server settings in configuration, it is impossible to change the field Appliance Name. Even though you provide a new value for it, Save button never becomes active.

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

How reproducible:
100 %

Steps to Reproduce:
1. Go to Configuration -> Settings -> Region -> Zones -> <your server>.
2. Switch to Server tab if you're not already in it.
3. Select Appliance Name field and fill in a new value there.

Actual results:
Save button is not clickable.

Expected results:
We should be able to save the new Appliance Name.

Additional info:
- This problem is not present in CFME 5.10.0.17
- If you change something else (e.g. you add server role Websocket), then the Save button becomes clickable. However, if you click it, your second change (adding Websocket server role) is saved, but the new Appliance Name is not.

Comment 3 Jan Zmeskal 2018-10-02 12:55:49 UTC
I found out that I can change Appliance name via REST API. This is from api.log:

[----] I, [2018-10-02T08:49:39.037447 #12150:16f29fc]  INFO -- : MIQ(Api::ServersController.log_request) Request:        {:method=>:patch, :action=>"edit", :fullpath=>"/api/servers/2/settings", :url=>"https://<my IP>/api/servers/2/settings", :base=>"https://<my IP>", :path=>"/api/servers/2/settings", :prefix=>"/api", :version=>"3.0.0", :api_prefix=>"https://<my IP>/api", :collection=>"servers", :c_suffix=>nil, :collection_id=>"2", :subcollection=>"settings", :subcollection_id=>nil}
[----] I, [2018-10-02T08:49:39.038028 #12150:16f29fc]  INFO -- : MIQ(Api::ServersController.log_request) Parameters:     {"action"=>"settings", "controller"=>"api/servers", "format"=>"json", "body"=>{"server"=>{"name"=>"EVM"}}}
[----] I, [2018-10-02T08:49:39.468981 #12150:16f29fc]  INFO -- : MIQ(Api::ServersController.log_request) Response:       {:completed_at=>"2018-10-02 12:49:39 UTC", :size=>"48.779 KBytes", :time_taken=>"0.543 Seconds", :status=>200}

This change is subsequently reflected in the UI in Configuration. Once I performed this change via REST API, I was able to change the Appliance name in the UI as well.

So this seems like an UI issue.

Comment 5 Ievgen Zapolskyi 2018-10-08 14:25:18 UTC
it also appears in 5.10.0.18

Comment 7 Harpreet Kataria 2018-10-08 21:52:46 UTC
once https://github.com/ManageIQ/manageiq-ui-classic/pull/4730 is backported, it should fix the issue.

~Harpreet

Comment 8 Harpreet Kataria 2018-10-08 22:18:18 UTC
Also need https://github.com/ManageIQ/manageiq-ui-classic/pull/4232 to be backported as well. Marking PR  as Gaprindashvili/yes.

Comment 10 Mike Shriver 2018-12-04 21:52:18 UTC
Tested in CFME 5.10.0.27.20181128170555_43ed8cb

The appliance name can be set via UI, the save button is enabled when the field is updated, and the value persists.