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 f5136f1a73
commit 2f822fdae6
17 changed files with 17 additions and 17 deletions

View File

@ -83,7 +83,7 @@ ceilometer_pip_packages:
- ceilometer
- python-ceilometerclient
- ceilometermiddleware
- MySQL-python
- PyMySQL
- python-memcached
- pycrypto
- warlock

View File

@ -209,7 +209,7 @@ cinder_pip_packages:
- ecdsa
- httplib2
- keystonemiddleware
- MySQL-python
- PyMySQL
- python-memcached
- pycrypto
- python-cinderclient

View File

@ -111,7 +111,7 @@ nfs_shares_config={{ cinder_nfs_client.nfs_shares_config }}
{% endif %}
[database]
connection = mysql://{{ cinder_galera_user }}:{{ cinder_container_mysql_password }}@{{ cinder_galera_address }}/{{ cinder_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ cinder_galera_user }}:{{ cinder_container_mysql_password }}@{{ cinder_galera_address }}/{{ cinder_galera_database }}?charset=utf8
[oslo_messaging_rabbit]
rabbit_port = {{ rabbitmq_port }}

View File

@ -158,7 +158,7 @@ glance_apt_packages:
glance_pip_packages:
- glance
- keystonemiddleware
- MySQL-python
- PyMySQL
- python-memcached
- pycrypto
- python-glanceclient

View File

@ -50,7 +50,7 @@ show_image_direct_url = {{ glance_show_image_direct_url }}
task_executor = {{ glance_task_executor }}
[database]
connection = mysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8
[keystone_authtoken]
insecure = {{ keystone_service_internaluri_insecure | bool }}

View File

@ -5,4 +5,4 @@ log_file = /var/log/glance/glance-manage.log
fatal_deprecations = {{ glance_fatal_deprecations }}
[database]
connection = mysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8

View File

@ -21,7 +21,7 @@ rpc_backend = {{ glance_rpc_backend }}
{% endif %}
[database]
connection = mysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ glance_galera_user }}:{{ glance_container_mysql_password }}@{{ glance_galera_address }}/{{ glance_galera_database }}?charset=utf8
[keystone_authtoken]
insecure = {{ keystone_service_internaluri_insecure | bool }}

View File

@ -146,7 +146,7 @@ heat_apt_packages:
heat_pip_packages:
- keystonemiddleware
- MySQL-python
- PyMySQL
- python-memcached
- pycrypto
- python-ceilometerclient

View File

@ -40,7 +40,7 @@ endpoint_type = {{ heat_clients_endpoint }}
endpoint_type = {{ heat_clients_heat_endpoint }}
[database]
connection = mysql://{{ heat_galera_user }}:{{ heat_container_mysql_password }}@{{ heat_galera_address }}/{{ heat_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ heat_galera_user }}:{{ heat_container_mysql_password }}@{{ heat_galera_address }}/{{ heat_galera_database }}?charset=utf8
[ec2authtoken]
auth_uri = {{ keystone_service_internalurl }}

View File

@ -120,7 +120,7 @@ horizon_pip_packages:
- greenlet
- horizon
- keystonemiddleware
- MySQL-python
- PyMySQL
- oslo.config
- ply
- pycrypto

View File

@ -340,7 +340,7 @@ keystone_pip_packages:
- keystonemiddleware
- ldappool
- lxml
- MySQL-python
- PyMySQL
- oslo.middleware
- pbr
- pycrypto

View File

@ -52,7 +52,7 @@ methods = {{ keystone_auth_methods }}
{% endif %}
[database]
connection = mysql://{{ keystone_galera_user }}:{{ keystone_container_mysql_password }}@{{ keystone_galera_address }}/{{ keystone_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ keystone_galera_user }}:{{ keystone_container_mysql_password }}@{{ keystone_galera_address }}/{{ keystone_galera_database }}?charset=utf8
idle_timeout = {{ keystone_database_idle_timeout }}
min_pool_size = {{ keystone_database_min_pool_size }}
max_pool_size = {{ keystone_database_max_pool_size }}

View File

@ -290,7 +290,7 @@ neutron_pip_packages:
- configobj
- cliff
- keystonemiddleware
- MySQL-python
- PyMySQL
- neutron
- pycrypto
- python-glanceclient

View File

@ -130,7 +130,7 @@ check_revocations_for_cached = False
# Database
[database]
connection = mysql://{{ neutron_galera_user }}:{{ neutron_container_mysql_password }}@{{ neutron_galera_address }}/{{ neutron_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ neutron_galera_user }}:{{ neutron_container_mysql_password }}@{{ neutron_galera_address }}/{{ neutron_galera_database }}?charset=utf8
max_overflow = {{ neutron_db_max_overflow }}
max_pool_size = {{ neutron_db_pool_size }}
pool_timeout = {{ neutron_db_pool_timeout }}

View File

@ -11,4 +11,4 @@ director_server_port={{ pg_ports['vip_port'] }}
username={{ pg_username }}
password={{ pg_password }}
servertimeout=70
connection = mysql://{{ neutron_galera_user }}:{{ neutron_container_mysql_password }}@{{ neutron_galera_address }}/{{ neutron_galera_database }}?charset=utf8
connection = mysql+pymysql://{{ neutron_galera_user }}:{{ neutron_container_mysql_password }}@{{ neutron_galera_address }}/{{ neutron_galera_database }}?charset=utf8

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 }}