Misleading error message ("Missing required data: database_password")

Bug #1577755 reported by Junien Fridrick on 2016-05-03
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Charm Helpers
James Page
OpenStack neutron-api charm
neutron-api (Juju Charms Collection)

Bug Description


While looking at "juju debug-log" on an idle, working OpenStack cluster, I noticed disturbing messages :
unit-neutron-api-2[913]: 2016-05-03 12:10:07 INFO unit.neutron-api/2.juju-log server.go:268 Missing required data: database_password

After some investigation, it appears that these messages are bogus, and are due to the neutron_plugins() function, found at

This function instantiates a SharedDBContext with relation_prefix='neutron', however the actual relation is (in my cluster at least) not prefixed :

$ juju run --unit neutron-api/0 "relation-get -r shared-db:42 - mysql/2"
allowed_units: neutron-api/0 neutron-api/1 neutron-api/2
db_host: 10.X.Y.Z
password: <some random characters>
private-address: 10.X.Y.Z

As I understand it, the database bits are set up in neutron_api_utils.py ( https://bazaar.launchpad.net/~openstack-charmers/charms/trusty/neutron-api/trunk/view/head:/hooks/neutron_api_utils.py?start_revid=204#L143 ), so the all the "contexts" assignments in /hooks/charmhelpers/contrib/openstack/neutron.py can probably be removed.

For what it's worth, we're running with neutron packages version 2:7.0.3-0ubuntu1~cloud0


James Page (james-page) on 2017-02-23
Changed in neutron-api (Juju Charms Collection):
status: New → Invalid
James Page (james-page) wrote :
Changed in charm-neutron-api:
status: New → Confirmed
importance: Undecided → Medium
Changed in charm-helpers:
status: New → Triaged
importance: Undecided → Medium
Changed in charm-neutron-api:
milestone: none → 18.02
Changed in charm-helpers:
status: Triaged → In Progress
assignee: nobody → James Page (james-page)
Ryan Beisner (1chb1n) on 2018-03-09
Changed in charm-neutron-api:
milestone: 18.02 → 18.05
David Ames (thedac) on 2018-06-11
Changed in charm-neutron-api:
milestone: 18.05 → 18.08
James Page (james-page) on 2018-09-12
Changed in charm-neutron-api:
milestone: 18.08 → 18.11
David Ames (thedac) on 2018-11-20
Changed in charm-neutron-api:
milestone: 18.11 → 19.04
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers