Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 65402200BB3 for ; Wed, 2 Nov 2016 07:45:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 63DD6160AFB; Wed, 2 Nov 2016 06:45:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A96B4160AEA for ; Wed, 2 Nov 2016 07:44:59 +0100 (CET) Received: (qmail 50198 invoked by uid 500); 2 Nov 2016 06:44:58 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 50187 invoked by uid 99); 2 Nov 2016 06:44:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 06:44:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 77B9A2C001E for ; Wed, 2 Nov 2016 06:44:58 +0000 (UTC) Date: Wed, 2 Nov 2016 06:44:58 +0000 (UTC) From: "Hadoop QA (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-18744) Ambari-server: REST API changes to GET and PUT credential store information MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 02 Nov 2016 06:45:00 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18744?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 627961#comment-15627961 ]=20 Hadoop QA commented on AMBARI-18744: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest a= ttachment=20 http://issues.apache.org/jira/secure/attachment/12836496/rb53283.patch against trunk revision . {color:green}+1 @author{color}. The patch does not contain any @author= tags. {color:green}+1 tests included{color}. The patch appears to include 2 = new or modified test files. {color:red}-1 javac{color:red}. The patch appears to cause the build t= o fail. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/9092/= /console This message is automatically generated. > Ambari-server: REST API changes to GET and PUT credential store informati= on > -------------------------------------------------------------------------= -- > > Key: AMBARI-18744 > URL: https://issues.apache.org/jira/browse/AMBARI-18744 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.2 > Reporter: Nahappan Somasundaram > Assignee: Nahappan Somasundaram > Fix For: 2.5.0 > > Attachments: rb53283.patch > > > *Support stack definition for credential store information* > To support backward compatibility, services must be tagged to indicate wh= ether they support credential store backed passwords. This requires changes= in the stack definition object model. > {code} > > SERVICE_NAME > : > > true > false > > : > : > > {code} > *REST API support is required to GET _credential_store_supported_ and _cr= edential_store_enabled_ values for a service:* > {quote}api/v1/clusters//services?fields=3DServiceInfo/servi= ce_name,ServiceInfo/credential_store_supported,ServiceInfo/credential_store= _enabled{quote} > *REST API support is required to PUT _credential_store_enabled_ value for= a service:* > {quote}api/v1/clusters//services?ServiceInfo/service_name.i= n(RANGER,HIVE) > { > ServiceInfo: { > credential_store_enabled: =E2=80=9Ctrue=E2=80=9D > } > }{quote} > {quote}api/v1/clusters/testcluster/services/RANGER -X PUT -d '{"ServiceIn= fo" : {"credential_store_enabled":"true"}}' > {quote} > {quote}api/v1/clusters/testcluster/services?ServiceInfo/service_name=3DZO= OKEEPER -X PUT -d '{"ServiceInfo" : {"credential_store_enabled":"false"}}'{= quote} > *REST API to get Stack definition* > {quote} > curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://localhost:8= 080/api/v1/stacks/HDP/versions/2.0/services > {quote} > {quote} > { > "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/services= /", > { > "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/serv= ices/YARN", > "StackServices" : { > "service_name" : "YARN", > "stack_name" : "HDP", > "stack_version" : "2.0", > "credential_store_supported" : "false", > "credential_store_enabled" : "false" > } > }, > { > "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0/serv= ices/ZOOKEEPER", > "StackServices" : { > "service_name" : "ZOOKEEPER", > "stack_name" : "HDP", > "stack_version" : "2.0", > "credential_store_supported" : "false", > "credential_store_enabled" : "false" > } > } > ] > } > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)