Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The way we store DB and MQ URLs in the API database causes issues for some deployments (and deployment tools) which want to use per-host credentials or remote hostnames. Since all the URLs loaded from the database are the same on all systems, this becomes very difficult and some have even resorted to using client-based aliasing underneath Nova and just providing URLs that reference those aliases. This makes our CellMapping object load the URLs out of the database, and apply variable substitution from the CONF-resident base URLs for any fields provided. Such functionality will let operators define per-host credentials in [database]/connection, for example, and have those applied to the database_connection URLs loaded from CellMapping records. Change-Id: Iab296c27bcd56162e2efca5fb232cae0aea1160e
- Loading branch information
Showing
4 changed files
with
329 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/cell-mapping-formatted-urls-4f5ee779a70960b8.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
features: | ||
- | | ||
The URLs in cell mapping records may now include variables that are filled | ||
from the corresponding default URL specified in the host's configuration | ||
file. This allows per-host credentials, as well as other values to be set | ||
in the config file which will affect the URL of a cell, as calculated when | ||
loading the record. For ``database_connection``, the ``[database]/connection`` | ||
URL is used as the base. For ``transport_url``, the ``[DEFAULT]/transport_url`` | ||
is used. For more information, see the cells configuration docs: | ||
https://docs.openstack.org/nova/latest/user/cells.html |