The traceback in the description and the log files are from different deployments. Both were done using the local provider and the template lxc isn't clean, in that it has some packages pre-installed. Re-running the tests against the MAAS provider gives the following error in the logs:
2015-12-17 13:05:20 INFO replication-pause Traceback (most recent call last):
2015-12-17 13:05:20 INFO replication-pause File "/var/lib/juju/agents/unit-postgresql-0/charm/actions/replication-pause", line 29, in <module>
2015-12-17 13:05:20 INFO replication-pause import postgresql
2015-12-17 13:05:20 INFO replication-pause File "/var/lib/juju/agents/unit-postgresql-0/charm/hooks/postgresql.py", line 28, in <module>
2015-12-17 13:05:20 INFO replication-pause import psycopg2
2015-12-17 13:05:20 INFO replication-pause ImportError: No module named psycopg2
The traceback in the description and the log files are from different deployments. Both were done using the local provider and the template lxc isn't clean, in that it has some packages pre-installed. Re-running the tests against the MAAS provider gives the following error in the logs:
2015-12-17 13:05:20 INFO replication-pause Traceback (most recent call last): juju/agents/ unit-postgresql -0/charm/ actions/ replication- pause", line 29, in <module> juju/agents/ unit-postgresql -0/charm/ hooks/postgresq l.py", line 28, in <module>
2015-12-17 13:05:20 INFO replication-pause File "/var/lib/
2015-12-17 13:05:20 INFO replication-pause import postgresql
2015-12-17 13:05:20 INFO replication-pause File "/var/lib/
2015-12-17 13:05:20 INFO replication-pause import psycopg2
2015-12-17 13:05:20 INFO replication-pause ImportError: No module named psycopg2