replication-pause action fails importing urllib.parse
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Juju Charms Collection) |
Fix Released
|
High
|
Stuart Bishop |
Bug Description
If you try to pause the replication of a secondary unit, the action fails trying to import urllib.parse.
This is what I did to reproduce the issue:
landscape:
Added charm "cs:trusty/
landscape:
NAME STATUS EXPOSED CHARM
postgresql active false cs:trusty/
[Units]
ID WORKLOAD-STATE AGENT-STATE VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
postgresql/0 active idle 1.25.0.1 1 5432/tcp 10.5.20.86 Live master
postgresql/1 active idle 1.25.0.1 2 5432/tcp 10.5.25.84 Live secondary
[Machines]
ID STATE VERSION DNS INS-ID SERIES HARDWARE
0 started 1.25.0.1 localhost localhost trusty
1 started 1.25.0.1 10.5.20.86 bjorn-local-
2 started 1.25.0.1 10.5.25.84 bjorn-local-
landscape:
Action queued with id: e8b21efe-
landscape:
message: exit status 1
status: failed
timing:
completed: 2015-12-17 11:45:53 +0200 EET
enqueued: 2015-12-17 11:45:52 +0200 EET
started: 2015-12-17 11:45:53 +0200 EET
This is in the unit-postgresql
2015-12-17 09:07:17 INFO replication-pause Traceback (most recent call last):
2015-12-17 09:07:17 INFO replication-pause File "/var/lib/
2015-12-17 09:07:17 INFO replication-pause import postgresql
2015-12-17 09:07:17 INFO replication-pause File "/var/lib/
2015-12-17 09:07:17 INFO replication-pause import wal_e
2015-12-17 09:07:17 INFO replication-pause File "/var/lib/
2015-12-17 09:07:17 INFO replication-pause from urllib.parse import urlparse
2015-12-17 09:07:17 INFO replication-pause ImportError: No module named parse
2015-12-17 09:30:47 INFO replication-pause Traceback (most recent call last):
2015-12-17 09:30:47 INFO replication-pause File "/var/lib/
2015-12-17 09:30:47 INFO replication-pause import postgresql
2015-12-17 09:30:47 INFO replication-pause File "/var/lib/
2015-12-17 09:30:47 INFO replication-pause import wal_e
2015-12-17 09:30:47 INFO replication-pause File "/var/lib/
2015-12-17 09:30:47 INFO replication-pause from urllib.parse import urlparse
2015-12-17 09:30:47 INFO replication-pause ImportError: No module named parse
2015-12-17 09:31:22 INFO replication-resume Traceback (most recent call last):
2015-12-17 09:31:22 INFO replication-resume File "/var/lib/
2015-12-17 09:31:22 INFO replication-resume import postgresql
2015-12-17 09:31:22 INFO replication-resume File "/var/lib/
2015-12-17 09:31:22 INFO replication-resume import wal_e
2015-12-17 09:31:22 INFO replication-resume File "/var/lib/
2015-12-17 09:31:22 INFO replication-resume from urllib.parse import urlparse
2015-12-17 09:31:22 INFO replication-resume ImportError: No module named parse
2015-12-17 09:34:07 INFO replication-pause Traceback (most recent call last):
2015-12-17 09:34:07 INFO replication-pause File "/var/lib/
2015-12-17 09:34:07 INFO replication-pause import postgresql
2015-12-17 09:34:07 INFO replication-pause File "/var/lib/
2015-12-17 09:34:07 INFO replication-pause import wal_e
2015-12-17 09:34:07 INFO replication-pause File "/var/lib/
2015-12-17 09:34:07 INFO replication-pause from urllib.parse import urlparse
2015-12-17 09:34:07 INFO replication-pause ImportError: No module named parse
2015-12-17 09:34:42 INFO replication-resume Traceback (most recent call last):
2015-12-17 09:34:42 INFO replication-resume File "/var/lib/
2015-12-17 09:34:42 INFO replication-resume import postgresql
2015-12-17 09:34:42 INFO replication-resume File "/var/lib/
2015-12-17 09:34:42 INFO replication-resume import wal_e
2015-12-17 09:34:42 INFO replication-resume File "/var/lib/
2015-12-17 09:34:42 INFO replication-resume from urllib.parse import urlparse
2015-12-17 09:34:42 INFO replication-resume ImportError: No module named parse
Related branches
Changed in postgresql (Juju Charms Collection): | |
assignee: | nobody → Stuart Bishop (stub) |
status: | Triaged → Fix Released |
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