memcached fails to enable ufw when there is no IPv6 support

Bug #1403567 reported by Matt Bruzek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
memcached (Juju Charms Collection)
Fix Released
Undecided
Felipe Reyes
Trusty
Fix Released
Undecided
Unassigned

Bug Description

In an effort to improve quality, we are testing all charms in an automated process.

According to the latest test results by charm http://reports.vapour.ws/charm-tests-by-charm this charm is failing automated testing.

The output can be found here:

http://reports.vapour.ws/charm-tests/charm-bundle-test-10651-results

The 10_deploy_test.py failed with the following output:

* memcached is running
The memcached service is running.
An error occurred communicating with memcached over telnet ec2-54-173-144-188.compute-1.amazonaws.com:11212 [Errno 110] Connection timed out
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/charm-bundle-test/tmpW8rmfw/memcached/tests/10_deploy_test.py", line 77, in <module>
    tn = telnetlib.Telnet(memcached_address, memcached_port)
  File "/usr/lib/python3.4/telnetlib.py", line 221, in __init__
    self.open(host, port, timeout)
  File "/usr/lib/python3.4/telnetlib.py", line 237, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "/usr/lib/python3.4/socket.py", line 509, in create_connection
    raise err
  File "/usr/lib/python3.4/socket.py", line 500, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/charm-bundle-test/tmpW8rmfw/memcached/tests/10_deploy_test.py", line 110, in <module>
    amulet.raise_status(amulet.FAIL, msg=message)
  File "/usr/lib/python3/dist-packages/amulet/helpers.py", line 140, in raise_status
    sys.exit(code)
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/charm-bundle-test/tmpW8rmfw/memcached/tests/10_deploy_test.py", line 112, in <module>
    tn.close()
NameError: name 'tn' is not defined

Please investigate this failure and fix the test or the code so it passes automated testing.

Related branches

Matt Bruzek (mbruzek)
Changed in memcached (Charms Trusty):
status: New → Triaged
Changed in memcached (Juju Charms Collection):
status: New → Triaged
Felipe Reyes (freyes)
Changed in memcached (Juju Charms Collection):
assignee: nobody → Felipe Reyes (freyes)
tags: added: cts
Felipe Reyes (freyes)
Changed in memcached (Juju Charms Collection):
status: Triaged → In Progress
summary: - The memcached charm fails automated testing
+ memcached fails to enable ufw when there is no IPv6 support
Revision history for this message
Felipe Reyes (freyes) wrote :

The problem is running 'ufw enable' when there is no IPv6 support, before trying to start ufw, IPv6 has to be disabled in /etc/default/ufw.

Revision history for this message
Antonio Rosales (arosales) wrote :

Note, it looks like @Felipe has this bug in progress to be fixed to resolve charm testing failures.

Thanks @Felipe!

Changed in memcached (Juju Charms Collection):
status: In Progress → Fix Released
Changed in memcached (Charms Trusty):
status: Triaged → 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.