Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21296

Python tests fail for ambari-server and ambari-agent on ppc64le

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • 3.0.0
    • ambari-agent, ambari-server
    • $ uname -a
      Linux pts00607-vm4 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:42:36 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

    Description

      There are 78 python test failures in Ambari agent for ppc64le

      Error:

      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-agent/src/test/python/resource_management/TestXmlConfigResource.py", line 68, in test_action_create_empty_xml_config
          configuration_attributes={}
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/core/base.py", line 155, in __init__
          self.env.run()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/core/environment.py", line 160, in run
          self.run_action(resource, action)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/core/environment.py", line 118, in run_action
          resource.provider)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/core/providers/__init__.py", line 93, in find_provider
          if resource in os_family_provider:
      UnboundLocalError: local variable 'os_family_provider' referenced before assignment
      

      In Ambari-server, the below tests fail:

      ERROR: test_configure_default (test_ganglia_server.TestGangliaServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_server.py", line 37, in test_configure_default
          target = RMFTestCase.TARGET_COMMON_SERVICES
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 155, in executeScript
          method(RMFTestCase.env, *command_args)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/libraries/script/script.py", line 120, in locking_configure
          original_configure(obj, *args, **kw)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 78, in configure
          change_permission()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 93, in change_permission
          Directory(params.dwoo_path,
      AttributeError: 'module' object has no attribute 'dwoo_path'
      
      ERROR: test_install_default (test_ganglia_server.TestGangliaServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_server.py", line 79, in test_install_default
          target = RMFTestCase.TARGET_COMMON_SERVICES
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 155, in executeScript
          method(RMFTestCase.env, *command_args)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 41, in install
          self.configure(env)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/libraries/script/script.py", line 120, in locking_configure
          original_configure(obj, *args, **kw)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 78, in configure
          change_permission()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 93, in change_permission
          Directory(params.dwoo_path,
      AttributeError: 'module' object has no attribute 'dwoo_path'
      
      ERROR: test_start_default (test_ganglia_server.TestGangliaServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/GANGLIA/test_ganglia_server.py", line 48, in test_start_default
          target = RMFTestCase.TARGET_COMMON_SERVICES
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 155, in executeScript
          method(RMFTestCase.env, *command_args)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 49, in start
          self.configure(env)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/libraries/script/script.py", line 120, in locking_configure
          original_configure(obj, *args, **kw)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 78, in configure
          change_permission()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/GANGLIA/3.5.0/package/scripts/ganglia_server.py", line 93, in change_permission
          Directory(params.dwoo_path,
      AttributeError: 'module' object has no attribute 'dwoo_path'
      
      ERROR: test_start_default_22_with_phoenix_enabled (test_hbase_regionserver.TestHbaseRegionServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py", line 427, in test_start_default_22_with_phoenix_enabled
          target = RMFTestCase.TARGET_COMMON_SERVICES)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 155, in executeScript
          method(RMFTestCase.env, *command_args)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.py", line 93, in start
          self.configure(env) # for security
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/resource_management/libraries/script/script.py", line 120, in locking_configure
          original_configure(obj, *args, **kw)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/../../../../main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_regionserver.py", line 49, in configure
          hbase(name='regionserver')
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/main/python/ambari_commons/os_family_impl.py", line 89, in thunk
          return fn(*args, **kwargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/hbase.py", line 224, in hbase
          Package(params.phoenix_package,
      AttributeError: 'module' object has no attribute 'phoenix_package'
      
      FAIL: test_clean_default (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 124, in test_clean_default
          self.assert_clean_default()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 182, in assert_clean_default
          try_sleep = 5
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: 'bash -x /tmp/removeMysqlUser.sh mysql hive c6402.ambari.apache.org' != u'bash -x /tmp/removeMysqlUser.sh mysqld hive c6402.ambari.apache.org'
      
      FAIL: test_clean_secured (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 135, in test_clean_secured
          self.assert_clean_secured()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 193, in assert_clean_secured
          try_sleep = 5
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: 'bash -x /tmp/removeMysqlUser.sh mysql hive c6402.ambari.apache.org' != u'bash -x /tmp/removeMysqlUser.sh mysqld hive c6402.ambari.apache.org'
      
      FAIL: test_configure_default (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 38, in test_configure_default
          self.assert_configure_default()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 153, in assert_configure_default
          try_sleep = 5
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: 'bash -x /tmp/addMysqlUser.sh mysql hive \'!`"\'"\'"\' 1\' c6402.ambari.apache.org' != u'bash -x /tmp/addMysqlUser.sh mysqld hive \'!`"\'"\'"\' 1\' c6402.ambari.apache.org'
      
      FAIL: test_configure_secured (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 81, in test_configure_secured
          self.assert_configure_secured()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 171, in assert_configure_secured
          try_sleep = 5
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: 'bash -x /tmp/addMysqlUser.sh mysql hive \'!`"\'"\'"\' 1\' c6402.ambari.apache.org' != u'bash -x /tmp/addMysqlUser.sh mysqld hive \'!`"\'"\'"\' 1\' c6402.ambari.apache.org'
      
      FAIL: test_start_default (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 53, in test_start_default
          sudo = True,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: Tuples differ: ('service', 'mysql', 'start') != ('service', 'mysqld', 'start')
      
      First differing element 1:
      mysql
      mysqld
      
      - ('service', 'mysql', 'start')
      + ('service', 'mysqld', 'start')
      ?                   +
      
      
      FAIL: test_start_secured (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 96, in test_start_secured
          sudo = True,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: Tuples differ: ('service', 'mysql', 'start') != ('service', 'mysqld', 'start')
      
      First differing element 1:
      mysql
      mysqld
      
      - ('service', 'mysql', 'start')
      + ('service', 'mysqld', 'start')
      ?                   +
      
      
      FAIL: test_stop_default (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 68, in test_stop_default
          sudo = True,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: Tuples differ: ('service', 'mysql', 'stop') != ('service', 'mysqld', 'stop')
      
      First differing element 1:
      mysql
      mysqld
      
      - ('service', 'mysql', 'stop')
      + ('service', 'mysqld', 'stop')
      ?                   +
      
      
      FAIL: test_stop_secured (test_mysql_server.TestMySqlServer)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_mysql_server.py", line 112, in test_stop_secured
          sudo = True,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: Tuples differ: ('service', 'mysql', 'stop') != ('service', 'mysqld', 'stop')
      
      First differing element 1:
      mysql
      mysqld
      
      - ('service', 'mysql', 'stop')
      + ('service', 'mysqld', 'stop')
      ?                   +
      
      
      FAIL: test_service_check_default (test_service_check.TestServiceCheck)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 40, in test_service_check_default
          self.assert_service_check()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 153, in assert_service_check
          try_sleep = 5,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: '/tmp/oozieSmoke2.sh suse /var/lib/oozie /etc/oozie/conf /usr/bin http://c6402.ambari.apache.org:11000/oozie / /etc/hadoop/conf /usr/bin ambari-qa no-op False' != u'/tmp/oozieSmoke2.sh suse-ppc /var/lib/oozie /etc/oozie/conf /usr/bin http://c6402.ambari.apache.org:11000/oozie / /etc/hadoop/conf /usr/bin ambari-qa no-op False'
      
      FAIL: test_service_check_secured (test_service_check.TestServiceCheck)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 53, in test_service_check_secured
          self.assert_service_check()
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_service_check.py", line 153, in assert_service_check
          try_sleep = 5,
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 281, in assertResourceCalled
          self.assertEquals(name, resource.name)
      AssertionError: '/tmp/oozieSmoke2.sh suse /var/lib/oozie /etc/oozie/conf /usr/bin http://c6402.ambari.apache.org:11000/oozie / /etc/hadoop/conf /usr/bin ambari-qa no-op False' != u'/tmp/oozieSmoke2.sh suse-ppc /var/lib/oozie /etc/oozie/conf /usr/bin http://c6402.ambari.apache.org:11000/oozie / /etc/hadoop/conf /usr/bin ambari-qa no-op False'
      
      FAIL: test_hook_default (test_before_install.TestHookBeforeInstall)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py", line 42, in test_hook_default
          repo_template='[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0'
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 282, in assertResourceCalled
          self.assertEquals(kwargs, resource.arguments)
      AssertionError: {'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.6 [truncated]... != {'base_url': u'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0. [truncated]...
        {'action': ['create'],
      -  'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.6.0',
      +  'base_url': u'http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.6.0',
      ?              +
      
      -  'components': ['HDP', 'main'],
      +  'components': [u'HDP', 'main'],
      ?                 +
      
         'mirror_list': None,
      -  'repo_file_name': 'HDP',
      +  'repo_file_name': u'HDP',
      ?                    +
      
      -  'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0'}
      +  'repo_template': u'{{package_type}} {{base_url}} {{components}}'}
      
      FAIL: test_hook_default_repository_file (test_before_install.TestHookBeforeInstall)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py", line 80, in test_hook_default_repository_file
          append_to_file=False)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/stacks/utils/RMFTestCase.py", line 282, in assertResourceCalled
          self.assertEquals(kwargs, resource.arguments)
      AssertionError: {'append_to_file': False, 'base_url': 'http://repo1/HDP/centos5/2.x/updates/2.2. [truncated]... != {'append_to_file': False, 'base_url': u'http://repo1/HDP/centos5/2.x/updates/2.2 [truncated]...
        {'action': ['create'],
         'append_to_file': False,
      -  'base_url': 'http://repo1/HDP/centos5/2.x/updates/2.2.0.0',
      +  'base_url': u'http://repo1/HDP/centos5/2.x/updates/2.2.0.0',
      ?              +
      
      -  'components': ['HDP', 'main'],
      +  'components': [u'HDP', 'main'],
      ?                 +
      
         'mirror_list': None,
         'repo_file_name': 'ambari-hdp-4',
      -  'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0'}
      +  'repo_template': u'{{package_type}} {{base_url}} {{components}}'}
      
      FAIL: testTransparentHugePage (TestCheckHost.TestCheckHost)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-common/src/test/python/mock/mock.py", line 1199, in patched
          return func(*args, **keywargs)
        File "/var/lib/jenkins/workspace/ambari-trunk/ambari-server/src/test/python/custom_actions/TestCheckHost.py", line 407, in testTransparentHugePage
          self.assertEquals(structured_out_mock.call_args[0][0], {'transparentHugePage' : {'message': 'never', 'exit_code': 0}})
      AssertionError: {'transparentHugePage': {'message': '', 'exit_code': 0}} != {'transparentHugePage': {'message': 'never', 'exit_code': 0}}
      - {'transparentHugePage': {'exit_code': 0, 'message': ''}}
      + {'transparentHugePage': {'exit_code': 0, 'message': 'never'}}
      ?                                                      +++++
      
      

      Attachments

        1. AMBARI-21296.patch
          2 kB
          Andrew Onischuk
        2. AMBARI-21296-1.patch
          2 kB
          Pravin Dsilva
        3. AMBARI-21296-2.patch
          2 kB
          Pravin Dsilva

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              pravindsilva Pravin Dsilva
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: