ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doroszlai, Attila (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (AMBARI-19284) Zeppelin Notebook start fails after reboot
Date Fri, 23 Dec 2016 09:10:58 GMT

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

Doroszlai, Attila edited comment on AMBARI-19284 at 12/23/16 9:10 AM:
----------------------------------------------------------------------

[~aonishuk], could you please fix unit tests?  Thanks.

{noformat}
Failed tests:
FAIL: test_configure_default (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 112, in test_configure_default
    self.assert_configure_default()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 46, in assert_configure_default
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_configure_secured (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 123, in test_configure_secured
    self.assert_configure_secured()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 81, in assert_configure_secured
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_start_default (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 283, in test_start_default
    self.assert_configure_default()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 46, in assert_configure_default
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_start_secured (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 295, in test_start_secured
    self.assert_configure_secured()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 81, in assert_configure_secured
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

----------------------------------------------------------------------
Total run:1155
Total errors:0
Total failures:4
{noformat}


was (Author: adoroszlai):
Could you please fix unit tests?

{noformat}
Failed tests:
FAIL: test_configure_default (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 112, in test_configure_default
    self.assert_configure_default()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 46, in assert_configure_default
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_configure_secured (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 123, in test_configure_secured
    self.assert_configure_secured()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 81, in assert_configure_secured
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_start_default (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 283, in test_start_default
    self.assert_configure_default()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 46, in assert_configure_default
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

FAIL: test_start_secured (test_zeppelin_master.TestZeppelinMaster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 295, in test_start_secured
    self.assert_configure_secured()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
line 81, in assert_configure_secured
    configurations = self.getConfig()['configurations']['zeppelin-config'],
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 280, in assertResourceCalled
    self.assertEquals(resource_type, resource.__class__.__name__)
AssertionError: 'XmlConfig' != 'Directory'

----------------------------------------------------------------------
Total run:1155
Total errors:0
Total failures:4
{noformat}

> Zeppelin Notebook start fails after reboot
> ------------------------------------------
>
>                 Key: AMBARI-19284
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19284
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19284.patch
>
>
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py",
line 361, in <module>
>         Master().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 287, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py",
line 191, in start
>         + params.zeppelin_log_file, user=params.zeppelin_user)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line
155, in __init__
>         self.env.run()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 160, in run
>         self.run_action(resource, action)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 124, in run_action
>         provider_action()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 262, in action_run
>         tries=self.resource.tries, try_sleep=self.resource.try_sleep)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
72, in inner
>         result = function(command, **kwargs)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
102, in checked_call
>         tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
150, in _call_wrapper
>         result = _call(command, **kwargs_copy)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
303, in _call
>         raise ExecutionFailed(err_msg, code, out, err)
>     resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/hdp/current/zeppelin-server/bin/zeppelin-daemon.sh
restart >> /grid/0/log/zeppelin/zeppelin-setup.log' returned 1. ######## Hortonworks
#############
>     This is MOTD message, added for testing in qe infra
>     mkdir: cannot create directory `/var/run/zeppelin': Permission denied
>     /usr/hdp/current/zeppelin-server/bin/zeppelin-daemon.sh: line 192: /var/run/zeppelin/zeppelin-zeppelin-nat-d7-rrws-ambari-autostart-1-5.pid:
No such file or directory
>     cat: /var/run/zeppelin/zeppelin-zeppelin-nat-d7-rrws-ambari-autostart-1-5.pid: No
such file or directory
>     
> Explanation:  
> 1\. /var/run/zeppelin created only during install stage  
> 2\. Reboot pc. So that /var/run is cleaned.  
> 3\. Zeppelin fails to start because /var/run/zeppelin is absent



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message