From 7f4f3e2a2ee25f3b9288ba75909b0e6c7a0c2c36 Mon Sep 17 00:00:00 2001 From: Chris Scheible Date: Tue, 14 Apr 2020 18:54:18 +0800 Subject: [PATCH 1/2] source/installguide/management-server/_database.rst - added MySQL connector workarounds for 4.11-4.13 --- .../management-server/_database.rst | 63 ++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/source/installguide/management-server/_database.rst b/source/installguide/management-server/_database.rst index 46a9f1320b..770cec1c8c 100644 --- a/source/installguide/management-server/_database.rst +++ b/source/installguide/management-server/_database.rst @@ -37,8 +37,14 @@ MySQL. See :ref:`install-database-on-separate-node`. #. Install MySQL from the package repository of your distribution: + CentOS 7 and later no longer provides the MySQL binaries, add a repository first: + .. parsed-literal:: + wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm + rpm -ivh mysql-community-release-el7-5.noarch.rpm + yum -y update + .. parsed-literal:: yum install mysql-server .. parsed-literal:: @@ -249,8 +255,14 @@ same node for MySQL. See `“Install the Database on the Management Server Node #. Install MySQL from the package repository from your distribution: + CentOS 7 and later no longer provides the MySQL binaries, add a repository first: + .. parsed-literal:: + wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm + rpm -ivh mysql-community-release-el7-5.noarch.rpm + yum -y update + .. parsed-literal:: yum install mysql-server .. parsed-literal:: @@ -377,7 +389,56 @@ same node for MySQL. See `“Install the Database on the Management Server Node “Successfully initialized the database.” #. Now that the database is set up, you can finish configuring the OS - for the Management Server. This command will set up iptables, + for the Management Server. + + First, install the MySQL connectors for Python and Java. + + Install Python MySQL connector using the official MySQL packages repository. + Create the file ``/etc/yum.repos.d/mysql.repo`` with the following content: + + .. parsed-literal:: + + [mysql-connectors-community] + name=MySQL Community connectors + baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/ + enabled=1 + gpgcheck=1 + exclude: "mysql-connector-java*" + + Import GPG public key from MySQL: + + .. parsed-literal:: + + rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql + + Install mysql-connector + + .. parsed-literal:: + + yum install mysql-connector-python + + + Install python-dns + + .. parsed-literal:: + + yum -y install epel-release + yum -y install python-dns + + Please note: There are issues with using mysql-connector-java-8.0.19-1.el7, to + install mysql-connector-java-5.1.25-3.el7 execute the following command: + + Please note: There are issues with using mysql-connector-java-8.0.19-1.el7. To + workaround, exclude it from the repository configuration with the 'exclude' flag. + This will install the earlier mysql-connector-java-5.* package from the OS + base repository instead: + +.. parsed-literal:: + + yum -y install mysql-connector-java + + + Then start the cloustack-setup-management installer. This command will set up iptables, sudoers, and start the Management Server. .. parsed-literal:: From 320ffe6185c4e0459590b84df0fabdf4d4d1c719 Mon Sep 17 00:00:00 2001 From: Chris Scheible Date: Wed, 22 Apr 2020 22:11:32 +0800 Subject: [PATCH 2/2] source/installguide/management-server/_database.rst - fixed formatting. --- .../management-server/_database.rst | 64 ++++++++++++++++--- 1 file changed, 56 insertions(+), 8 deletions(-) diff --git a/source/installguide/management-server/_database.rst b/source/installguide/management-server/_database.rst index 770cec1c8c..c860ca008f 100644 --- a/source/installguide/management-server/_database.rst +++ b/source/installguide/management-server/_database.rst @@ -222,7 +222,55 @@ MySQL. See :ref:`install-database-on-separate-node`. Defaults:cloud !requiretty #. Now that the database is set up, you can finish configuring the OS - for the Management Server. This command will set up iptables, + for the Management Server. + + First, install the MySQL connectors for Python and Java. + + Install Python MySQL connector using the official MySQL packages repository. + Create the file ``/etc/yum.repos.d/mysql.repo`` with the following content: + + .. parsed-literal:: + + [mysql-connectors-community] + name=MySQL Community connectors + baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/ + enabled=1 + gpgcheck=1 + exclude: "mysql-connector-java*" + + Import GPG public key from MySQL: + + .. parsed-literal:: + + rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql + + Install mysql-connector + + .. parsed-literal:: + + yum install mysql-connector-python + + + Install python-dns + + .. parsed-literal:: + + yum -y install epel-release + yum -y install python-dns + + .. note:: + + There are issues with using mysql-connector-java-8.0.19-1.el7. To + workaround, exclude it from the repository configuration with the 'exclude' flag + in the repository definition above. + This will install the earlier mysql-connector-java-5.* package from the OS + base repository instead: + + .. parsed-literal:: + + yum -y install mysql-connector-java + + Then start the cloustack-setup-management installer. This command will set up iptables, sudoers, and start the Management Server. .. parsed-literal:: @@ -425,15 +473,15 @@ same node for MySQL. See `“Install the Database on the Management Server Node yum -y install epel-release yum -y install python-dns - Please note: There are issues with using mysql-connector-java-8.0.19-1.el7, to - install mysql-connector-java-5.1.25-3.el7 execute the following command: + .. note:: - Please note: There are issues with using mysql-connector-java-8.0.19-1.el7. To - workaround, exclude it from the repository configuration with the 'exclude' flag. - This will install the earlier mysql-connector-java-5.* package from the OS - base repository instead: + There are issues with using mysql-connector-java-8.0.19-1.el7. To + workaround, exclude it from the repository configuration with the 'exclude' flag + in the repository definition above. + This will install the earlier mysql-connector-java-5.* package from the OS + base repository instead: -.. parsed-literal:: + .. parsed-literal:: yum -y install mysql-connector-java