Integration tests fail on xenial

Bug #1604944 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
Medium
Free Ekanayaka

Bug Description

The current charm store (cs:trusty/landscape-server-14) integration tests when run on a xenial machine:
$ time make integration-test
Checking for ...
juju-test: installed
Tree is up to date at revision 15 of branch bzr+ssh://bazaar.launchpad.net/~landscape/landscape-charm/bundles-stable
juju test --set-e -p LS_CHARM_SOURCE,JUJU_HOME,JUJU_ENV,PG_MANUAL_TUNING -v --timeout 3000s
juju-test INFO : Starting test run on local using Juju 1.25.5
juju-test DEBUG : Loading configuration options from testplan YAML
juju-test DEBUG : Creating a new Conductor
juju-test.conductor DEBUG : Starting a bootstrap for local, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e local
Bootstrapping environment "local"
Starting new instance for initial state server
Building tools to upload (1.25.5.1-xenial-amd64)
Installing Juju agent on bootstrap instance
[sudo] password for andreas:
Logging to /home/andreas/.juju/local/cloud-init-output.log on remote host
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-andreas-local)
Bootstrap agent installed
vmwarestack -> local
Bootstrap complete
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e local
juju-test.conductor DEBUG : State for 1.25.5: started
juju-test.conductor.01-basic DEBUG : Running 01-basic (tests/01-basic)
Running tests at level 1
Running layers.OneLandscapeUnitLayer tests:
  Set up layers.OneLandscapeUnitLayer 2016-07-20 16:35:29 Starting deployment of local
2016-07-20 16:35:29 Deploying services...
2016-07-20 16:35:29 Deploying service haproxy using cs:trusty/haproxy-16
2016-07-20 16:35:35 Deploying service landscape-server using /tmp/charmtumykgym/trusty/store
2016-07-20 16:35:39 Deploying service postgresql using cs:trusty/postgresql-40
2016-07-20 16:35:45 Deploying service rabbitmq-server using cs:trusty/rabbitmq-server-43
2016-07-20 16:39:57 Adding relations...
2016-07-20 16:39:57 Adding relation landscape-server <-> rabbitmq-server
2016-07-20 16:39:58 Adding relation landscape-server <-> haproxy
2016-07-20 16:39:58 Adding relation landscape-server:db <-> postgresql:db-admin
2016-07-20 16:40:58 Exposing service 'haproxy'
2016-07-20 16:40:59 Deployment complete in 329.47 seconds
in 6 minutes 56.288 seconds.
  Running:
 test_bootstrap (basic.test_actions.ActionsTest)
 test_pause_resume (basic.test_actions.ActionsTest)Traceback (most recent call last):
  File "tests/01-basic", line 5, in <module>
    main()
  File "/home/andreas/charms/store/tests/helpers.py", line 594, in main
    run(args=args)
  File "/usr/lib/python3/dist-packages/zope/testrunner/__init__.py", line 27, in run
    failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd)
  File "/usr/lib/python3/dist-packages/zope/testrunner/__init__.py", line 44, in run_internal
    runner.run()
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 171, in run
    self.run_tests()
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 253, in run_tests
    self.skipped, self.import_errors)
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 422, in run_layer
    import_errors)
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 342, in run_tests
    test(result)
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/case.py", line 619, in run
    result.stopTest(self)
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 850, in stopTest
    self.testTearDown()
  File "/usr/lib/python3/dist-packages/zope/testrunner/runner.py", line 775, in testTearDown
    layer.testTearDown()
  File "/home/andreas/charms/store/tests/layers.py", line 19, in testTearDown
    cls.environment.cleanUp()
  File "/usr/lib/python3/dist-packages/fixtures/fixture.py", line 125, in cleanUp
    return self._cleanups(raise_errors=raise_first)
TypeError: 'NoneType' object is not callable
juju-test.conductor.01-basic DEBUG :
juju-test.conductor.01-basic DEBUG : Got exit code: 1
juju-test.conductor.01-basic RESULT : ✘
juju-test.conductor INFO : Breaking here as requested by --set-e
juju-test INFO : Results: 0 passed, 1 failed, 0 errored
Makefile:43: recipe for target 'integration-test' failed
make: *** [integration-test] Error 1

real 9m5.878s
user 1m1.260s
sys 0m10.052s

For this run, I had LS_CHARM_SOURCE set to ppa:landscape/16.06

$ juju status --format=tabular
[Services]
NAME STATUS EXPOSED CHARM
haproxy unknown true cs:trusty/haproxy-16
landscape-server active false local:trusty/landscape-server-0
postgresql active false cs:trusty/postgresql-40
rabbitmq-server active false cs:trusty/rabbitmq-server-43

[Units]
ID WORKLOAD-STATE AGENT-STATE VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
haproxy/0 unknown idle 1.25.5.1 1 80/tcp,443/tcp,10000/tcp 10.0.3.17
landscape-server/0 active idle 1.25.5.1 2 10.0.3.150
postgresql/0 active idle 1.25.5.1 3 5432/tcp 10.0.3.68 Live master
rabbitmq-server/0 active idle 1.25.5.1 4 5672/tcp 10.0.3.74 Unit is ready

[Machines]
ID STATE VERSION DNS INS-ID SERIES HARDWARE
0 started 1.25.5.1 localhost localhost xenial
1 started 1.25.5.1 10.0.3.17 andreas-local-machine-1 trusty arch=amd64
2 started 1.25.5.1 10.0.3.150 andreas-local-machine-2 trusty arch=amd64
3 started 1.25.5.1 10.0.3.68 andreas-local-machine-3 trusty arch=amd64
4 started 1.25.5.1 10.0.3.74 andreas-local-machine-4 trusty arch=amd64

Chris Glass (tribaal)
Changed in landscape-charm:
assignee: nobody → Chris Glass (tribaal)
status: New → In Progress
tags: added: kanban
tags: removed: kanban
Changed in landscape-charm:
assignee: Chris Glass (tribaal) → Free Ekanayaka (free.ekanayaka)
importance: Undecided → Medium
Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :
Changed in landscape-charm:
status: In Progress → Fix Committed
Simon Poirier (simpoir)
Changed in landscape-charm:
status: Fix Committed → Fix Released
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.