ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-10210) TestMain.test_resolve_ambari_config fails on Mac
Date Wed, 25 Mar 2015 19:50:54 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-10210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380624#comment-14380624
] 

Alejandro Fernandez commented on AMBARI-10210:
----------------------------------------------

+1 LGTM

> 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
>
>         Attachments: AMBARI-10210.patch
>
>
> 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)

Mime
View raw message