Red Hat Bugzilla – Bug 1467348
Name has Already been taken error when editing zone in Global Region
Last modified: 2017-07-07 14:46:08 EDT
Description of problem:
When attempting to edit a zone in the global region (e.g. add NTP servers) an error message 'Name has already been taken appears. Presumably, this is because the zone name is the same from the remote/subordinate region.
[----] I, [2017-07-03T08:05:08.388759 #24506:7c914c] INFO -- : MIQ(MiqQueue#deliver) Message id: , Delivering...
[----] I, [2017-07-03T08:05:08.426091 #24506:7c914c] INFO -- : MIQ(MiqQueue#delivered) Message id: , State: [ok], Delivered in [0.037354034]
[----] E, [2017-07-03T08:05:09.348994 #24598:f00f28] ERROR -- : MIQ(ops_controller-zone_edit): Name has already been taken
[----] I, [2017-07-03T08:05:21.600886 #24522:7c914c] INFO -- : MIQ(MiqScheduleWorker::Runner#do_work) Number of scheduled items to be processed: 0.
[----] I, [2017-07-03T08:05:36.603854 #24522:7c914c] INFO -- : MIQ(MiqScheduleWorker::Runner#do_work) Number of scheduled items to be processed: 0.
From database (see same zone name UI between Global/Remote):
vmdb_production=# select id,name,description from zones;
id | name | description
99000000000001 | default | Default Zone
99000000000002 | UI | UI Zone
10000000000006 | RHVM-DAL | RHVM DAL Zone
10000000000001 | default | Default Zone
10000000000005 | RHVM-HOE | RHVM HOE Zone
10000000000002 | UI | UI Zone
Version-Release number of selected component (if applicable):
100% with steps to reproduce below.
Steps to Reproduce:
1. Create UI Zone in Subordinate
2. Create UI Zone in Global
3. Attempt to edit UI Zone in Global by adding NTP servers
The zone is not saved, and an error message 'Name has already been taken' appears
The zone is saved with the requested changes. The zone name can be duplicated because we are configuring the zone in a completely different region (Global).