The attempt to merge lp:~gmb/maas/add-alerts-for-disconnected-clusters-bug-1341121 into lp:maas failed. Below is the output from the failed tests. Ign http://security.ubuntu.com trusty-security InRelease Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B] Ign http://nova.clouds.archive.ubuntu.com trusty InRelease Get:2 http://security.ubuntu.com trusty-security Release [59.7 kB] Ign http://nova.clouds.archive.ubuntu.com trusty-updates InRelease Hit http://nova.clouds.archive.ubuntu.com trusty Release.gpg Get:3 http://nova.clouds.archive.ubuntu.com trusty-updates Release.gpg [933 B] Hit http://nova.clouds.archive.ubuntu.com trusty Release Get:4 http://nova.clouds.archive.ubuntu.com trusty-updates Release [59.7 kB] Get:5 http://security.ubuntu.com trusty-security/main Sources [46.3 kB] Hit http://nova.clouds.archive.ubuntu.com trusty/main Sources Get:6 http://security.ubuntu.com trusty-security/universe Sources [10.8 kB] Get:7 http://security.ubuntu.com trusty-security/main amd64 Packages [146 kB] Hit http://nova.clouds.archive.ubuntu.com trusty/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/main Translation-en Hit http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en Get:8 http://security.ubuntu.com trusty-security/universe amd64 Packages [49.1 kB] Hit http://security.ubuntu.com trusty-security/main Translation-en Hit http://security.ubuntu.com trusty-security/universe Translation-en Ign http://nova.clouds.archive.ubuntu.com trusty/main Translation-en_US Ign http://nova.clouds.archive.ubuntu.com trusty/universe Translation-en_US Get:9 http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources [125 kB] Get:10 http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources [86.2 kB] Get:11 http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages [336 kB] Get:12 http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages [209 kB] Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main Translation-en Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe Translation-en Fetched 1,129 kB in 0s (1,852 kB/s) Reading package lists... sudo DEBIAN_FRONTEND=noninteractive apt-get -y \ --no-install-recommends install apache2 authbind bind9 bind9utils build-essential bzr-builddeb curl daemontools debhelper dh-apport distro-info dnsutils firefox freeipmi-tools gjs ipython isc-dhcp-common libjs-raphael libjs-yui3-full libjs-yui3-min libpq-dev make pep8 postgresql pyflakes python-amqplib python-bzrlib python-celery python-convoy python-crochet python-cssselect python-curtin python-dev python-distro-info python-django python-django-piston python-django-south python-djorm-ext-pgarray python-docutils python-extras python-fixtures python-flake8 python-formencode python-hivex python-httplib2 python-jinja2 python-jsonschema python-lockfile python-lxml python-mimeparse python-mock python-netaddr python-netifaces python-nose python-oauth python-oops python-oops-amqp python-oops-datedir-repo python-oops-twisted python-oops-wsgi python-openssl python-paramiko python-pexpect python-pip python-pocket-lint python-psycopg2 python-pyinotify python-seamicroclient python-simplejson python-simplestreams python-sphinx python-subunit python-tempita python-testresources python-testscenarios python-testtools python-twisted python-txamqp python-txtftp python-tz python-virtualenv python-yaml python-zope.interface syslinux-common tgt ubuntu-cloudimage-keyring wget xvfb Reading package lists... Building dependency tree... Reading state information... authbind is already the newest version. bind9 is already the newest version. bind9utils is already the newest version. build-essential is already the newest version. debhelper is already the newest version. distro-info is already the newest version. dnsutils is already the newest version. isc-dhcp-common is already the newest version. libjs-raphael is already the newest version. libjs-yui3-full is already the newest version. libjs-yui3-min is already the newest version. make is already the newest version. pep8 is already the newest version. postgresql is already the newest version. pyflakes is already the newest version. python-amqplib is already the newest version. python-celery is already the newest version. python-convoy is already the newest version. python-crochet is already the newest version. python-curtin is already the newest version. python-dev is already the newest version. python-distro-info is already the newest version. python-django-piston is already the newest version. python-django-south is already the newest version. python-djorm-ext-pgarray is already the newest version. python-docutils is already the newest version. python-extras is already the newest version. python-fixtures is already the newest version. python-formencode is already the newest version. python-httplib2 is already the newest version. python-jinja2 is already the newest version. python-jsonschema is already the newest version. python-lockfile is already the newest version. python-mimeparse is already the newest version. python-mock is already the newest version. python-netaddr is already the newest version. python-netifaces is already the newest version. python-nose is already the newest version. python-oauth is already the newest version. python-oops is already the newest version. python-oops-amqp is already the newest version. python-oops-datedir-repo is already the newest version. python-oops-twisted is already the newest version. python-oops-wsgi is already the newest version. python-openssl is already the newest version. python-paramiko is already the newest version. python-psycopg2 is already the newest version. python-pyinotify is already the newest version. python-simplejson is already the newest version. python-subunit is already the newest version. python-tempita is already the newest version. python-testresources is already the newest version. python-testscenarios is already the newest version. python-testtools is already the newest version. python-twisted is already the newest version. python-txamqp is already the newest version. python-txtftp is already the newest version. python-tz is already the newest version. python-yaml is already the newest version. python-zope.interface is already the newest version. syslinux-common is already the newest version. tgt is already the newest version. ubuntu-cloudimage-keyring is already the newest version. wget is already the newest version. bzr-builddeb is already the newest version. daemontools is already the newest version. ipython is already the newest version. python-cssselect is already the newest version. python-flake8 is already the newest version. python-hivex is already the newest version. python-pip is already the newest version. python-pocket-lint is already the newest version. python-virtualenv is already the newest version. apache2 is already the newest version. curl is already the newest version. dh-apport is already the newest version. firefox is already the newest version. freeipmi-tools is already the newest version. libpq-dev is already the newest version. python-bzrlib is already the newest version. python-django is already the newest version. python-lxml is already the newest version. python-pexpect is already the newest version. python-seamicroclient is already the newest version. python-simplestreams is already the newest version. python-sphinx is already the newest version. xvfb is already the newest version. gjs is already the newest version. The following package was automatically installed and is no longer required: librabbitmq1 Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded. sudo DEBIAN_FRONTEND=noninteractive apt-get -y \ purge Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: librabbitmq1 Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded. make -C acceptance clean make[1]: Entering directory `/tmp/tarmac/branch.nIzlfQ/acceptance' rm -f -r source build *.build *.changes *.deb make[1]: Leaving directory `/tmp/tarmac/branch.nIzlfQ/acceptance' find . -type f -name '*.py[co]' -print0 | xargs -r0 rm -f find . -type f -name '*~' -print0 | xargs -r0 rm -f find . -type f -name dropin.cache -print0 | xargs -r0 rm -f rm -f -r media/demo/* media/development rm -f src/maasserver/static/js/enums.js rm -f *.log rm -f docs/api.rst rm -f -r docs/_autosummary docs/_build rm -f -r man/.doctrees rm -f -r bin include lib local rm -f -r eggs develop-eggs rm -f -r build dist logs/* parts rm -f tags TAGS .installed.cfg rm -f -r *.egg *.egg-info src/*.egg-info rm -f -r run/* services/*/supervise virtualenv --python=python2.7 --system-site-packages /tmp/tarmac/branch.nIzlfQ New python executable in /tmp/tarmac/branch.nIzlfQ/bin/python2.7 Also creating executable in /tmp/tarmac/branch.nIzlfQ/bin/python Installing setuptools, pip...done. Running virtualenv with interpreter /usr/bin/python2.7 bin/python -m pip --quiet install --ignore-installed \ --no-dependencies bootstrap/zc.buildout-1.5.2.tar.gz rm -f -f README.txt # zc.buildout installs an annoying README.txt. bin/buildout install database Creating directory '/tmp/tarmac/branch.nIzlfQ/parts'. Creating directory '/tmp/tarmac/branch.nIzlfQ/develop-eggs'. Installing database. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/database'. bin/buildout install repl Installing repl. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/ipy'. Generated interpreter '/tmp/tarmac/branch.nIzlfQ/bin/py'. bin/py -m src/maasserver/utils/jsenums src/maasserver/enum.py src/metadataserver/enum.py > src/maasserver/static/js/enums.js bin/buildout install maas Installing maas. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/maas-region-admin'. bin/buildout install maas-test Installing maas-test. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/test.maas'. bin/buildout install maascli Installing maascli. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/maas'. bin/buildout install maascli-test Installing maascli-test. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/test.maascli'. bin/buildout install maastesting-test Installing maastesting-test. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/test.maastesting'. bin/buildout install pserv Installing pserv. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/maas-provision'. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/twistd.pserv'. bin/buildout install pserv-test Installing pserv-test. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/test.pserv'. bin/buildout install config-test Installing config-test. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/test.config'. bin/buildout install maas-probe-dhcp Installing maas-probe-dhcp. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/maas-probe-dhcp'. make -C acceptance clean make[1]: Entering directory `/tmp/tarmac/branch.nIzlfQ/acceptance' rm -f -r source build *.build *.changes *.deb make[1]: Leaving directory `/tmp/tarmac/branch.nIzlfQ/acceptance' find . -type f -name '*.py[co]' -print0 | xargs -r0 rm -f find . -type f -name '*~' -print0 | xargs -r0 rm -f find . -type f -name dropin.cache -print0 | xargs -r0 rm -f rm -f -r media/demo/* media/development rm -f src/maasserver/static/js/enums.js rm -f *.log rm -f docs/api.rst rm -f -r docs/_autosummary docs/_build rm -f -r man/.doctrees bin/py -m src/maasserver/utils/jsenums src/maasserver/enum.py src/metadataserver/enum.py > src/maasserver/static/js/enums.js bin/buildout install maas Updating maas. bin/buildout install maas-test Updating maas-test. echo bin/test.config bin/test.maas bin/test.maascli bin/test.maastesting bin/test.pserv | xargs -n1 env nosetests --exclude=provisioningserver --exclude=maastesting --exclude=maascli --logging-level=INFO --verbosity=1 Creating test database for alias 'default'... Destroying test database for alias 'default'... .............................................. ---------------------------------------------------------------------- Ran 46 tests in 0.482s OK ..S....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SS..................................................................................................................................................................................... ====================================================================== FAIL: maasserver.api.tests.test_nodegroup.TestNodeGroupAPI.test_import_boot_images_for_all_accepted_clusters ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/tmp/tarmac/branch.nIzlfQ/src/maasserver/api/tests/test_nodegroup.py", line 242, in test_import_boot_images_for_all_accepted_clusters self.assertItemsEqual(expected_uuids, called_uuids) File "/usr/lib/python2.7/unittest/case.py", line 903, in assertItemsEqual self.fail(msg) File "/home/ubuntu/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 415, in fail raise self.failureException(msg) AssertionError: Element counts were not equal: First has 1, Second has 2: u'a66a86a4-4b01-11e4-ab96-fa163ee59350' First has 1, Second has 2: u'a66cb3d4-4b01-11e4-ab96-fa163ee59350' ====================================================================== FAIL: maasserver.models.tests.test_bootsource.TestBootSource.test_calls_cache_boot_sources_on_create ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/tmp/tarmac/branch.nIzlfQ/src/maasserver/models/tests/test_bootsource.py", line 107, in test_calls_cache_boot_sources_on_create MockCalledOnceWith(1, deferToThread, _cache_boot_sources)) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: Expected to be called once. Called 2 times. ====================================================================== FAIL: maasserver.views.tests.test_nodes.NodeViewsTest.test_node_list_num_queries_is_independent_of_num_nodes ---------------------------------------------------------------------- _StringException: Traceback (most recent call last): File "/tmp/tarmac/branch.nIzlfQ/src/maasserver/views/tests/test_nodes.py", line 436, in test_node_list_num_queries_is_independent_of_num_nodes self.assertEqual(num_queries, num_bonus_queries) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: 19 != 20 ---------------------------------------------------------------------- Ran 3668 tests in 346.101s FAILED (SKIP=3, failures=3) .............................................................................................................................. ---------------------------------------------------------------------- Ran 126 tests in 2.146s OK .............................................................S..FF.................................................................................... ====================================================================== FAIL: maastesting.tests.test_lint.TestLint.test_that_imports_are_formatted ---------------------------------------------------------------------- _StringException: diff: {{{ --- /tmp/tarmac/branch.nIzlfQ/src/maasserver/tests/test_middleware.py +++ /tmp/tarmac/branch.nIzlfQ/.export.5CPuhj/src/maasserver/tests/test_middleware.py @@ -56,7 +56,11 @@ from maasserver.testing import extract_redirect from maasserver.testing.factory import factory from maasserver.testing.testcase import MAASServerTestCase -from maastesting.matchers import MockNotCalled, MockCallsMatch, MockCalledOnceWith +from maastesting.matchers import ( + MockCalledOnceWith, + MockCallsMatch, + MockNotCalled, + ) from maastesting.utils import sample_binary_data from mock import call from provisioningserver.rpc.exceptions import ( }}} stdout/err from `make --quiet -C /tmp/tarmac/branch.nIzlfQ/.export.5CPuhj format`: {{{src/maasserver/tests/test_middleware.py}}} Traceback (most recent call last): File "/tmp/tarmac/branch.nIzlfQ/src/maastesting/tests/test_lint.py", line 114, in test_that_imports_are_formatted "Some imports are not formatted; see the diff for the " File "/usr/lib/python2.7/unittest/case.py", line 412, in fail raise self.failureException(msg) AssertionError: Some imports are not formatted; see the diff for the missing changes. Use `make format` to address them. ====================================================================== FAIL: maastesting.tests.test_lint.TestLint.test_that_there_is_no_lint_in_the_tree ---------------------------------------------------------------------- _StringException: stdout/err from `make --quiet -C /tmp/tarmac/branch.nIzlfQ lint`: {{{ Installing flake8. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/flake8'. Generated script '/tmp/tarmac/branch.nIzlfQ/bin/flake8'. src/maasserver/tests/test_middleware.py:59:1: F401 'MockCallsMatch' imported but unused src/maasserver/tests/test_middleware.py:59:80: E501 line too long (82 > 79 characters) src/maasserver/tests/test_middleware.py:61:1: F401 'call' imported but unused make[1]: *** [lint-py] Error 123 }}} Traceback (most recent call last): File "/tmp/tarmac/branch.nIzlfQ/src/maastesting/tests/test_lint.py", line 58, in test_that_there_is_no_lint_in_the_tree self.execute("make", "--quiet", "-C", root, "lint") File "/tmp/tarmac/branch.nIzlfQ/src/maastesting/tests/test_lint.py", line 55, in execute self.assertEqual(0, process.wait(), "(return code is not zero)") File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: 0 != 2: (return code is not zero) ---------------------------------------------------------------------- Ran 150 tests in 33.463s FAILED (SKIP=1, failures=2) ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ---------------------------------------------------------------------- Ran 1589 tests in 18.820s OK make: *** [test] Error 123