ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balázs Bence Sári (JIRA) <>
Subject [jira] [Updated] (AMBARI-21242) Improve error message for Blueprints deployment with incorrect credential type
Date Wed, 14 Jun 2017 12:33:00 GMT


Balázs Bence Sári updated AMBARI-21242:
    Status: Patch Available  (was: In Progress)

> Improve error message for Blueprints deployment with incorrect credential type
> ------------------------------------------------------------------------------
>                 Key: AMBARI-21242
>                 URL:
>             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 {
> }
> {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
> 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

View raw message