Install Guide: Switch from MySQL-python to PyMySQL

As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

This change only updates the Install Guide.

Change-Id: I71ff1841af54f5db870e836bc1c62499096a712e
This commit is contained in:
Jeremy Stanley 2015-05-20 01:04:00 +00:00 committed by Andreas Jaeger
parent ac8125bc3d
commit 023add12b8
9 changed files with 15 additions and 15 deletions

View File

@ -238,19 +238,19 @@ services also support other SQL databases including
.. code-block:: console .. code-block:: console
# apt-get install mariadb-server python-mysqldb # apt-get install mariadb-server python-pymysql
.. only:: debian .. only:: debian
.. code-block:: console .. code-block:: console
# apt-get install mysql-server python-mysqldb # apt-get install mysql-server python-pymysql
.. only:: rdo .. only:: rdo
.. code-block:: console .. code-block:: console
# yum install mariadb mariadb-server MySQL-python # yum install mariadb mariadb-server PyMySQL
.. only:: obs .. only:: obs

View File

@ -211,7 +211,7 @@ To install and configure Block Storage controller components
[database] [database]
... ...
connection = mysql://cinder:CINDER_DBPASS@controller/cinder connection = mysql+pymysql://cinder:CINDER_DBPASS@controller/cinder
Replace ``CINDER_DBPASS`` with the password you chose for the Replace ``CINDER_DBPASS`` with the password you chose for the
Block Storage database. Block Storage database.

View File

@ -191,7 +191,7 @@ Install and configure Block Storage volume components
.. code-block:: console .. code-block:: console
# yum install openstack-cinder targetcli python-oslo-db \ # yum install openstack-cinder targetcli python-oslo-db \
python-oslo-log MySQL-python python-oslo-log PyMySQL
.. Temporary workaround for bug: .. Temporary workaround for bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1212899 https://bugzilla.redhat.com/show_bug.cgi?id=1212899
@ -213,7 +213,7 @@ Install and configure Block Storage volume components
[database] [database]
... ...
connection = mysql://cinder:CINDER_DBPASS@controller/cinder connection = mysql+pymysql://cinder:CINDER_DBPASS@controller/cinder
Replace ``CINDER_DBPASS`` with the password you chose for Replace ``CINDER_DBPASS`` with the password you chose for
the Block Storage database. the Block Storage database.

View File

@ -11,7 +11,7 @@ directive as follows:
.. code-block:: ini .. code-block:: ini
[database] [database]
connection = mysql://keystone:0dec658e3f14a7d@localhost/keystonedb connection = mysql+pymysql://keystone:0dec658e3f14a7d@localhost/keystonedb
This ``connection`` directive will be handled by the ``dbconfig-common`` This ``connection`` directive will be handled by the ``dbconfig-common``
package, which provides a standard Debian interface. It enables you to package, which provides a standard Debian interface. It enables you to
@ -80,7 +80,7 @@ corresponding DNS will then be:
.. code-block:: ini .. code-block:: ini
[database] [database]
connection = mysql://keystone:PASSWORD@localhost/keystonedb connection = mysql+pymysql://keystone:PASSWORD@localhost/keystonedb
The ``dbconfig-common`` package will configure MySQL for these access The ``dbconfig-common`` package will configure MySQL for these access
rights, and create the database for you. Since OpenStack 2014.1.1, all rights, and create the database for you. Since OpenStack 2014.1.1, all

View File

@ -180,7 +180,7 @@ To install and configure the Image service components
[database] [database]
... ...
connection = mysql://glance:GLANCE_DBPASS@controller/glance connection = mysql+pymysql://glance:GLANCE_DBPASS@controller/glance
Replace ``GLANCE_DBPASS`` with the password you chose for the Replace ``GLANCE_DBPASS`` with the password you chose for the
Image service database. Image service database.
@ -259,7 +259,7 @@ To install and configure the Image service components
[database] [database]
... ...
connection = mysql://glance:GLANCE_DBPASS@controller/glance connection = mysql+pymysql://glance:GLANCE_DBPASS@controller/glance
Replace ``GLANCE_DBPASS`` with the password you chose for the Replace ``GLANCE_DBPASS`` with the password you chose for the
Image service database. Image service database.

View File

@ -248,7 +248,7 @@ To install and configure the Orchestration components
[database] [database]
... ...
connection = mysql://heat:HEAT_DBPASS@controller/heat connection = mysql+pymysql://heat:HEAT_DBPASS@controller/heat
Replace ``HEAT_DBPASS`` with the password you chose for the Replace ``HEAT_DBPASS`` with the password you chose for the
Orchestration database. Orchestration database.

View File

@ -138,7 +138,7 @@ database and an administration token.
[database] [database]
... ...
connection = mysql://keystone:KEYSTONE_DBPASS@controller/keystone connection = mysql+pymysql://keystone:KEYSTONE_DBPASS@controller/keystone
Replace ``KEYSTONE_DBPASS`` with the password you chose for the database. Replace ``KEYSTONE_DBPASS`` with the password you chose for the database.
@ -212,7 +212,7 @@ database and an administration token.
[database] [database]
... ...
connection = mysql://keystone:KEYSTONE_DBPASS@controller/keystone connection = mysql+pymysql://keystone:KEYSTONE_DBPASS@controller/keystone
If you decide to not use ``dbconfig-common``, then you will have to If you decide to not use ``dbconfig-common``, then you will have to
create the database and manage its access rights yourself, and run the create the database and manage its access rights yourself, and run the

View File

@ -187,7 +187,7 @@ must create a database, service credentials, and API endpoint.
[database] [database]
... ...
connection = mysql://neutron:NEUTRON_DBPASS@controller/neutron connection = mysql+pymysql://neutron:NEUTRON_DBPASS@controller/neutron
Replace ``NEUTRON_DBPASS`` with the password you chose for the Replace ``NEUTRON_DBPASS`` with the password you chose for the
database. database.

View File

@ -167,7 +167,7 @@ To install and configure Compute controller components
[database] [database]
... ...
connection = mysql://nova:NOVA_DBPASS@controller/nova connection = mysql+pymysql://nova:NOVA_DBPASS@controller/nova
Replace ``NOVA_DBPASS`` with the password you chose for Replace ``NOVA_DBPASS`` with the password you chose for
the Compute database. the Compute database.