ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4081) ambari agent unit test failures - TestLiveStatus and TestStackVersionsFileHandler
Date Mon, 16 Dec 2013 14:55:08 GMT

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

Dmitry Lysnichenko commented on AMBARI-4081:
--------------------------------------------

+1

> ambari agent unit test failures - TestLiveStatus and TestStackVersionsFileHandler
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-4081
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4081
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 1.4.3
>
>         Attachments: AMBARI-4081.patch
>
>
> There are two failures that seem related.
> * test_read_all_stack_versions (TestStackVersionsFileHandler.TestStackVersionsFileHandler)
> * test_build (TestLiveStatus.TestLiveStatus)
> {code}
> test_read_all_stack_versions (TestStackVersionsFileHandler.TestStackVersionsFileHandler)
... /Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py:63:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   logger.error("Can't read stack versions file: %s " % err.message)
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 57, in read_all_stack_versions
>     for line in open(self.versionsFilePath):
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> FAIL
> test_read_stack_version (TestStackVersionsFileHandler.TestStackVersionsFileHandler) ...
/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py:48:
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
>   logger.error("Can't read versions file: %s " % err.message)
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 42, in read_stack_version
>     for line in open(self.versionsFilePath):
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> FAIL{code}
> {code}
> test_build (TestLiveStatus.TestLiveStatus) ... Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> Traceback (most recent call last):
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 41, in read_stack_version
>     self.touch_file()
>   File "/Users/smohanty/enlistments/asf-ambari/ambari-agent/src/main/python/ambari_agent/StackVersionsFileHandler.py",
line 108, in touch_file
>     open(self.versionsFilePath, 'w').close()
> IOError: [Errno 2] No such file or directory: 'dummy_files/dummy_current_stack'
> FAIL
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message