[jira] [Commented] (AMBARI-22539) Cannot add host with host_name in request body
[ https://issues.apache.org/jira/browse/AMBARI-22539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16286466#comment-16286466 ] Hudson commented on AMBARI-22539: - SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #8515 (See [https://builds.apache.org/job/Ambari-trunk-Commit/8515/]) AMBARI-22539. Cannot add host with host_name in request body (adoroszlai: [http://git-wip-us.apache.org/repos/asf?p=ambari.git=commit=636a2a96cc19e7a588f70c9b91735af3008ed0e0]) * (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ScaleClusterRequestTest.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ScaleClusterRequest.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java > Cannot add host with host_name in request body > -- > > Key: AMBARI-22539 > URL: https://issues.apache.org/jira/browse/AMBARI-22539 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.6.0 >Reporter: Doroszlai, Attila >Assignee: Doroszlai, Attila >Priority: Blocker > Fix For: 2.6.1 > > Attachments: AMBARI-22539.branch-2.6.patch > > > STR: > # Create cluster via blueprints > # Add a new node to one of the host groups specifying {{host_name}} in the > request body according to the "multiple hosts" [example in > wiki|https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-AddHostRequest] > Expected result: host is added > Actual result: request is rejected with "Must specify either host_name or > host_count" error > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", > "host_name": "c6402.ambari.apache.org" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 400 Bad Request > {noformat} > Similar request with host name under {{Hosts/host_name}} is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", "Hosts": { > "host_name": "c6403.ambari.apache.org" } } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 202 Accepted > {noformat} > Also, request with host name specified path is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts/c6404.ambari.apache.org > HTTP/1.1 202 Accepted > {noformat} > All three requests work fine in Ambari 2.5.2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (AMBARI-22539) Cannot add host with host_name in request body
[ https://issues.apache.org/jira/browse/AMBARI-22539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16286426#comment-16286426 ] Doroszlai, Attila commented on AMBARI-22539: Committed to [trunk|http://git-wip-us.apache.org/repos/asf/ambari/commit/636a2a96cc]. > Cannot add host with host_name in request body > -- > > Key: AMBARI-22539 > URL: https://issues.apache.org/jira/browse/AMBARI-22539 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.6.0 >Reporter: Doroszlai, Attila >Assignee: Doroszlai, Attila >Priority: Blocker > Fix For: 2.6.1 > > Attachments: AMBARI-22539.branch-2.6.patch > > > STR: > # Create cluster via blueprints > # Add a new node to one of the host groups specifying {{host_name}} in the > request body according to the "multiple hosts" [example in > wiki|https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-AddHostRequest] > Expected result: host is added > Actual result: request is rejected with "Must specify either host_name or > host_count" error > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", > "host_name": "c6402.ambari.apache.org" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 400 Bad Request > {noformat} > Similar request with host name under {{Hosts/host_name}} is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", "Hosts": { > "host_name": "c6403.ambari.apache.org" } } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 202 Accepted > {noformat} > Also, request with host name specified path is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts/c6404.ambari.apache.org > HTTP/1.1 202 Accepted > {noformat} > All three requests work fine in Ambari 2.5.2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (AMBARI-22539) Cannot add host with host_name in request body
[ https://issues.apache.org/jira/browse/AMBARI-22539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16271304#comment-16271304 ] Hudson commented on AMBARI-22539: - FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #502 (See [https://builds.apache.org/job/Ambari-branch-2.6/502/]) AMBARI-22539. Cannot add host with host_name in request body (adoroszlai: [http://git-wip-us.apache.org/repos/asf?p=ambari.git=commit=f7ef0b37cd58ce1003af805ba9bb4169d01a18d2]) * (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ScaleClusterRequestTest.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ScaleClusterRequest.java > Cannot add host with host_name in request body > -- > > Key: AMBARI-22539 > URL: https://issues.apache.org/jira/browse/AMBARI-22539 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.6.0 >Reporter: Doroszlai, Attila >Assignee: Doroszlai, Attila >Priority: Blocker > Fix For: 2.6.1 > > Attachments: AMBARI-22539.branch-2.6.patch > > > STR: > # Create cluster via blueprints > # Add a new node to one of the host groups specifying {{host_name}} in the > request body according to the "multiple hosts" [example in > wiki|https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-AddHostRequest] > Expected result: host is added > Actual result: request is rejected with "Must specify either host_name or > host_count" error > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", > "host_name": "c6402.ambari.apache.org" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 400 Bad Request > {noformat} > Similar request with host name under {{Hosts/host_name}} is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", "Hosts": { > "host_name": "c6403.ambari.apache.org" } } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 202 Accepted > {noformat} > Also, request with host name specified path is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts/c6404.ambari.apache.org > HTTP/1.1 202 Accepted > {noformat} > All three requests work fine in Ambari 2.5.2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (AMBARI-22539) Cannot add host with host_name in request body
[ https://issues.apache.org/jira/browse/AMBARI-22539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16271223#comment-16271223 ] Doroszlai, Attila commented on AMBARI-22539: Committed to [branch-2.6|http://git-wip-us.apache.org/repos/asf/ambari/commit/f7ef0b37cd]. > Cannot add host with host_name in request body > -- > > Key: AMBARI-22539 > URL: https://issues.apache.org/jira/browse/AMBARI-22539 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.6.0 >Reporter: Doroszlai, Attila >Assignee: Doroszlai, Attila >Priority: Blocker > Fix For: 2.6.1 > > Attachments: AMBARI-22539.branch-2.6.patch > > > STR: > # Create cluster via blueprints > # Add a new node to one of the host groups specifying {{host_name}} in the > request body according to the "multiple hosts" [example in > wiki|https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-AddHostRequest] > Expected result: host is added > Actual result: request is rejected with "Must specify either host_name or > host_count" error > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", > "host_name": "c6402.ambari.apache.org" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 400 Bad Request > {noformat} > Similar request with host name under {{Hosts/host_name}} is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", "Hosts": { > "host_name": "c6403.ambari.apache.org" } } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 202 Accepted > {noformat} > Also, request with host name specified path is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts/c6404.ambari.apache.org > HTTP/1.1 202 Accepted > {noformat} > All three requests work fine in Ambari 2.5.2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (AMBARI-22539) Cannot add host with host_name in request body
[ https://issues.apache.org/jira/browse/AMBARI-22539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16270449#comment-16270449 ] Hadoop QA commented on AMBARI-22539: {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12899780/AMBARI-22539.branch-2.6.patch against trunk revision . {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12753//console This message is automatically generated. > Cannot add host with host_name in request body > -- > > Key: AMBARI-22539 > URL: https://issues.apache.org/jira/browse/AMBARI-22539 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.6.0 >Reporter: Doroszlai, Attila >Assignee: Doroszlai, Attila >Priority: Critical > Attachments: AMBARI-22539.branch-2.6.patch > > > STR: > # Create cluster via blueprints > # Add a new node to one of the host groups specifying {{host_name}} in the > request body according to the "multiple hosts" [example in > wiki|https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-AddHostRequest] > Expected result: host is added > Actual result: request is rejected with "Must specify either host_name or > host_count" error > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", > "host_name": "c6402.ambari.apache.org" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 400 Bad Request > {noformat} > Similar request with host name under {{Hosts/host_name}} is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node", "Hosts": { > "host_name": "c6403.ambari.apache.org" } } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts > HTTP/1.1 202 Accepted > {noformat} > Also, request with host name specified path is accepted: > {noformat} > $ curl -X POST -d '[ { "blueprint": "blue", "host_group": "node" } ]' > http://c6401.ambari.apache.org:8080/api/v1/clusters/TEST/hosts/c6404.ambari.apache.org > HTTP/1.1 202 Accepted > {noformat} > All three requests work fine in Ambari 2.5.2. -- This message was sent by Atlassian JIRA (v6.4.14#64029)