ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Levas" <>
Subject Review Request 31282: Kerberos: regenerate keytabs not handled for all hosts
Date Sun, 22 Feb 2015 21:34:02 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Ambari, Emil Anca, John Speidel, Robert Nettleton, and Vitalyi Brodetskyi.

Bugs: AMBARI-9739

Repository: ambari


1. Installed cluster on three hosts c6401, c6402, c6403
2. using oracle jdk 1.7, put JCE in place on all hosts
3. ambari-agent stop on c6403 (which just has DN, ZK and NM)
4. Enable kerberos, which means c6403 does not get keytabs
5. ambari-agent start on c6403
6. go to regen keytabs. Clicked to only do missing. c6403 does not get keytabs.
7. go to regen keytabs. just left the default which should do all. No hosts get the keytabs.

What I found is since the Kerberos client didn't get installed on c6403, the "Set keytab kerberos
client" command is "Host Role in invalid state". I went to that host, and did install clients
from the UI to get the kerberos client installed. Once that happened, I could then regen keytabs.

The main issue: Regen only works if all hosts can regen. Once c6403 did not have a client,
and Host Role in invalid state, it didn't do keytabs for any other hosts.

This occurs because the Kerberos Client is in the INIT state on one or more hosts.  Filtering
out hosts where the Kerberos Client is not in the INSTALLED state, solves this issue.


  ambari-server/src/main/java/org/apache/ambari/server/controller/ 7a0a374

  ambari-server/src/main/java/org/apache/ambari/server/state/ d05f209 



Manually tested in cluster

#Jenkins test results:

Running org.apache.ambari.server.controller.KerberosHelperTest
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.605 sec

Ambari server test suite
Tests run: 2725, Failures: 0, Errors: 0, Skipped: 15

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 h
[INFO] Finished at: 2015-02-22T20:17:25+00:00
[INFO] Final Memory: 44M/555M
[INFO] ------------------------------------------------------------------------


Robert Levas

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message