Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.6
-
None
-
None
-
Ambari 2.7.6
Description
When regenerating keytabs, I found an issue that ambari server keeps generating new keytabs, not reusing already created keytabs even with "only regenerate keytabs for missing hosts and components" checkbox selected.
With investigation, I found that `cached_keytab_path` has all NULL value in `kerberos_principal`.
e.g.
mysql> select * from kerberos_principal; +------------------------------------------------------------+------------+----------------------------------------------------------------------------------------------------+ | principal_name | is_service | cached_keytab_path | +------------------------------------------------------------+------------+----------------------------------------------------------------------------------------------------+ | HTTP/host1.example.com@EXAMPLE.COM | 1 | NULL | | HTTP/host2.example.com@EXAMPLE.COM | 1 | NULL | | HTTP/host3.example.com@EXAMPLE.COM | 1 | NULL | ...
There is a bug in `CreateKeytabFilesServerAction#processIdentity`. It doesn't update `cached_keytab_path` if `previousCachedFilePath` is null.
I will make a PR for this soon.
Attachments
Attachments
Issue Links
- links to