You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by am...@apache.org on 2018/09/06 14:15:09 UTC
[ambari] branch trunk updated: AMBARI-24596. Stack Advisor reported
an error. Exit Code: 2. Error: KeyError: 'onefs' (amagyar) (#2258)
This is an automated email from the ASF dual-hosted git repository.
amagyar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7ce6e4e AMBARI-24596. Stack Advisor reported an error. Exit Code: 2. Error: KeyError: 'onefs' (amagyar) (#2258)
7ce6e4e is described below
commit 7ce6e4e983fb98b3152116bbcfc2db375c344539
Author: Attila Magyar <m....@gmail.com>
AuthorDate: Thu Sep 6 16:15:04 2018 +0200
AMBARI-24596. Stack Advisor reported an error. Exit Code: 2. Error: KeyError: 'onefs' (amagyar) (#2258)
---
.../main/resources/addon-services/ONEFS/1.0.0/service_advisor.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py
index 941a9d4..37d1a00 100644
--- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py
+++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/service_advisor.py
@@ -138,6 +138,9 @@ else:
def getServiceConfigurationsValidationItems(self, configs, recommendedDefaults, services, hosts):
validation_errors = []
- validation_errors.extend(self.toConfigurationValidationProblems(CoreSite(services).validate(), 'core-site'))
- validation_errors.extend(self.toConfigurationValidationProblems(HdfsSite(services).validate(), 'hdfs-site'))
+ try:
+ validation_errors.extend(self.toConfigurationValidationProblems(CoreSite(services).validate(), 'core-site'))
+ validation_errors.extend(self.toConfigurationValidationProblems(HdfsSite(services).validate(), 'hdfs-site'))
+ except KeyError as e:
+ self.logger.info('Cannot get OneFS properties from config. KeyError: %s' % e)
return validation_errors
\ No newline at end of file