1429760d65
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. When placement_database.connection is not None a replica of the structure of the API database is used, using the same migrations used for the API database. A placement_context_manager is added and used by the OVO objects in nova.api.openstack.placement.objects.*. If there is no separate placement database, this is still used, but points to the API database. nova.test and nova.test.fixtures are adjusted to add awareness of the placement database. 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. A reno is added to explain the existence of the configuration setting. This change returns the behavior removed by the revert in commit 39fb302fd9c8fc57d3e4bea1c60a02ad5067163f but done in a more appropriate way. Note that with the advent of the nova-status command, which checks to see if placement is "ready" the tests here had to be adjusted. If we do allow a separate database the code will now check the separate database (if configured), but nothing is done with regard to migrating from the api to placement database or checking that. blueprint placement-extract Change-Id: I7e1e89cd66397883453935dcf7172d977bf82e84 Implements: blueprint optional-placement-database Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com> |
||
---|---|---|
.. | ||
add-aggregate-type-extra-specs-affinity-filter-79a2d3ee152b8ecd.yaml | ||
aggregate-uuid-generation-1f029af7a9af519b.yaml | ||
aggregates-moved-to-api-database-e1bd30909aaf79d3.yaml | ||
allocation_candidates_support_member_of-92f7e1440ed63fe7.yaml | ||
allocation-candidates-limit-37fe5c2ce57daf7f.yaml | ||
allocation-candidates-traits-1adf079ed0c6563c.yaml | ||
allow-reserved-equal-total-inventory-fe93584dd28c460d.yaml | ||
bp-granular-placement-policy-65722fc6d7cb1359.yaml | ||
bp-symmetric-allocations-6ff7b270c32dcb7d.yaml | ||
bug-1732000-log-options-6db2cc8c747145ca.yaml | ||
delete-inventories-placement-api-13582910371308c4.yaml | ||
idempotent-put-resource-class-dc7a267c823b7995.yaml | ||
mirror-host-aggregates-to-placement-597473efa94ee558.yaml | ||
multi-member-of-4f9518a96652c0c6.yaml | ||
placement-aggregate-generation-9dad79fb0356fcc0.yaml | ||
placement-allocation-candidates-1114a843755b93c4.yaml | ||
placement-allocations-link-in-get-resource-providers-0b1d26a264eceb4b.yaml | ||
placement-api-endpoint-interface-set-29af8b9400ce7775.yaml | ||
placement-api-member-of-d8a08d0d0c5700d7.yaml | ||
placement-cors-c7a83e8c63787736.yaml | ||
placement-database-2e087f379273535d.yaml | ||
placement-error-code-fcbbf5d45560984e.yaml | ||
placement-forbidden-traits-ace037856aa29a09.yaml | ||
placement-generation-from-create-provider-203a0ac1ebfe64d9.yaml | ||
placement-granular-resource-requests-944f9b73f306429f.yaml | ||
placement-incomplete-consumer-configuration-b775dac1bcd34f9d.yaml | ||
placement-last-modified-cf43aece4c54fc97.yaml | ||
placement-required-traits-on-list-resource-providers-fab11cdb36cd3502.yaml | ||
placement-rest-api-filter-providers-by-resources-0ab51c9766fe654f.yaml | ||
placement-rest-api-nested-resource-providers-552a923a96d7adca.yaml | ||
placement-rest-custom-resource-classes-a3f2175772983b0a.yaml | ||
placement-return-all-resources-bfc7e3f8b5151e28.yaml | ||
placement-traits-api-efa17d46ea1b616b.yaml | ||
post-allocations-427581fa41671820.yaml | ||
return-uuid-attribute-for-aggregates-70d9f733f86fb1a3.yaml | ||
tenant_aggregate_placement_filter-c2fed8889f43b6e3.yaml |