charm mysql still using 'hostname -f'
Bug #901828 reported by
Adam Gandelman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-cloud-controller (Juju Charms Collection) |
Fix Released
|
Undecided
|
Adam Gandelman |
Bug Description
From hooks/shared-
relation-set db_host=$(hostname -f) password=$PASSWORD
juju-log "mysql - shared-db: Returning access to $DATABASE to $DB_USER@
This was used prior to '{unit, relation}-get private-address' Noticed this when was causing problems with local LXC provider since 'hostname -f' yields 'localhost' on all units while private-address is always the IP address.
Other charms making use of the shared-db interface need to be updated if (they haven't been already) to depend on 'relation-get private-address' instead of db_host from the relation.
Related branches
lp:~gandelman-a/charms/precise/nova-cloud-controller/trunk
- charmers: Pending requested
-
Diff: 222 lines (+120/-10)5 files modifiedconfig.yaml (+1/-1)
hooks/nova-cloud-controller-common (+32/-5)
hooks/nova-cloud-controller-relations (+84/-1)
metadata.yaml (+2/-2)
revision (+1/-1)
lp:~gandelman-a/charms/oneiric/nova-cloud-controller/901828
- Clint Byrum (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedhooks/nova-cloud-controller-relations (+1/-1)
affects: | charm → nova-cloud-controller (juju Charms Collection) |
Changed in nova-cloud-controller (juju Charms Collection): | |
assignee: | nobody → Adam Gandelman (gandelman-a) |
Changed in nova-cloud-controller (juju Charms Collection): | |
status: | New → Fix Released |
To post a comment you must log in.