[
https://issues.apache.org/jira/browse/AMBARI-21242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16054088#comment-16054088
]
Hudson commented on AMBARI-21242:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7648 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/7648/])
AMBARI-21242. Improve error message for Blueprints deployment with (adoroszlai:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e8e9781a8e98a5afdc31becc419e3792ba0a8515])
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequestTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ProvisionClusterRequest.java
> Improve error message for Blueprints deployment with incorrect credential type
> ------------------------------------------------------------------------------
>
> Key: AMBARI-21242
> URL: https://issues.apache.org/jira/browse/AMBARI-21242
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Balázs Bence Sári
> Assignee: Balázs Bence Sári
> Priority: Minor
> Fix For: 3.0.0
>
> Attachments: blueprint_invalid_credential_trunk_v1.patch
>
>
> During a Blueprints deployment of a Kerberized cluster, if the credential
> type is specified incorrectly (using an invalid or unknown type), the
> Blueprints deployment code currently throws the following error message back
> to the user:
> {code}
> Invalid Cluster Creation Template:
> org.apache.ambari.server.topology.InvalidTopologyTemplateException:
> credential.type is invalid
> {code}
> [~arpit] found this issue while attempting to deploy a Kerberized cluster
> with Blueprints. The Blueprint wiki incorrectly mentions one of the types as
> "PERSISTENT", when the correct value is actually "PERSISTED", per the
> enumerated type being checked in the validation code:
> From
> org.apache.ambari.server.controller.internal.ProvisionClusterRequest#parseCredentials:
> {code}
> CredentialStoreType type = Enums.getIfPresent(CredentialStoreType.class,
> typeString.toUpperCase()).orNull();
> if (type == null) {
> throw new InvalidTopologyTemplateException("credential.type is
> invalid.");
> }
> {code}
> The enumerated type is actually:
> {code}
> public enum CredentialStoreType {
> PERSISTED,
> TEMPORARY
> }
> {code}
> The Blueprints validation code should be updated to make the error message
> contain the valid set of types that can be set by the user, based on the
> values in the enumerated type above.
> The Wiki will need to be updated to show the correct types, but it would be
> good to make this error message more descriptive, in order to help users
> determine why a Cluster Creation Template deployment is failing.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)