RC1 configuration API unit tests are failing

Bug #1377231 reported by Denis M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Expired
Undecided
Unassigned

Bug Description

    ======================================================================
    FAIL: configuration.test_configuration_controller.TestConfigurationsParameterController.test_validate_create_invalid_restart_required
    configuration.test_configuration_controller.TestConfigurationsParameterController.test_validate_create_invalid_restart_required
    ----------------------------------------------------------------------
    _StringException: Traceback (most recent call last):
      File "/home/zigo/sources/openstack/juno/openstack-trove/build-area/openstack-trove-2014.2~rc1/trove/tests/unittests/configuration/test_configuration_controller.py", line 166, in test_validate_create_invalid_restart_required
        self.assertIn("5 is greater than the maximum of 1", error_messages)
      File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 344, in assertIn
        self.assertThat(haystack, Contains(needle), message)
      File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 423, in assertThat
        raise mismatch_error
    MismatchError: '5 is greater than the maximum of 1' not in ["255 is not of type 'string'", "0 is not of type 'string'", '5.0 is greater than the maximum of 1']

    ======================================================================
    FAIL: configuration.test_configuration_controller.TestConfigurationsParameterController.test_validate_create_invalid_restart_required_2
    configuration.test_configuration_controller.TestConfigurationsParameterController.test_validate_create_invalid_restart_required_2
    ----------------------------------------------------------------------
    _StringException: Traceback (most recent call last):
      File "/home/zigo/sources/openstack/juno/openstack-trove/build-area/openstack-trove-2014.2~rc1/trove/tests/unittests/configuration/test_configuration_controller.py", line 186, in test_validate_create_invalid_restart_required_2
        self.assertIn("-1 is less than the minimum of 0", error_messages)
      File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 344, in assertIn
        self.assertThat(haystack, Contains(needle), message)
      File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 423, in assertThat
        raise mismatch_error
    MismatchError: '-1 is less than the minimum of 0' not in ['-1.0 is less than the minimum of 0']

    ======================================================================
    FAIL: process-returncode
    process-returncode
    ----------------------------------------------------------------------
    _StringException: returncode 1

    ----------------------------------------------------------------------
    Ran 797 tests in 34.585s

    FAILED (failures=3, skipped=1)
    debian/rules:58: recipe for target 'override_dh_auto_test' failed
    make[1]: *** [override_dh_auto_test] Error 1
    make[1]: Leaving directory '/home/zigo/sources/openstack/juno/openstack-trove/build-area/openstack-trove-2014.2~rc1'
    debian/rules:11: recipe for target 'build' failed
    make: *** [build] Error 2
    dpkg-buildpackage: error: debian/rules build gave error exit status 2

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

This happened to me while building Trove in both Sid and Wheezy. Here's how to reproduce.

If you want to build in Sid, simply make sure that you have the Experimental Debian repository added to your sources.list (Juno is kept in Debian Experimental, because as Icehouse will be in Jessie, I can't upload stuff in Sid ...).

Then do:

apt-get install git-buildpackage

apt-get build-dep -t experimental openstack-trove

git clone git://git.debian.org/openstack/openstack-trove.git

cd openstack-trove

./debian/rules gen-orig-xz

git-buildpackage

You may eventually need to apt-get some additional dependencies before building, as there was some new ones between Juno b3 and Juno RC1 for Trove, and Trove RC1 wasn't uploaded yet because of the above unit test failures.

Note that if you need additional instructions, I'm available as zigo on Freenode and OFTC (and I'm in the #openstack-trove channel).

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Oh, forgot... You need to do:

git checkout -b debian/juno origin/debian/juno

right after the clone, as the default branch is currently debian/icehouse.

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

Please note that I have neutralized the errors in commit dc11e708159fb11b5d996e14fcaa78d6ebc7bf86 which would have to be "git revert"-ed for testing (otherwise, simply disable the patch debian/patch/temporarilly-disable-failling-aserts-in-unit-tests.patch by removing it from debian/patches/series).

Cheers,

Thomas Goirand (zigo)

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/127258

Changed in trove:
assignee: nobody → Denis M. (dmakogon)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Denis M. (<email address hidden>) on branch: master
Review: https://review.openstack.org/127258

Revision history for this message
Amrith Kumar (amrith) wrote :

set for expiry

Changed in trove:
status: In Progress → Incomplete
assignee: Denis M. (dmakogon) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack DBaaS (Trove) because there has been no activity for 60 days.]

Changed in trove:
status: Incomplete → Expired
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.