AMBARI-21753. Unable to add new host to the upgraded PPC cluster due to exception:Local OS is not compatible with cluster primary OS family (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1dba7786 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1dba7786 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1dba7786 Branch: refs/heads/branch-feature-logsearch-ui Commit: 1dba7786f7bb8f99251fd5c74a3ddeb0bf2fb118 Parents: 09fed27 Author: Andrew Onishuk <aonis...@hortonworks.com> Authored: Fri Aug 18 16:40:56 2017 +0300 Committer: Andrew Onishuk <aonis...@hortonworks.com> Committed: Fri Aug 18 16:40:56 2017 +0300 ---------------------------------------------------------------------- .../src/main/python/ambari_server/serverConfiguration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/1dba7786/ambari-server/src/main/python/ambari_server/serverConfiguration.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari_server/serverConfiguration.py b/ambari-server/src/main/python/ambari_server/serverConfiguration.py index 631c9a7..c2ecb01 100644 --- a/ambari-server/src/main/python/ambari_server/serverConfiguration.py +++ b/ambari-server/src/main/python/ambari_server/serverConfiguration.py @@ -1182,8 +1182,8 @@ def update_ambari_properties(): if NR_USER_PROPERTY not in new_properties.keys(): new_properties.process_pair(NR_USER_PROPERTY, "root") - if OS_FAMILY_PROPERTY not in new_properties.keys(): - new_properties.process_pair(OS_FAMILY_PROPERTY, OS_FAMILY + OS_VERSION) + # update the os. In case os detection routine changed + new_properties.process_pair(OS_FAMILY_PROPERTY, OS_FAMILY + OS_VERSION) with open(conf_file, 'w') as hfW: new_properties.store(hfW)