Friday, April 6, 2018

Prepare the OpenStack Pike undercloud server for the undercloud installation


Prepare the OpenStack Pike undercloud server for the undercloud installation




These steps are done on the undercloud server.


Create the stack user for the undercloud installation 


useradd stack 


Set the password less SUDO for all the cokmad,

echo "stack ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/stack 
chmod 400 /etc/sudoers.d/stack 

--


Logon as the stack user to the undercloud server and create the SSH Keys


sudo su - stack

ssh-keygen -t rsa 

--

Copy the SSH keys for password less authentication to the KVM Libvirt Host (here our host is lab.example.com)


ssh-copy-id stack@lab.example.com


ssh-copy-id root@lab.example.com


This is needed for example if you want to remotely run any virsh commands remotely on the KVM host from the undercloud server, though this is not mandatory.

--



Install the repositories to be on the undercloud for the tripleo deployments 


Install the tripleo repos on the undercloud server 


sudo yum install -y https://trunk.rdoproject.org/centos7/current/python2-tripleo-repos-<version>.el7.centos.noarch.rpm


sudo yum -y install https://trunk.rdoproject.org/centos7/current/python2-tripleo-repos-0.0.1-0.20180319163358.8961edc.el7.centos.noarch.rpm


sudo rm -rf /var/cache/yum && yum repolist


--


Enabling the Tripleo repos on the undercloud server:


This is so as to have to enable the proper repos as per the release of the openstack on the undercloud server


As the stack user run the below (to be noted that we are going to install stable Pike OpenStack version on the undercloud)


sudo -E tripleo-repos -b pike current ceph



--

installation of the python-tripleoclient packages on the undercloud server

sudo yum -y install python-tripleoclient

This is good idea to do a yum cache clean up here

yum clean all 
rm -rf /var/cache/yum




If you want to use ceph Ansible to install and configure Ceph storage on the overcloud, then the same has to be installed and to be used for the Ceph depoyment in the undercloud

yum -y install ceph-ansible 



Go to the Main page of the OpenStack Tripleo on KVM : Openstack Pike TripleO undercloud deployment with overcloud controller HA on KVM (libvirt)

No comments:

Post a Comment