Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1237110 - Cannot change server's zone from 'default'
Cannot change server's zone from 'default'
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance (Show other bugs)
5.4.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.5.0
Assigned To: Tim Wade
Ramesh A
: ZStream
: 1237320 1246101 (view as bug list)
Depends On:
Blocks: 1246245
  Show dependency treegraph
 
Reported: 2015-06-30 07:52 EDT by Ramesh A
Modified: 2015-12-08 08:20 EST (History)
9 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1246245 (view as bug list)
Environment:
Last Closed: 2015-12-08 08:20:13 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
before.png (85.79 KB, image/png)
2015-09-16 10:54 EDT, Ramesh A
no flags Details
after.png (85.67 KB, image/png)
2015-09-16 10:55 EDT, Ramesh A
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Ramesh A 2015-06-30 07:52:21 EDT
Description of problem:
Attempting to change the zone of the first server deployed fails despite the UI indicating a successful change. 

NOTE: The zone of secondary servers spun up after the first can be changed.

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


How reproducible:


Steps to Reproduce:
1. Log in as an admin user and select Configure -> Configuration
2. Create a zone if one hasn't already been configured.
3. Select the first server deployed (in this case, Server: EVM [1] (current)) and change its zone from "default" to another zone.
4. Save.

Actual results:
Unable to change.  Refer the additional information section for more details.


Expected results:
Should be able to change it

Additional info:

Before adding the new zone:
===========================
[root@server config]# grep -i zone vmdb.yml.db
  timezone: UTC
  zone: default

vmdb_production=#  select id, name from zones;
 id |  name   
----+---------
  1 | default
(1 row)

vmdb_production=# select id, name, zone_id from miq_servers;
 id | name | zone_id 
----+------+---------
  1 | EVM  |       1
(1 row)


After adding the new zone:
=========================

[root@server config]# grep -i zone vmdb.yml.db
  timezone: UTC
  zone: ramesh-test-zone


vmdb_production=#  select id, name from zones;
 id |    name     
----+-------------
  1 | default
  2 | ramesh-test-zone
(2 rows)


vmdb_production=# select id, name, zone_id from miq_servers;
 id | name | zone_id 
----+------+---------
  1 | EVM  |       1
(1 row)
Comment 1 Ramesh A 2015-06-30 07:53:23 EDT
Build info -  5.4.0.5.20150605150206_7daa1a8
Comment 2 Ramesh A 2015-06-30 07:53:36 EDT
Github link - https://github.com/ManageIQ/manageiq/issues/2561
Comment 5 CFME Bot 2015-07-08 17:34:14 EDT
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/bc9beab9b0f5968c8d33d6a8ae0ae1b0c400d34a

commit bc9beab9b0f5968c8d33d6a8ae0ae1b0c400d34a
Author:     Tim Wade <hello@timjwade.com>
AuthorDate: Thu Jul 2 11:15:33 2015 -0700
Commit:     Tim Wade <hello@timjwade.com>
CommitDate: Wed Jul 8 08:38:04 2015 -0700

    Save server's zone when changing basic information/zone.
    
    Addresses an issue when changing the zone in configure -> configuration
    -> zones -> <zone> -> <server>. Before, updating the zone reports that
    it was successful, but does not change the zone of the server.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1237110

 app/controllers/ops_controller/settings/common.rb |  8 ++++-
 spec/controllers/ops_controller_spec.rb           | 38 +++++++++++++++++++++++
 2 files changed, 45 insertions(+), 1 deletion(-)
Comment 6 Dan Clarizio 2015-07-23 15:12:07 EDT
*** Bug 1246101 has been marked as a duplicate of this bug. ***
Comment 8 Harpreet Kataria 2015-07-30 11:40:14 EDT
*** Bug 1237320 has been marked as a duplicate of this bug. ***
Comment 9 Ramesh A 2015-09-16 02:38:48 EDT
Good to go.  Verified and working fine in master.20150916012703_4e04cf0


Before adding the new zone:
===========================
[root@server config]# grep -i zone vmdb.yml.db
  timezone: UTC
  zone: default

vmdb_production=# select id, name from zones;
 id |  name   
----+---------
  1 | default
(1 row)

vmdb_production=# select id, name, zone_id from miq_servers;
 id | name | zone_id 
----+------+---------
  1 | EVM  |       1
(1 row)



After adding the new zone:
==========================
[root@server config]# grep -i zone vmdb.yml.db
  timezone: UTC
  zone: ramesh-test-zone


vmdb_production=# select id, name from zones;
 id |       name       
----+------------------
  1 | default
  2 | ramesh-test-zone
(2 rows)

vmdb_production=# select id, name, zone_id from miq_servers;
 id | name | zone_id 
----+------+---------
  1 | EVM  |       2
(1 row)
Comment 10 Felix Dewaleyne 2015-09-16 05:50:08 EDT
don't forget to go to the interface - the zone were correctly changed in the database but the configure > configuration page did not reflect the zone change.
Comment 11 Ramesh A 2015-09-16 10:54:04 EDT
Hi Felix,

I am able to see the changes getting reflected as per the changes made.  Please find the screenshot's "before.png" and "after.png" for more details.  Let me know if you are pointing something else.

Thanks,
Ramesh
Comment 12 Ramesh A 2015-09-16 10:54:36 EDT
Created attachment 1074069 [details]
before.png
Comment 13 Ramesh A 2015-09-16 10:55:06 EDT
Created attachment 1074071 [details]
after.png
Comment 14 Felix Dewaleyne 2015-09-16 11:05:10 EDT
no, that's pretty much it. The fact is, the database was being updated correctly previously, but not the interface, and the screenshots provided show what I would call the expected behaviour
Comment 15 Tim Wade 2015-09-17 12:44:51 EDT
> Description of problem:
> Attempting to change the zone of the first server deployed fails despite the UI indicating a successful change.

Are we saying that the UI used to indicate a successful change, but no longer does? Could this be a separate issue?
Comment 22 errata-xmlrpc 2015-12-08 08:20:13 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551

Note You need to log in before you can comment on or make changes to this bug.