Missing import causes Apache relation failure

Bug #1611186 reported by Stuart Bishop
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Invalid
Critical
Unassigned
apache2 (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

Looks like we are missing the Python OpenSSL library

2016-08-08 18:14:42 INFO juju-log apache-website:12: Writing file /etc/apache2/sites-available/firewall.admin.canonical.com_https.conf with config and relation data
2016-08-08 18:14:42 INFO apache-website-relation-changed Site firewall.admin.canonical.com_https already enabled
2016-08-08 18:14:42 INFO apache-website-relation-changed Traceback (most recent call last):
2016-08-08 18:14:42 INFO apache-website-relation-changed File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/apache-website-relation-changed", line 1088, in <module>
2016-08-08 18:14:42 INFO apache-website-relation-changed main(hook_name)
2016-08-08 18:14:42 INFO apache-website-relation-changed File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/apache-website-relation-changed", line 1069, in main
2016-08-08 18:14:42 INFO apache-website-relation-changed config_changed()
2016-08-08 18:14:42 INFO apache-website-relation-changed File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/apache-website-relation-changed", line 666, in config_changed
2016-08-08 18:14:42 INFO apache-website-relation-changed if is_selfsigned_cert_stale(config_data, cert_file, key_file):
2016-08-08 18:14:42 INFO apache-website-relation-changed File "/var/lib/juju/agents/unit-apache2-0/charm/hooks/apache-website-relation-changed", line 217, in is_selfsigned_cert_stale
2016-08-08 18:14:42 INFO apache-website-relation-changed from OpenSSL import crypto
2016-08-08 18:14:42 INFO apache-website-relation-changed ImportError: No module named OpenSSL
2016-08-08 18:14:43 ERROR juju.worker.uniter.operation runhook.go:107 hook "apache-website-relation-changed" failed: exit status 1

Tags: canonical-is
Stuart Bishop (stub)
Changed in telegraf-charm:
status: New → Triaged
importance: Undecided → Critical
Stuart Bishop (stub)
Changed in telegraf-charm:
status: Triaged → Invalid
tags: added: canonical-is
Revision history for this message
Tom Haddon (mthaddon) wrote :

I've confirmed this is still an issue in cs:apache2 and is triggered if you're using the self-signed certificate option

Revision history for this message
Tom Haddon (mthaddon) wrote :

Adding apt_get_install("python-openssl") to the install_hook function in hooks/hooks.py should fix it.

Changed in apache2 (Juju Charms Collection):
status: New → Confirmed
Revision history for this message
Tom Haddon (mthaddon) wrote :

We've fixed this in cs:~apache2-charmers/apache2 and are requesting promulgation of that charm. The location for bugs will change as a result too.

Haw Loeung (hloeung)
Changed in apache2 (Juju Charms Collection):
status: Confirmed → 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.