"sql_connection = ://:@/" is left when database relation is not ready

Bug #1414547 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quantum-gateway (Juju Charms Collection)
Fix Released
Medium
Liang Chen

Bug Description

parts/database is not conditioned by "{% if database_host -%}". So "sql_connection = ://:@/" will be left in nova.conf when database relation is not ready.

http://bazaar.launchpad.net/~openstack-charmers/charms/trusty/quantum-gateway/next/view/head:/templates/parts/database
> sql_connection = {{ database_type }}://{{ database_user }}:{{ database_password }}@{{ database_host }}/{{ database }}{% if database_ssl_ca %}?ssl_ca={{ database_ssl_ca }}{% if database_ssl_cert %}&ssl_cert={{ database_ssl_cert }}&ssl_key={{ database_ssl_key }}{% endif %}{% endif %}

Also is it necessary to have database access from nova-api-metadata? I can get metadata without database relation.

Tags: openstack cts

Related branches

Nobuto Murata (nobuto)
tags: added: cts openstack
Revision history for this message
James Page (james-page) wrote :

Nobuto

I think that you are probably correct - metadata is probably retrieved using RPC + the nova conductor.

James Page (james-page)
Changed in quantum-gateway (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Medium
milestone: none → 15.04
Liang Chen (cbjchen)
Changed in quantum-gateway (Juju Charms Collection):
assignee: nobody → Liang Chen (cbjchen)
Revision history for this message
Liang Chen (cbjchen) wrote :

I have tested it. the sql_connection isn't necessary indeed. will upload a patch later.

Liang Chen (cbjchen)
Changed in quantum-gateway (Juju Charms Collection):
status: Triaged → In Progress
James Page (james-page)
Changed in quantum-gateway (Juju Charms Collection):
milestone: 15.04 → 15.07
Liang Chen (cbjchen)
Changed in quantum-gateway (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in quantum-gateway (Juju Charms Collection):
status: Fix Committed → 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.