ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14239) Unit tests fail for upgrade operations in branch-2.2
Date Sun, 06 Dec 2015 22:09:10 GMT

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

Hudson commented on AMBARI-14239:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.2 #19 (See [https://builds.apache.org/job/Ambari-branch-2.2/19/])
AMBARI-14239 - Unit tests fail for upgrade operations in branch-2.2 (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5152f891c6dda8abd5ca8572fd212b5a8f549620])
* ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/upgrade.py


> Unit tests fail for upgrade operations in branch-2.2
> ----------------------------------------------------
>
>                 Key: AMBARI-14239
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14239
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-14239.patch
>
>
> {code}
> Failed tests:
> FAIL: test_pre_upgrade_restart (test_knox_gateway.TestKnoxGateway)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py",
line 253, in test_pre_upgrade_restart
>     sudo = True, tries = 3, try_sleep = 1,
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 253, in assertResourceCalled
>     self.assertEquals(name, resource.name)
> AssertionError: Tuples differ: ('tar', '-zcvhf', '/tmp/knox-u... != ('hdp-select', 'set',
'knox-se...
> First differing element 0:
> tar
> hdp-select
> + ('hdp-select', 'set', 'knox-server', '2.2.1.0-3242')
> - ('tar',
> -  '-zcvhf',
> -  '/tmp/knox-upgrade-backup/knox-conf-backup.tar',
> -  '/usr/hdp/current/knox-server/conf/')
> FAIL: test_pre_upgrade_restart_from_hdp_2300_to_2320 (test_knox_gateway.TestKnoxGateway)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py",
line 369, in test_pre_upgrade_restart_from_hdp_2300_to_2320
>     sudo = True,  tries = 3, try_sleep = 1,
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 253, in assertResourceCalled
>     self.assertEquals(name, resource.name)
> AssertionError: Tuples differ: ('tar', '-zcvhf', '/tmp/knox-u... != ('cp', '-R', '-p',
'/etc/knox/...
> First differing element 0:
> tar
> cp
> Second tuple contains 1 additional elements.
> First extra element 4:
> /etc/knox/conf.backup
> + ('cp', '-R', '-p', '/etc/knox/conf', '/etc/knox/conf.backup')
> - ('tar',
> -  '-zcvhf',
> -  '/tmp/knox-upgrade-backup/knox-conf-backup.tar',
> -  '/usr/hdp/current/knox-server/conf/')
> FAIL: test_pre_upgrade_restart_to_hdp_2300 (test_knox_gateway.TestKnoxGateway)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.2/KNOX/test_knox_gateway.py",
line 297, in test_pre_upgrade_restart_to_hdp_2300
>     sudo = True,  tries = 3, try_sleep = 1,
>   File "/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 253, in assertResourceCalled
>     self.assertEquals(name, resource.name)
> AssertionError: Tuples differ: ('tar', '-zcvhf', '/tmp/knox-u... != ('cp', '-R', '-p',
'/etc/knox/...
> First differing element 0:
> tar
> cp
> Second tuple contains 1 additional elements.
> First extra element 4:
> /etc/knox/conf.backup
> + ('cp', '-R', '-p', '/etc/knox/conf', '/etc/knox/conf.backup')
> - ('tar',
> -  '-zcvhf',
> -  '/tmp/knox-upgrade-backup/knox-conf-backup.tar',
> -  '/usr/hdp/current/knox-server/conf/')
> ----------------------------------------------------------------------
> Total run:880
> Total errors:0
> Total failures:3
> ERROR
> {code}



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

Mime
View raw message