Activity log for bug #1273636

Date Who What changed Old value New value Message
2014-01-28 11:03:25 Diogo Matsubara bug added bug
2014-01-28 11:13:21 Diogo Matsubara description I'm working on the test-catalog charm to support postgresql in preparation for the move of the OIL infrastructure to prodstack and the test-catalog relation with postgresql is triggering a race condition. The charms used are: lp:charms/postgresql (revno 82) and lp:~matsubara/charms/precise/test-catalog/swap-to-postgresql and the merge proposal is here: https://code.launchpad.net/~matsubara/charms/precise/test-catalog/swap-to-postgresql/+merge/203307 Steps to reproduce: juju deploy --repository . local:test-catalog juju deploy --repository . local:postgresql juju add-relation test-catalog:db postgresql:db At this point test-catalog's db-relation-changed fails with the following error: http://pastebin.ubuntu.com/6831296/ Using juju from my laptop to canonistack, I can't reproduce this error all the time, most of the time the db-relation hooks work as intended. Using juju from bastion (a machine inside the DC) and deploying against serverstack, I can reliably reproduce the error. If I add the following patch: http://pastebin.ubuntu.com/6831342/ to test-catalog, then most of the time I can get the db-relation hooks to just work as intended (i.e. the test-catalog-database script correctly initializes the db in PG). Any ideas on how to debug this further? Is the test-catalog changes in the MP just plain wrong? In theory (and based on the doc for the postgresql charm) allowed-units is the right way to verify the database is ready for access from related units. I'm working on the test-catalog charm to support postgresql in preparation for the move of the OIL infrastructure to prodstack and the test-catalog relation with postgresql is triggering a race condition. The charms used are: lp:charms/postgresql (revno 82) and lp:~matsubara/charms/precise/test-catalog/swap-to-postgresql and the merge proposal is here: https://code.launchpad.net/~matsubara/charms/precise/test-catalog/swap-to-postgresql/+merge/203307 Steps to reproduce: juju deploy --repository . local:test-catalog juju deploy --repository . local:postgresql juju add-relation test-catalog:db postgresql:db At this point test-catalog's db-relation-changed fails with the following error: http://pastebin.ubuntu.com/6831296/ Using juju from my laptop to canonistack, I can't reproduce this error all the time, most of the time the db-relation hooks work as intended. Using juju from bastion (a machine inside the DC) and deploying against serverstack, I can reliably reproduce the error. If I add the following patch: http://pastebin.ubuntu.com/6831342/ to test-catalog, then most of the time I can get the db-relation hooks to just work as intended (i.e. the test-catalog-database script correctly initializes the db in PG). Any ideas on how to debug this further? Is the test-catalog changes in the MP just plain wrong? In theory (and based on the doc for the postgresql charm) allowed-units is the right way to verify the database is ready for access from related units.
2014-01-29 05:57:34 Stuart Bishop charms: status New Triaged
2014-01-29 05:57:41 Stuart Bishop charms: importance Undecided Critical
2014-01-29 05:57:55 Stuart Bishop charms: status Triaged Incomplete
2014-01-29 11:13:38 Diogo Matsubara attachment added unit-postgresql-0.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3961616/+files/unit-postgresql-0.log
2014-01-29 11:13:53 Diogo Matsubara attachment added postgresql-9.1-main.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3961617/+files/postgresql-9.1-main.log
2014-01-29 11:14:05 Diogo Matsubara attachment added unit-test-catalog-0.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3961618/+files/unit-test-catalog-0.log
2014-01-30 06:25:27 Stuart Bishop charms: status Incomplete Triaged
2014-01-30 19:46:44 Diogo Matsubara attachment added unit-postgresql-0.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3963247/+files/unit-postgresql-0.log
2014-01-30 19:47:12 Diogo Matsubara attachment added unit-test-catalog-0.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3963248/+files/unit-test-catalog-0.log
2014-01-30 19:47:37 Diogo Matsubara attachment added postgresql-9.1-main.log https://bugs.launchpad.net/charms/+bug/1273636/+attachment/3963249/+files/postgresql-9.1-main.log
2014-02-05 12:25:53 Stuart Bishop charms: status Triaged In Progress
2014-02-05 12:27:20 Launchpad Janitor branch linked lp:~stub/charms/precise/postgresql/cleanups
2014-02-28 13:36:58 Marco Ceppi affects charms postgresql (Juju Charms Collection)
2014-03-02 09:53:47 Stuart Bishop postgresql (Juju Charms Collection): status In Progress Fix Released