======================================================================
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
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).