ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-22418) Make Ambari configuration API consistent with existing API.
Date Wed, 15 Nov 2017 19:30:00 GMT

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

Hudson commented on AMBARI-22418:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8396 (See [https://builds.apache.org/job/Ambari-trunk-Commit/8396/])
AMBARI-22418.  Make Ambari configuration API consistent with existing (rlevas: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3f2743b58ba65c4bdc7d37df5348d17124bf305a])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertStateChangedListener.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/ldap/LdapModuleFunctionalTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/ldap/LdapConfigurationRequest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/ldap/service/ads/DefaultLdapConfigurationServiceTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfiguration.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/ResourceProviderFactory.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/ldap/domain/AmbariLdapConfigurationFactory.java
* (delete) ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariConfigurationResponseSwagger.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/metadata/AmbariServiceAlertDefinitions.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/controller/RootComponent.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RootServiceComponentResourceProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RootServiceComponentPropertyProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/controller/RootService.java
* (delete) ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariConfigurationService.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertReceivedListener.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/metadata/AgentAlertDefinitionsTest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/RootServiceResponseFactoryTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/RootServiceService.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/ldap/LdapConfigurationService.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RootServiceComponentResourceProviderTest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/ldap/service/ads/DefaultLdapAttributeDetectionServiceTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/stackadvisor/commands/StackAdvisorCommand.java
* (delete) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AmbariConfigurationResourceProviderTest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RootServiceComponentPropertyProviderTest.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/api/services/RootServiceComponentConfigurationRequestSwagger.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* (delete) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AmbariConfigurationResourceProvider.java
* (add) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RootServiceComponentConfigurationResourceProviderTest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/ldap/domain/TestAmbariLdapConfigurationFactory.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/api/services/RootServiceComponentConfigurationResponseSwagger.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertStateChangedEventTest.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/api/services/stackadvisor/commands/StackAdvisorCommandTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/resources/RootServiceComponentResourceDefinition.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/api/services/RootServiceComponentConfigurationService.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/api/services/ldap/AmbariConfiguration.java
* (add) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RootServiceComponentConfigurationResourceProvider.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/ldap/service/AmbariLdapFacadeTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/RootServiceResponseFactory.java
* (delete) ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariConfigurationRequestSwagger.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/ldap/service/AmbariLdapConfigurationProvider.java


> Make Ambari configuration API consistent with existing API.
> -----------------------------------------------------------
>
>                 Key: AMBARI-22418
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22418
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 3.0.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>             Fix For: 3.0.0
>
>         Attachments: AMBARI-22418_trunk_01.patch
>
>
> Make Ambari configuration API consistent with existing API. 
> The current API entry point (as of AMBARI-21307) is {{/api/v1/ambariconfigs}}. This should
be more inline with the existing entry point for Ambari server related data...  {{/api/v1/services/AMBARI/components/AMBARI_SERVER}}.
 
> The new API entry point for Ambari server related configuration data should be {{/api/v1/services/AMBARI/components/AMBARI_SERVER/configurations}}.
> Example Rest API calls:
> *Create/Set configuration*
> Used to create a new or explicitly set properties an existing Ambari Server configuration
> {noformat:title=URL}
> POST /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations
> {noformat}
> {code:title=Payload}
> {
>   "Configuration": {    
>     "category" : "ldap-configuration",
>     "properties": {
>       "ambari.ldap.bindanonymously": "true",
>         "ambari.ldap.server.port": "389",
>         "ambari.ldap.base.dn": "dc=example,dc=com",
>         "ambari.ldap.user.object.class":"person",
>         "ambari.ldap.user.name.attribute":"uid",
>         "ambari.ldap.user.search.base": "dc=example,dc=com",
>         "ambari.ldap.group.object.class":"groupOfUniqueNames",
>         "ambari.ldap.group.name.attribute":"cn",
>         "ambari.ldap.group.member.attribute":"uniqueMember",
>         "ambari.ldap.group.search.base": "dc=example,dc=com"
>       }
>   }
> }
> {code}
> *Update configuration*
> Used to update existing properties or add new properties to an existing Ambari Server
configuration
> {noformat:title=URL}
> PUT /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/ldap-configuration
> {noformat}
> {code:title=Payload}
> {
>   "Configuration": {    
>     "properties": {
>       "ambari.ldap.bindanonymously": "true",
>         "ambari.ldap.server.port": "389",
>         "ambari.ldap.base.dn": "dc=example,dc=com",
>         "ambari.ldap.user.object.class":"person",
>         "ambari.ldap.user.name.attribute":"uid",
>         "ambari.ldap.user.search.base": "dc=example,dc=com",
>         "ambari.ldap.group.object.class":"groupOfUniqueNames",
>         "ambari.ldap.group.name.attribute":"cn",
>         "ambari.ldap.group.member.attribute":"uniqueMember",
>         "ambari.ldap.group.search.base": "dc=example,dc=com"
>       }
>   }
> }
> {code}
> *Delete configuration*
> Deletes an existing Ambari Server configuration
> {noformat:title=URL}
> DELETE /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/ldap-configuration
> {noformat}
> *Get configurations*
> Used to retrieve a list of the existing Ambari Server configurations
> {noformat:title=URL}
> GET /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations
> {noformat}
> {code:title=Response}
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBARI_SERVER/configurations",
>   "items" : [
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/ldap-configuration",
>       "Configuration" : {
>         "category" : "ldap-configuration",
>         "component_name" : "AMBARI_SERVER",
>         "service_name" : "AMBARI"
>       }
>     }
>   ]
> }
> {code}
> *Get configuration*
> Used to retrieve a the details about an existing Ambari Server configuration
> {noformat:title=URL}
> GET /api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/ldap-configuration
> {noformat}
> {code:title=Response}
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBARI_SERVER/configurations/ldap-configuration",
>   "Configuration" : {
>     "category" : "ldap-configuration",
>     "component_name" : "AMBARI_SERVER",
>     "service_name" : "AMBARI",
>     "properties" : {
>       "ambari.ldap.base.dn" : "dc=example,dc=com",
>       "ambari.ldap.bindanonymously" : "true",
>       "ambari.ldap.group.member.attribute" : "uniqueMember",
>       "ambari.ldap.group.name.attribute" : "cn",
>       "ambari.ldap.group.object.class" : "groupOfUniqueNames",
>       "ambari.ldap.group.search.base" : "dc=example,dc=com",
>       "ambari.ldap.server.port" : "389",
>       "ambari.ldap.user.name.attribute" : "uid",
>       "ambari.ldap.user.object.class" : "person",
>       "ambari.ldap.user.search.base" : "dc=example,dc=com"
>     }
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message