Manage CentOS 7.2/ppc64le with OpenStack

Prerequisites

Assuming you have a Power server with CentOS 7.2 installed, and you have setup a RDO cloud controller on CentOS/RHEL 7.x on x86 with Packstack already.

Steps

1) Prepare the Power compute node

  • Modify the RDO repository file ( /etc/yum.repos.d/rdo-release.repo )

Change baseurl to

http://mirror.centos.org/centos/7/cloud/x86_64/openstack-mitaka/

We will reuse the RDO no-arch packages on ppc64le.

  • Add the OpenStack dependencies repo for ppc64le

       #vi /etc/yum.repos.d/rdo-deps.repo

[virt]
name=CentOS-$releasever – Virt
baseurl=ftp://ftp.unicamp.br/pub/ppc64el/centos/7_2/virt/
gpgcheck=0
enabled=1

[openstack-mitaka-dependency]
name=OpenStack Mitaka Dependency Repository
baseurl=ftp://ftp.unicamp.br/pub/ppc64el/centos/7_2/openstack/mitaka/
gpgcheck=0
enabled=1

  • Update the system

#yum update -y

2) Make changes on RDO Controller on x86

  • Edit the Packstack answer file to add in the target Power node:

# List the servers on which to install the Compute service.
CONFIG_COMPUTE_HOSTS=…, <ip of the new Power host>

# Comma-separated list of servers to be excluded from the
# installation. This is helpful if you are running Packstack a second
# time with the same answer file and do not want Packstack to
# overwrite these server’s configurations. Leave empty if you do not
# need to exclude any servers.
EXCLUDE_SERVERS=<all the existing nodes in the cloud topology>

For example, if you have <controller> and <node1>, <node2> in your current cloud, now you want to add a new Power node into this RDO topology. So the packstack answer file should be changed as below:

CONFIG_COMPUTE_HOSTS=<node1>,<node2>,<node3>

EXCLUDE_SERVERS=<controller>,<node1>,<node2>

So that when running Packstack, it will only install compute service on node 3.

  • Run packstack to start the deployment.

packstack –answer-file=<path-to-your-answerfile>

It will take about 10 minutes for the deployment to complete.

3) Verify that the Power host has been added into the existing RDO cloud

From Horizon dashboard, you can view the status of this newly added compute host.

Other scenarios

If your existing cloud is not RDO cloud or not deployed with Packstack, you will not be able to deploy the compute service to the Power host with Packstack. However, you can still follow the community OpenStack installation guide to install compute services and neutron networking agents on your Power host after you finish step 1).