test suite failures under i386

Bug #1446174 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
James Page
openstack-trove (Ubuntu)
Fix Released
High
James Page

Bug Description

======================================================================
FAIL: proboscis.case.MethodTest (test_expected_get_configuration_parameter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/api/configurations.py", line 232, in test_expected_get_configuration_parameter
    parameter.has_field('datastore_version_id', unicode)
  File "/usr/lib/python2.7/dist-packages/proboscis/check.py", line 127, in __exit__
    raise ASSERTION_ERROR(final_message)
AssertionError: Check failure! Traceback:
  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
    result = function(*args, **kwargs)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/event_simulator.py", line 62, in go
    func(*args, **kwargs)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/event_simulator.py", line 194, in thread_start
    return func(*args, **kw)
* File "run_tests.py", line 193, in run_tests
    proboscis.TestProgram().run_and_exit()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 577, in run_and_exit
    self.__run()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 534, in run
    *args, **kwargs
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 121, in __init__
    **extra_args)
* File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 207, in runTests
    result = self.testRunner.run(self.test)
* File "/usr/lib/python2.7/dist-packages/nose/core.py", line 62, in run
    test(result)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__
    return self.run(*arg, **kw)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run
    test(orig)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__
    return self.run(*arg, **kw)
* File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run
    test(orig)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 133, in run
    self.runTest(result)
* File "/usr/lib/python2.7/dist-packages/nose/case.py", line 151, in runTest
    test(result)
* File "/usr/lib/python2.7/unittest/case.py", line 395, in __call__
    return self.run(*args, **kwds)
* File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
* File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
* File "/usr/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
* File "/usr/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/api/configurations.py", line 229, in test_expected_get_configuration_parameter
    parameter.has_field('max', int)
* File "/build/buildd/openstack-trove-2015.1~rc1/trove/tests/util/check.py", line 201, in has_field
    attribute_type))

AssertionError: ConfigurationParameter attribute max is of type <type 'long'> (expected one of the following: <type 'int'>).

-------------------- >> begin captured stdout << ---------------------
params: <ConfigurationParameter: {'name': u'key_buffer_size', 'min': 0, 'max': 4294967296L, 'manager': <troveclient.v1.configurations.ConfigurationParameters object at 0x57a6d46c>, 'restart_required': False, '_info': {u'name': u'key_buffer_size', u'min': 0, u'max': 4294967296L, u'restart_required': False, u'type': u'integer', u'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb'}, 'type': u'integer', 'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb', '_loaded': True}>
resp: {'status': '200', 'content-length': '166', 'content-type': 'application/json', 'content-location': u'http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size'}
body: {"name": "key_buffer_size", "min": 0, "max": 4294967296, "restart_required": false, "type": "integer", "datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"}
config_parameter_dict: {u'name': u'key_buffer_size', u'min': 0, u'max': 4294967296L, u'restart_required': False, u'type': u'integer', u'datastore_version_id': u'b00000b0-00b0-0b00-00b0-000b000000bb'}

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
trove.common.base_wsgi: DEBUG: Empty body provided in request
trove.common.wsgi: DEBUG: Getting schema for type:show
troveclient.compat.client: DEBUG: REQ: curl -i http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size -X GET -H "X-Auth-Project-Id: 2500" -H "User-Agent: python-troveclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 2500"

troveclient.compat.client: DEBUG: RESP:{'status': '200', 'content-length': '166', 'content-type': 'application/json', 'content-location': u'http://localhost:8779/v1.0/2500/datastores/mysql/versions/5.5/parameters/key_buffer_size'} {"name": "key_buffer_size", "min": 0, "max": 4294967296, "restart_required": false, "type": "integer", "datastore_version_id": "b00000b0-00b0-0b00-00b0-000b000000bb"}

--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------

James Page (james-page)
Changed in openstack-trove (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openstack-trove - 2015.1~rc1-0ubuntu2

---------------
openstack-trove (2015.1~rc1-0ubuntu2) vivid; urgency=medium

  * Ensure package tests pass on 32 and 64 bit systems (LP: #1446174):
    - d/p/fix-intlong-test.patch: Check for int *and* long values as valid
      types for max/min parameters.
 -- James Page <email address hidden> Mon, 20 Apr 2015 12:20:31 +0100

Changed in openstack-trove (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/175362

Changed in trove:
assignee: nobody → James Page (james-page)
status: New → In Progress
Changed in trove:
milestone: none → liberty-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/175362
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=66c48ba1735b359e0eb8ecefa2c04d962a70a7f1
Submitter: Jenkins
Branch: master

commit 66c48ba1735b359e0eb8ecefa2c04d962a70a7f1
Author: James Page <email address hidden>
Date: Mon Apr 20 12:39:36 2015 +0100

    Support testing on 32 bit systems

    Under a 32 bit OS, the type of max/min is long, not int.

    Allow both long and int as valid types for these parameters.

    Change-Id: If0ae44090229e2bf77405d81f06698e75ac54b97
    Closes-Bug: #1446174

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: liberty-1 → 4.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.