Switch from MySQL-python to PyMySQL
As part of the cross-project effort [1] to prepare OpenStack for Python3 as the primary Python version used, the decision has been made to switch from using MySQL-python to PyMySQL [2]. This patch switches all OpenStack Services to use the PyMySQL library. [1] https://etherpad.openstack.org/p/liberty-cross-project-python3 [2] https://review.openstack.org/184388 UpgradeImpact Implements: blueprint liberty-release Change-Id: I7532b5dd72cd2f682f1e4ffdf290b741c2185cb3
This commit is contained in:
parent
35545452bf
commit
3509364c0c
@ -355,7 +355,7 @@ nova_compute_kvm_apt_packages:
|
|||||||
|
|
||||||
# Common pip packages
|
# Common pip packages
|
||||||
nova_pip_packages:
|
nova_pip_packages:
|
||||||
- MySQL-python
|
- PyMySQL
|
||||||
- python-memcached
|
- python-memcached
|
||||||
- pycrypto
|
- pycrypto
|
||||||
- python-keystoneclient
|
- python-keystoneclient
|
||||||
|
@ -219,7 +219,7 @@ check_revocations_for_cached = False
|
|||||||
|
|
||||||
{% if inventory_hostname not in groups['nova_compute'] %}
|
{% if inventory_hostname not in groups['nova_compute'] %}
|
||||||
[database]
|
[database]
|
||||||
connection = mysql://{{ nova_galera_user }}:{{ nova_container_mysql_password }}@{{ nova_galera_address }}/{{ nova_galera_database }}?charset=utf8
|
connection = mysql+pymysql://{{ nova_galera_user }}:{{ nova_container_mysql_password }}@{{ nova_galera_address }}/{{ nova_galera_database }}?charset=utf8
|
||||||
max_overflow = {{ nova_db_max_overflow }}
|
max_overflow = {{ nova_db_max_overflow }}
|
||||||
max_pool_size = {{ nova_db_max_pool_size }}
|
max_pool_size = {{ nova_db_max_pool_size }}
|
||||||
pool_timeout = {{ nova_db_pool_timeout }}
|
pool_timeout = {{ nova_db_pool_timeout }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user