Allow database module to support DATABASE section instead of DEFAULT

Bug #1171837 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Wishlist
Davanum Srinivas (DIMS)

Bug Description

Quantum uses DATABASE at the moment. This support would help the migration and remove the risk of problems moving forwards

Revision history for this message
Mark McLoughlin (markmc) wrote :

If we're to move the DB options into a group, the group's name should be 'database' not 'DATABASE' ... so we need to address https://blueprints.launchpad.net/oslo/+spec/cfg-lowercase-groups first

I'd also have a slight preference for 'db', but if 'database' helps quantum, then that's ok

Changed in oslo:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Mark McLoughlin (markmc) wrote :

Oh, forgot to mention what you need here is deprecated_group

  sql_opts = [
      cfg.StrOpt('sql_connection',
                            default=...,
                            help=...,
                            secret=True,
                            deprecated_group='DEFAULT'),
  ]

  CONF.register_opts(sql_opts, group='database')

It's pretty horrible that you need to add deprecated_group to all of these, maybe we could do e.g.

  class DbOpt(cfg.StrOpt):
      def __init__(self, name, **kwargs):
          super(DbOpt, self).__init__(name, deprecated_group='DEFAULT', **kwargs)

Revision history for this message
Gary Kotton (garyk) wrote :

This is a tricky one.
In Nova it is in the DEFAULT section and in the Quantum it is the DATABASE section. Ideally both should be supported.

Revision history for this message
Gary Kotton (garyk) wrote :

Nice suggestion.
Thanks
Gary

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/27345

Changed in oslo:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: Confirmed → In Progress
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/27345
Committed: http://github.com/openstack/oslo-incubator/commit/4ff33b0390fff7e623be7c2242002e32a47eb855
Submitter: Jenkins
Branch: master

commit 4ff33b0390fff7e623be7c2242002e32a47eb855
Author: Davanum Srinivas <email address hidden>
Date: Tue Apr 23 09:54:22 2013 -0400

    Specify database group instead of DEFAULT

    At the request of Quantum folks, Let us switch from DEFAULT to
    database for the database related options. This will help with
    migration etc.

    DocImpact

    Fixes LP# 1171837

    Change-Id: If602a6a7cc0f2a202632dd14574fea60dce4b589

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo:
milestone: havana-1 → 2013.2
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.