charm mysql still using 'hostname -f'

Bug #901828 reported by Adam Gandelman
6
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-db-relations:58

  relation-set db_host=$(hostname -f) password=$PASSWORD
  juju-log "mysql - shared-db: Returning access to $DATABASE to $DB_USER@$REMOTE_HOST."

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

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.