Bug 1584851

Summary: [UPSTREAM]Cannot change server's zone
Product: Red Hat CloudForms Management Engine Reporter: Nick Carboni <ncarboni>
Component: UI - OPSAssignee: Zita Nemeckova <znemecko>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: high Docs Contact:
Priority: high    
Version: 5.10.0CC: hkataria, lavenel, mpovolny, obarenbo, simaishi, smallamp, tpapaioa, znemecko
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-11 14:01:45 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:
Attachments:
Description Flags
Screenshot of the incorrect zone being shown in the drop down none

Description Nick Carboni 2018-05-31 19:33:42 UTC
Created attachment 1446425 [details]
Screenshot of the incorrect zone being shown in the drop down

Description of problem:
The zone of a server cannot be changed.
Additionally the zone dropdown on the server screen shows the earliest zone alphabetically, not the zone the server is currently assigned to.

Version-Release number of selected component (if applicable):
5.10.0.0-pre-nightly.20180521142829_e1f695a

How reproducible:
Always

Steps to Reproduce:
1. Create new zone named "abc"
2. Navigate to Server settings page
3. Observe that server is assigned to the default zone, but the dropdown shows "abc"
4. Attempt to change zone

Actual results:
Wrong zone is displayed and when the dropdown value is change the save button is not enabled.

Expected results:
Correct zone is displayed and zone new zone can be set.

Additional info:
I was able to reproduce this on ManageIQ master branch, ManageIQ nightly appliances, and the given CloudForms nightly build.

Comment 3 CFME Bot 2018-06-08 11:53:46 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/22791d49184fa3feffabd407a47994b6bdeb5315
commit 22791d49184fa3feffabd407a47994b6bdeb5315
Author:     Zita Nemeckova <znemecko>
AuthorDate: Wed Jun  6 06:16:58 2018 -0400
Commit:     Zita Nemeckova <znemecko>
CommitDate: Wed Jun  6 06:16:58 2018 -0400

    Make sure @edit[:current].config[:server][:zone] is set

    Current server never returns its zone in get_configso it has to be checked and set correctly

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1584851

 app/controllers/ops_controller/settings/common.rb | 1 +
 spec/controllers/ops_controller/settings/common_spec.rb | 21 +
 2 files changed, 22 insertions(+)

Comment 4 Tasos Papaioannou 2018-06-26 17:35:40 UTC
Verified on 5.10.0.1.