Skip to content

Commit c44c790

Browse files
Spaceman1984rohityadavcloudPaulAngusandrijapanicsb
authored
4.13 Quick install guide updates (apache#93)
* Update upgrade-4.11.rst reword warning * Updated repo, systemvm template location, added python-dns and added mysql-connector-java downgrade * Update qig.rst * Update qig.rst * Update qig.rst * Update upgrade-4.11.rst * Update qig.rst Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com> Co-authored-by: PaulAngus <paul.angus@shapeblue.com> Co-authored-by: Andrija Panic <45762285+andrijapanicsb@users.noreply.github.com>
1 parent 16ad00b commit c44c790

File tree

2 files changed

+41
-32
lines changed

2 files changed

+41
-32
lines changed

source/quickinstallationguide/qig.rst

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ get you up and running with CloudStack with a minimum amount of trouble.
3333
High level overview of the process
3434
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3535

36-
This runbook will focus on building a CloudStack cloud using KVM on CentOS
37-
7.5 with NFS storage on a flat layer-2 network utilizing layer-3 network
36+
This guide will focus on building a CloudStack cloud using KVM on CentOS
37+
7.7 with NFS storage on a flat layer-2 network utilizing layer-3 network
3838
isolation (aka Security Groups), and doing it all on a single piece of
3939
hardware.
4040

@@ -49,11 +49,11 @@ virtual machines.
4949
Prerequisites
5050
~~~~~~~~~~~~~
5151

52-
To complete this runbook you'll need the following items:
52+
To complete this guide you'll need the following items:
5353

5454
#. At least one computer which supports and has enabled hardware virtualization.
5555

56-
#. An `CentOS 7.5 x86_64 install ISO, on bootable media
56+
#. An `CentOS 7.7 x86_64 install ISO, on bootable media
5757
<http://mirrors.kernel.org/centos/7/isos/x86_64/>`_
5858

5959
#. A /24 network with the gateway being at xxx.xxx.xxx.1, no DHCP should be on
@@ -71,7 +71,7 @@ CloudStack. We will go over the steps to prepare now.
7171
Operating System
7272
~~~~~~~~~~~~~~~~
7373

74-
Using the CentOS 7.5 x86_64 install ISO, you'll need to install CentOS 7
74+
Using the CentOS 7.7 x86_64 install ISO, you'll need to install CentOS 7
7575
on your hardware. The defaults will generally be acceptable for this
7676
installation. You may want to configure network configuration during
7777
setup - either using the guidelines below, or using a standard access
@@ -101,10 +101,10 @@ will need to configure it to work in your environment. Since we specified
101101
that there will be no DHCP server in this environment we will be manually
102102
configuring your network interface.
103103

104-
Before going any further, make sure that "brctl" is installed and available:
104+
Before going any further, make sure that "brctl" and "net-tools" are installed and available:
105105

106106
.. parsed-literal::
107-
# yum install bridge-utils -y
107+
# yum install bridge-utils net-tools -y
108108
109109
Connecting via the console you should login as root. We will start by creating
110110
the bridge that Cloudstack will use for networking. Create and open
@@ -277,16 +277,16 @@ We need to configure the machine to use a CloudStack package repository.
277277
to take the source release and generate RPMs and and yum repository. This
278278
guide attempts to keep things as simple as possible, and thus we are using
279279
one of the community-provided yum repositories. Furthermore, this example
280-
assumes a 4.11 Cloudstack install - substitute versions as needed.
280+
assumes a |release| Cloudstack install - substitute versions as needed.
281281

282282
To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and
283283
insert the following information.
284284

285-
::
285+
.. parsed-literal::
286286
287287
[cloudstack]
288288
name=cloudstack
289-
baseurl=http://download.cloudstack.org/centos/7/4.11/
289+
baseurl=http://download.cloudstack.org/centos/$releasev/|version|/
290290
enabled=1
291291
gpgcheck=0
292292
@@ -379,7 +379,6 @@ First, as CentOS 7 no longer provides the MySQL binaries, we need to add a repos
379379
.. parsed-literal::
380380
# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
381381
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
382-
# yum -y update
383382
384383
Install by running the following command:
385384

@@ -424,29 +423,36 @@ start on boot as follows:
424423
MySQL connector Installation
425424
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
426425

427-
Install Python MySQL connector using the official MySQL packages repository.
428-
Create the file ``/etc/yum.repos.d/mysql.repo`` with the following content:
426+
Previously, we used to install Python and Java MySQL connectors using the official MySQL packages repository.
427+
Due to the version changes and introduced incompatibility in versions 8.x of those packages,
428+
it's advised to disable installing these packages from the MySQL repository (which we previously added)
429+
and install older versions instead.
430+
431+
Edit the file ``/etc/yum.repos.d/mysql-community.repo`` to add the line
432+
"exclude=mysql-connector-python,mysql-connector-java" under the ``[mysql-connectors-community]``
433+
section of the repo file, so that it looks similar to the below:
429434

430435
.. parsed-literal::
431436
432437
[mysql-connectors-community]
433-
name=MySQL Community connectors
434-
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/
438+
name=MySQL Connectors Community
439+
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
435440
enabled=1
436441
gpgcheck=1
442+
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
443+
**exclude=mysql-connector-python,mysql-connector-java**
437444
438-
Import GPG public key from MySQL:
439-
440-
.. parsed-literal::
441-
442-
rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql
445+
We'll proceed with installing ``mysql-connector-java`` from the Base CentOS repo,
446+
while the ``mysql-connector-python`` will be installed from the Epel repo:
443447

444-
Install mysql-connector
445-
446-
.. parsed-literal::
447-
448-
yum install mysql-connector-python
448+
.. parsed-literal::
449449
450+
# yum -y install epel-release
451+
# yum -y install mysql-connector-java mysql-connector-python
452+
453+
Please ensure that the installed version are older than 8.x (i.e. the current
454+
mysql-connector-java version from Epel is 1.1.6, while the mysql-connector-python
455+
version is 5.1.25)
450456

451457
Installation
452458
~~~~~~~~~~~~

source/upgrading/upgrade/upgrade-4.11.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,17 @@ Overview of Upgrade Steps:
5050
.. include:: _customisation_warnings.rst
5151

5252
.. warning::
53-
If you are not already using the |sysvm64-version| System VM template you will need to
54-
upgrade your System VM template prior to performing the upgrade of the
55-
CloudStack packages.
53+
If you have not registered the 4.11.3 System VM templates for your hypervisors,
54+
you will need to register them prior to performing the upgrade of the CloudStack
55+
packages. This includes those currently running a **clean** install of CloudStack 4.11.3 (i.e. you
56+
did not upgrade from another version to reach 4.11.3) - you will still need to
57+
explicitly register the 4.11.3 System VM template(s), but you will not need
58+
to restart the existing system VMs.
5659

57-
.. warning::
58-
Even if you are currently running a **clean** install of CloudStack 4.11.3, you will need to explicitely register the
59-
|sysvm64-version| System VM template. If you are running CloudStack 4.11.3 that was upgraded from some of the previous versions,
60-
you don't need to register a new |sysvm64-version| System VM template.
60+
If you are running an instance of CloudStack 4.11.3
61+
that was upgraded from a the previous versions,
62+
you will already have explicitly registered the 4.11.3 System VM template(s) and
63+
need not to do it again.
6164

6265
.. include:: _sysvm_templates.rst
6366

0 commit comments

Comments
 (0)