You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2015/03/25 20:04:54 UTC
[jira] [Created] (AMBARI-10210) TestMain.test_resolve_ambari_config
fails on Mac
Sumit Mohanty created AMBARI-10210:
--------------------------------------
Summary: TestMain.test_resolve_ambari_config fails on Mac
Key: AMBARI-10210
URL: https://issues.apache.org/jira/browse/AMBARI-10210
Project: Ambari
Issue Type: Bug
Components: test
Affects Versions: 2.1.0
Reporter: Sumit Mohanty
Assignee: Sumit Mohanty
Fix For: 2.1.0
TestMain.test_resolve_ambari_config fails on Mac
{noformat}
======================================================================
ERROR: test_resolve_ambari_config (TestMain.TestMain)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
return func(*args, **keywargs)
File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/test/python/ambari_agent/TestMain.py", line 151, in test_resolve_ambari_config
main.resolve_ambari_config()
File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/main.py", line 91, in resolve_ambari_config
configPath = os.path.abspath(AmbariConfig.AmbariConfig.getConfigFile())
File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/main/python/ambari_commons/os_family_impl.py", line 84, in thunk
fn_id = fn_id_base + "." + OSCheck.get_os_family()
File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/main/python/ambari_commons/os_check.py", line 211, in get_os_family
os_family = OSCheck.get_os_type()
File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/main/python/ambari_commons/os_check.py", line 185, in get_os_type
dist = OSCheck.os_distribution()
File "/Users/smohanty/enlistments/asf-ambari/ambari-common/src/main/python/ambari_commons/os_check.py", line 165, in os_distribution
distribution = platform.linux_distribution()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 329, in linux_distribution
return _dist_try_harder(distname,version,id)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 205, in _dist_try_harder
info = open('/var/adm/inst-log/info').readlines()
IOError: [Errno 2] No such file or directory: '/var/adm/inst-log/info'
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)