tvansteenburgh@trusty-vm:/tmp/charm-helpers> bzr revno
455
tvansteenburgh@trusty-vm:/tmp/charm-helpers> make test
Checking for Python syntax...
Py2 OK
Py3 OK
Starting Py2 tests...
.venv/bin/nosetests -s --nologcapture tests/
.............................................................................................................................................................................................................................juju-log: INFO: Loading kernel module ip6_tables
modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted
Ejuju-log: INFO: Loading kernel module ip6_tables
modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted
E.........E........juju-log: INFO: Loading kernel module ip6_tables
modprobe: ERROR: could not insert 'ip6_tables': Operation not permitted
E............................................................................................................................................................................................................................................................................................................................................................................
.............................................................................................................................................................................................................................................................................................................................................................................
...............................................................................................................
======================================================================
ERROR: test_enable_fail (tests.contrib.network.test_ufw.TestUFW)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/tmp/charm-helpers/tests/contrib/network/test_ufw.py", line 62, in test_enable_fail
self.assertFalse(ufw.enable())
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 136, in enable
if not is_ipv6_ok(soft_fail):
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 101, in is_ipv6_ok
raise UFWIPv6Error("IPv6 firewall support broken")
UFWIPv6Error: IPv6 firewall support broken
======================================================================
ERROR: test_enable_ok (tests.contrib.network.test_ufw.TestUFW)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/tmp/charm-helpers/tests/contrib/network/test_ufw.py", line 48, in test_enable_ok
self.assertTrue(ufw.enable())
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 136, in enable
if not is_ipv6_ok(soft_fail):
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 101, in is_ipv6_ok
raise UFWIPv6Error("IPv6 firewall support broken")
UFWIPv6Error: IPv6 firewall support broken
======================================================================
ERROR: test_no_ip6_tables (tests.contrib.network.test_ufw.TestUFW)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/tmp/charm-helpers/tests/contrib/network/test_ufw.py", line 324, in test_no_ip6_tables
self.assertTrue(ufw.enable())
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 136, in enable
if not is_ipv6_ok(soft_fail):
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 90, in is_ipv6_ok
modprobe('ip6_tables')
File "/tmp/charm-helpers/charmhelpers/core/kernel.py", line 39, in modprobe
with open('/etc/modules', 'r+') as modules:
IOError: [Errno 13] Permission denied: '/etc/modules'
======================================================================
ERROR: test_with_ipv6 (tests.contrib.network.test_ufw.TestUFW)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/charm-helpers/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/tmp/charm-helpers/tests/contrib/network/test_ufw.py", line 408, in test_with_ipv6
ufw.enable()
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 136, in enable
if not is_ipv6_ok(soft_fail):
File "/tmp/charm-helpers/charmhelpers/contrib/network/ufw.py", line 101, in is_ipv6_ok
raise UFWIPv6Error("IPv6 firewall support broken")
UFWIPv6Error: IPv6 firewall support broken