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:
Jesse Pretorius 2015-10-09 17:25:10 +01:00
parent 35545452bf
commit 3509364c0c
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ nova_compute_kvm_apt_packages:
# Common pip packages
nova_pip_packages:
- MySQL-python
- PyMySQL
- python-memcached
- pycrypto
- python-keystoneclient

View File

@ -219,7 +219,7 @@ check_revocations_for_cached = False
{% if inventory_hostname not in groups['nova_compute'] %}
[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_pool_size = {{ nova_db_max_pool_size }}
pool_timeout = {{ nova_db_pool_timeout }}