charm-gnocchi/src/lib/charm/openstack
Stamatis Katsaounis d3980909ad Add binary_prefix=true argument to mysql uri
This patch adds the argument binary_prefix=true to MySQL uri if
OpenStack version is equal or greater than Rocky due to Python
upper-constraints [1]. This argument is required because of PyMySQL's
change from version 0.8 and on [2], in order to fix Gnocchi API
warnings like this [3].

[1] https://github.com/openstack/requirements/blob/stable/rocky/upper-constraints.txt#L377
[2] https://github.com/PyMySQL/PyMySQL/blob/master/CHANGELOG#L61-L64
[3] https://github.com/gnocchixyz/gnocchi/issues/847

Change-Id: Ie8b10209daa4de74427e175ef21ddf306a17a0ae
Signed-off-by: Stamatis Katsaounis <skatsaounis@admin.grnet.gr>
(cherry picked from commit bf7ac78d07)
2020-01-14 12:09:13 +09:00
..
__init__.py Copyright and lint 2017-07-10 14:05:09 +01:00
gnocchi.py Add binary_prefix=true argument to mysql uri 2020-01-14 12:09:13 +09:00