nova/nova/tests
Matt Riedemann b501fa7a92 Handle special characters in database connection URL netloc
When calling "nova-manage cell_v2 simple_cell_setup" or
"nova-manage cell_v2 map_cell0" without passing in the
--database_connection option, we read the [database]/connection
URL from nova.conf, try to split the URL and then create a
default connection based on the name of the original connection,
so if you're cell database's name is 'nova' you'd end up with
'nova_cell0' for the cell0 database name in the URL.

The problem is the database connection URL has credentials in the
netloc and if the password has special characters in it, those can
mess up the URL split, like splitting on ? which is normally denoting
the beginning of the path in a URL.

This change handles special characters in the password by using
a nice DB connection URL parsing utility method available in
sqlalchemy to get the database name out of the connection URL string
so we can replace it properly with the _cell0 suffix.

Adds a release note as this bug causes issues when upgrading.

Change-Id: I7a7678e4af8160e6f48b96095154fca6ca48ff09
Closes-Bug: #1673613
(cherry picked from commit 9a9a620ea2)
2017-05-22 11:20:55 -04:00
..
functional Catching OverQuota Exception 2017-05-06 18:55:10 +00:00
live_migration/hooks Fix libvirt group selection in live migration test 2017-04-21 13:28:18 +00:00
unit Handle special characters in database connection URL netloc 2017-05-22 11:20:55 -04:00
__init__.py
fixtures.py Regression test for local delete with an attached volume 2017-04-06 21:33:39 -04:00
uuidsentinel.py Remove redundant str typecasting 2016-09-23 12:53:34 +05:30