charm unit tests fail on bionic or later

Bug #1802926 reported by Tom Haddon on 2018-11-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MongoDB Charm
Medium
Unassigned

Bug Description

Running tests inside a xenial LXC works okay, but running tests on bionic or later fails:

======================================================================
ERROR: test_join_replset (unit_tests.test_hooks.MongoHooksTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mthaddon/repos/mongodb-charm/mongodb-charm/.venv/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/mthaddon/repos/mongodb-charm/mongodb-charm/unit_tests/test_hooks.py", line 131, in test_join_replset
    hooks.join_replset(master_node='mongo.local', host='fake-host')
  File "hooks/hooks.py", line 552, in join_replset
    retVal = rs_add(host)
  File "hooks/hooks.py", line 1220, in rs_add
    run(cmd_line)
  File "hooks/hooks.py", line 1611, in run
    sys.exit(e.returncode)
SystemExit: 127

Related branches

Tom Haddon (mthaddon) on 2018-11-12
Changed in mongodb-charm:
status: New → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers