Categories

ID #1274

How do I deploy OpenStack on a Centos 7u0 cluster?

In general, it is best to deploy OpenStack on the latest version of the distrubution of your choice to avoid running into old issues. However if there is a reason to attempt deployment to an older version of the distribution OS, without updates, then before deploying OpenStack the following should be done:

 

  • The cluster should be installed with the chosen version (for example, CentOS 7u0)
  • The CentOS-Base repository should be disabled
  • The CentOS-Vault repository pointing to specific distribution version that is to be used should be enabled

 

[C7.0.1406-base]
name=CentOS-7.0.1406 - Base
baseurl=http://vault.centos.org/7.0.1406/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[C7.0.1406-updates]
name=CentOS-7.0.1406 - Updates
baseurl=http://vault.centos.org/7.0.1406/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[C7.0.1406-extras]
name=CentOS-7.0.1406 - Extras
baseurl=http://vault.centos.org/7.0.1406/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[C7.0.1406-centosplus]
name=CentOS-7.0.1406 - CentOSPlus
baseurl=http://vault.centos.org/7.0.1406/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[C7.0.1406-fasttrack]
name=CentOS-7.0.1406 - CentOSPlus
baseurl=http://vault.centos.org/7.0.1406/fasttrack/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

 

The changes should be propagated to the default software image:

cp /etc/yum.repos.d/CentOS-Vault.repo /cm/images/default-image/etc/yum.repos.d/
cp /etc/yum.repos.d/CentOS-Base.repo /cm/images/default-image/etc/yum.repos.d/

Otherwise, if the Base repos are not all disabled, then several packages will be automatically updated to the latest CentOS version. which wil result in an operating system having a mixture of package from the desired 7uX version, and some from the latest available 7uY version. This has been known to break things.
When done, OpenStack should be deployed, the nodes should be deployed, and a check with "rpm -qa | grep 7_1" should be carried out to make sure that any packages from a different update version were not accidentally installed.

Tags: -

Related entries:

You cannot comment on this entry