Myroslav Papirkovskyy created AMBARI-14043:
----------------------------------------------
Summary: BE: Disallow to add the same host to different CG of the
same service
Key: AMBARI-14043
URL: https://issues.apache.org/jira/browse/AMBARI-14043
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.1.2
Reporter: Myroslav Papirkovskyy
Assignee: Myroslav Papirkovskyy
Fix For: 2.1.3
{noformat}
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/config_groups?ConfigGroup/tag=ZOOKEEPER&fields=*&_=1448282987731",
"items" : [
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/config_groups/53",
"ConfigGroup" : {
"cluster_name" : "c",
"description" : "",
"desired_configs" : [ ],
"group_name" : "2",
"hosts" : [
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/hosts/c6402.ambari.apache.org",
"host_name" : "c6402.ambari.apache.org"
}
],
"id" : 53,
"tag" : "ZOOKEEPER"
}
},
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/config_groups/54",
"ConfigGroup" : {
"cluster_name" : "c",
"description" : "",
"desired_configs" : [ ],
"group_name" : "1",
"hosts" : [
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/hosts/c6401.ambari.apache.org",
"host_name" : "c6401.ambari.apache.org"
},
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/c/hosts/c6402.ambari.apache.org",
"host_name" : "c6402.ambari.apache.org"
}
],
"id" : 54,
"tag" : "ZOOKEEPER"
}
}
]
}
{noformat}
As you can see, we have 2 config groups for ZooKeeper and both have
c6402.ambari.apache.org as a host assigned to goup. We should disallow user to
assign one host to more than one group of one service. Validation should be
provided both on UI and BE side.
STR:
1. Create two config grups (a and b) for some service and assign one host for
each group.
2. Go to host details -> configs of some of host used in step 1.
3. Change group for this host (a -> b or b -> a).
As a result host will be added to new group, but is not deleted from old one.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)