[jira] [Updated] (AMBARI-15715) ASW send invalid requests for config groups

2016-04-06 Thread Andrii Babiichuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-15715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrii Babiichuk updated AMBARI-15715:
--
Resolution: Fixed
Status: Resolved  (was: Patch Available)

committed to trunk

> ASW send invalid requests for config groups
> ---
>
> Key: AMBARI-15715
> URL: https://issues.apache.org/jira/browse/AMBARI-15715
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-web
>Affects Versions: 2.4.0
>Reporter: Andrii Babiichuk
>Assignee: Andrii Babiichuk
> Fix For: 2.4.0
>
> Attachments: AMBARI-15715.patch
>
>
> There is a cluster with HDFS + ZK
> HDFS has 3 config groups (and 1 Default)
> Open ASW
> Select YARN + MR2
> Proceed to the step "Configure services"
> Create 1 group for YARN and 1 for MR2
> Proceed to "Install, Start and Test"
> ASW sends requests to create all config groups (even already created for 
> HDFS).
> All this requests are failed (for existing groups and for new groups)
> Example with TEZ:
> {noformat}
> curl 'http://HOST:8080/api/v1/clusters/tdk/config_groups/TEZ_1234' -X PUT -H 
> 'Pragma: no-cache' -H 'Origin: http://HOST:8080' -H 'Accept-Encoding: gzip, 
> deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'X-Requested-By: 
> X-Requested-By' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) 
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36' -H 
> 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: 
> application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' 
> -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 
> 'Referer: http://HOST:8080/' --data 
> '[{"ConfigGroup":{"cluster_name":"tdk","group_name":"1234","tag":"TEZ","description":"","hosts":[],"desired_configs":[],"id":"TEZ_1234"}}]'
>  --compressed
> {noformat}
> {noformat}
> {
>   "status" : 400,
>   "message" : "java.lang.NumberFormatException: For input string: 
> \"TEZ_1234\""
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (AMBARI-15715) ASW send invalid requests for config groups

2016-04-05 Thread Andrii Babiichuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-15715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrii Babiichuk updated AMBARI-15715:
--
Attachment: AMBARI-15715.patch

> ASW send invalid requests for config groups
> ---
>
> Key: AMBARI-15715
> URL: https://issues.apache.org/jira/browse/AMBARI-15715
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-web
>Affects Versions: 2.4.0
>Reporter: Andrii Babiichuk
>Assignee: Andrii Babiichuk
> Fix For: 2.4.0
>
> Attachments: AMBARI-15715.patch
>
>
> There is a cluster with HDFS + ZK
> HDFS has 3 config groups (and 1 Default)
> Open ASW
> Select YARN + MR2
> Proceed to the step "Configure services"
> Create 1 group for YARN and 1 for MR2
> Proceed to "Install, Start and Test"
> ASW sends requests to create all config groups (even already created for 
> HDFS).
> All this requests are failed (for existing groups and for new groups)
> Example with TEZ:
> {noformat}
> curl 'http://HOST:8080/api/v1/clusters/tdk/config_groups/TEZ_1234' -X PUT -H 
> 'Pragma: no-cache' -H 'Origin: http://HOST:8080' -H 'Accept-Encoding: gzip, 
> deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'X-Requested-By: 
> X-Requested-By' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) 
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36' -H 
> 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: 
> application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' 
> -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 
> 'Referer: http://HOST:8080/' --data 
> '[{"ConfigGroup":{"cluster_name":"tdk","group_name":"1234","tag":"TEZ","description":"","hosts":[],"desired_configs":[],"id":"TEZ_1234"}}]'
>  --compressed
> {noformat}
> {noformat}
> {
>   "status" : 400,
>   "message" : "java.lang.NumberFormatException: For input string: 
> \"TEZ_1234\""
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (AMBARI-15715) ASW send invalid requests for config groups

2016-04-05 Thread Andrii Babiichuk (JIRA)

 [ 
https://issues.apache.org/jira/browse/AMBARI-15715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrii Babiichuk updated AMBARI-15715:
--
Status: Patch Available  (was: Open)

  25605 tests complete (20 seconds)
  156 tests pending


> ASW send invalid requests for config groups
> ---
>
> Key: AMBARI-15715
> URL: https://issues.apache.org/jira/browse/AMBARI-15715
> Project: Ambari
>  Issue Type: Bug
>  Components: ambari-web
>Affects Versions: 2.4.0
>Reporter: Andrii Babiichuk
>Assignee: Andrii Babiichuk
> Fix For: 2.4.0
>
> Attachments: AMBARI-15715.patch
>
>
> There is a cluster with HDFS + ZK
> HDFS has 3 config groups (and 1 Default)
> Open ASW
> Select YARN + MR2
> Proceed to the step "Configure services"
> Create 1 group for YARN and 1 for MR2
> Proceed to "Install, Start and Test"
> ASW sends requests to create all config groups (even already created for 
> HDFS).
> All this requests are failed (for existing groups and for new groups)
> Example with TEZ:
> {noformat}
> curl 'http://HOST:8080/api/v1/clusters/tdk/config_groups/TEZ_1234' -X PUT -H 
> 'Pragma: no-cache' -H 'Origin: http://HOST:8080' -H 'Accept-Encoding: gzip, 
> deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'X-Requested-By: 
> X-Requested-By' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) 
> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36' -H 
> 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: 
> application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' 
> -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 
> 'Referer: http://HOST:8080/' --data 
> '[{"ConfigGroup":{"cluster_name":"tdk","group_name":"1234","tag":"TEZ","description":"","hosts":[],"desired_configs":[],"id":"TEZ_1234"}}]'
>  --compressed
> {noformat}
> {noformat}
> {
>   "status" : 400,
>   "message" : "java.lang.NumberFormatException: For input string: 
> \"TEZ_1234\""
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)