ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonenko Alexander (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14045) FE: Disallow to add the same host to different CG of the same service
Date Tue, 24 Nov 2015 17:19:11 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024883#comment-15024883
] 

Antonenko Alexander commented on AMBARI-14045:
----------------------------------------------

+1 

> FE: Disallow to add the same host to different CG of the same service
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-14045
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14045
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.3
>            Reporter: Aleksandr Kovalenko
>            Assignee: Aleksandr Kovalenko
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-14045.patch
>
>
> {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)

Mime
View raw message