-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53213/
-----------------------------------------------------------
Review request for Ambari, Robert Levas and Robert Nettleton.
Bugs: AMBARI-18692
https://issues.apache.org/jira/browse/AMBARI-18692
Repository: ambari
Description
-------
Exporting blueprint from kerberos enabled cluster, exports hardcoded values
cluster name and realm in principal_name property.
When the same blueprint is used to create another cluster with different name,
service start fail with following error:
"resource_management.core.exceptions.Fail: Execution of '/usr/bin/kinit -kt
/etc/security/keytabs/hdfs.headless.keytab [keytab_name_in_blueprint] eturned
1. kinit: Keytab contains no suitable keys for [keytab_name_in_blueprint] while
getting initial credentials"
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessor.java
f890326
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintConfigurationProcessorTest.java
5bedb9d
Diff: https://reviews.apache.org/r/53213/diff/
Testing
-------
Tested manually. Suitable keytabs are generated automatically when not
mentioned in blueprint. Service starts succeeded with a blueprint exported with
the code change.
Modified existing unit test cases.
Thanks,
Amruta Borkar