lp:~mew/charms/precise/postgresql/charmtool-path-fix

Created by Matthew Wedgwood and last modified
Get this branch:
bzr branch lp:~mew/charms/precise/postgresql/charmtool-path-fix
Only Matthew Wedgwood can upload to this branch. If you are Matthew Wedgwood please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Matthew Wedgwood
Status:
Development

Recent revisions

37. By Matthew Wedgwood

must call juju tools without a hard-coded path

34. By Mark Mims

reincluding revision

32. By Marco Ceppi

Marco Ceppi 2013-02-12 Added check for ip or hostname

31. By Marco Ceppi

Marco Ceppi 2013-02-06 Install postresql-contrib

30. By Marco Ceppi

Marco Ceppi 2013-02-06 Since we're working with explicit addresses don't appent /32

29. By Juan L. Negron

Merging Sidnei's bag of tricks. MP:143097

28. By Juan L. Negron

While putting together a charm with a postgresql relation, I ran into a situation that appears to have been anticipated by a TODO comment in the postgresql charm:

    # XXX: This appears to reset the password every time
    # this might not end well

Specifically, I found that the password was being reset (IIRC by the db-{,admin-}relation-changed hook) after I'd made use of it in my charm, and of course then everything went wrong.

There doesn't seem any particularly nice way to deal with this; I don't think we can rely on the password being cached in the relation, because multiple relations might make use of the same user. But given the existing password handling, it doesn't seem that bad to just cache it in a file readable only by root, and this fixed the problem for me. Of course I'm open to better suggestions. MP: 135128

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:charms/postgresql
This branch contains Public information 
Everyone can see this information.

Subscribers