trove-manage does not default to /etc/trove/trove.conf

Bug #1308529 reported by Tom Fifield
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Expired
Medium
Unassigned

Bug Description

trove-manage does not default to using /etc/trove/trove.conf, meaning that by default, it will do things like create an sqlite database for trove-manage db_sync, regardless of what the user has specified in /etc/trove/trove.conf

Revision history for this message
Tom Fifield (fifieldt) wrote : Re: default DEFAULT/sql_connection setting overrides [database]/connection, but sql_connection is deprecated, trove-api fails to work

this could also be a problem with db_sync. checking./

description: updated
tags: added: icehouse-rc-potential
description: updated
summary: default DEFAULT/sql_connection setting overrides [database]/connection,
- but sql_connection is deprecated
+ but sql_connection is deprecated, trove-api fails to work
Revision history for this message
Tom Fifield (fifieldt) wrote :

 trove-manage db_sync

creates a trove_test.sqlite file even if both sql_connection and [database]/connection are specified

tags: removed: icehouse-rc-potential
Changed in trove:
status: New → Incomplete
Revision history for this message
Tom Fifield (fifieldt) wrote :

Yeah, the issue is that trove-manage does not default to /etc/trove/trove.conf

summary: - default DEFAULT/sql_connection setting overrides [database]/connection,
- but sql_connection is deprecated, trove-api fails to work
+ trove-manage does not default to /etc/trove/trove.conf
description: updated
Changed in trove:
status: Incomplete → New
Changed in trove:
status: New → Confirmed
Changed in trove:
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in trove:
assignee: nobody → Shuichiro MAKIGAKI (shuichiro-makigaki)
Revision history for this message
Shuichiro MAKIGAKI (shuichiro-makigaki) wrote :

Hi,

I failed to reproduce this issue on git HEAD (30eebb64c). It seems trove-manage already reads /etc/trove/trove.conf as default config.
I think this bug will be "Incomplete" status.

My test is:

In /etc/trove/trove.conf,
~
sql_connection = sqlite:///trove_config_default.sqlite
~

and, type
$ trove-manage db_sync

then, it creates trove_config_default.sqlite:
$ ls trove_config_default.sqlite
trove_config_default.sqlite

Please correct me if my test has any problems.

Changed in trove:
status: Triaged → Incomplete
Changed in trove:
assignee: Shuichiro MAKIGAKI (shuichiro-makigaki) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Trove because there has been no activity for 60 days.]

Changed in trove:
status: Incomplete → Expired
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.