Files
nova/releasenotes/notes/placement-database-5aa94ece29eab820.yaml
Roman Podoliaka 1b5f9f8203 Optional separate database for placement API
If 'connection' is set in the 'placement_database' conf group use
that as the connection URL for the placement database. Otherwise if
it is None, the default, then use the entire api_database conf group
to configure a database connection.

This works by:

* adding a 'placement sync' and 'placement version' command to
  nova-manage

* adding placement_migrations that that sync will run

* adding a placement_database config group with the relevant
  database configuration settings

* adding a placement_context_manager. If
  CONF.placement_database.connection is None this is the same as
  the api_context_manager, otherwise it is a new one from its own config

* adjust nova/tests/fixtures to be aware of a 'placement' database
  and the placement_context_manager

This version of this change differs from others by not requiring
separate placement commands for migration, instead using existing
tooling, which makes the size of the change a bit smaller and also
addresses problems with the test fixtures needing to be too aware of
what migration code to run. Now it runs the same code.

This functionality is being provided to allow deployers to choose
between establishing a new database now or requiring a migration
later. The default is migration later.

This is a modification of Id93cb93a0f4e8667c8e7848aa8cff1d994c2c364
and I3290e26d0a212911f8ef386418b9fa08c685380b.

Change-Id: Ice03144376c9868c064e4393d531510615fc6fc1
Co-Authored-By: Chris Dent <cdent@anticdent.org>
Partially-Implements: blueprint generic-resource-pools
2016-08-11 13:30:25 +00:00

23 lines
960 B
YAML

---
features:
- |
An optional configuration group placement_database can be used in
nova.conf to configure a separate database for use with the placement
API.
We recommend setting the placement_database.connection setting to
a non-None value in order to ease upgrade and migration of Nova in
Ocata. Although we leave the default value of this setting to None
-- in order to not break any deployments that use continuous delivery
models -- setting this to a non-None value now will avoid a potentially
lengthy data migration in the future.
If placement_database.connection has a value this will be used as the
connection URL for the placement database. Before launching the
placement API service, the 'nova-manage placement sync' command
must be run to create the necessary tables.
When the setting is None the existing settings for the api_database
will be used for hosting placement API data.