You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/11/24 20:35:11 UTC

[jira] [Commented] (AMBARI-14043) BE: Disallow to add the same host to different CG of the same service

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

Hudson commented on AMBARI-14043:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #931 (See [https://builds.apache.org/job/Ambari-branch-2.1/931/])
AMBARI-14043. BE: Disallow to add the same host to different CG of the (mpapyrkovskyy: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=63c40c8c1e4904a0d0ec52b48bf73dce4d643ee8])
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigGroupResourceProvider.java


> 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)