[
https://issues.apache.org/jira/browse/AMBARI-21344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099501#comment-16099501
]
Hudson commented on AMBARI-21344:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7802 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7802/])
AMBARI-21344. Add Services Using Repository ID (alexantonenko) (hiveww:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=02fe5fa62e9561b17cdfd3876794faff884ccd05])
* (edit) ambari-web/app/models/stack.js
* (edit) ambari-web/app/controllers/wizard/step8_controller.js
> Add Services Using Repository ID
> --------------------------------
>
> Key: AMBARI-21344
> URL: https://issues.apache.org/jira/browse/AMBARI-21344
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 3.0.0
> Reporter: Antonenko Alexander
> Assignee: Antonenko Alexander
> Priority: Critical
> Fix For: 3.0.0
>
> Attachments: AMBARI-21344.patch
>
>
> Currently, the web client uses the repository version when adding services.
> Since multiple repositories from different vendors may have identical
> repository strings, we should switch to using the unique Repo ID instead of
> the version. Here's an example of the call being made today:
> {code:title=POST http://localhost:8080/api/v1/clusters/c1/services}
> [
> {
> "ServiceInfo": {
> "service_name": "ZOOKEEPER",
> "desired_repository_version": "2.6.0.0-334"
> }
> }
> ]
> {code}
> This should change to the following:
> {code:title=POST http://localhost:8080/api/v1/clusters/c1/services}
> [
> {
> "ServiceInfo": {
> "service_name": "ZOOKEEPER",
> "desired_repository_version_id": 1
> }
> }
> ]
> {code}
> The same change needs to be made for when a service is added to a cluster.
> However, this case it a bit trickier if there are multiple repositories.
> Until a more well-defined UX workflow is available, the following should be
> used for adding services:
> - If there is only a single repository, then use that one
> - If there are more than 1 repository, then choose the most recent repository
> -- It cannot be a {{PATCH}} repository
> -- Its status must be {{CURRENT}}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)