nova-manage cell_v2 map_cell0 can create invalid connection URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann | ||
Newton |
Fix Committed
|
Undecided
|
Sylvain Bauza | ||
Ocata |
Fix Committed
|
Undecided
|
Sylvain Bauza |
Bug Description
Description
===========
nova-manage cell_v2 map_cell0 will automatically generate a database connection url from the existing connection configuration setting. However, if the connection has query parameters like a charset defined, it will generate an invalid URL.
Steps to reproduce
==================
Set the following in the nova.conf:
[database]
connection = mysql+pymysql:
Run:
nova-manage cell_v2 map_cell0
Excepted result
===============
Cell0 is mapped to
mysql+pymysql:
Actual Result
=============
Cell0 is mapped to
mysql+pymysql:
Subsequent API calls may fail because of this with exceptions like:
2017-06-05 20:54:20.343 2197 ERROR nova.api.
2017-06-05 20:54:20.343 2197 ERROR nova.api.
2017-06-05 20:54:20.343 2197 ERROR nova.api.
because utf8nova_cell0 is not a valid encoding.
Environment:
OpenStack Ocata,
# dpkg -l | grep nova-common
ii nova-common 2:15.0.
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: cells |
Changed in nova: | |
importance: | Medium → High |
Changed in nova: | |
assignee: | Sylvain Bauza (sylvain-bauza) → Matt Riedemann (mriedem) |
this is the commit that caused regression https:/ /github. com/openstack/ nova/commit/ 7a3362fd7b01152 dcf1b62d0ce2566 3a3312aae8