VScaler: Kolla Initial setup build and deployment (Newton)

From Define Wiki
Revision as of 11:14, 4 April 2017 by David (talk | contribs) (Created page with "== Pre-install Notes == You'll need the following systems: (can be all-in-one, but i've split) # kolla-build server (this is to build all the docker images) I've used the hea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Pre-install Notes

You'll need the following systems: (can be all-in-one, but i've split)

  1. kolla-build server (this is to build all the docker images) I've used the headnode of OpenHPC
  2. controller node(s)
  3. compute node(s)
  4. network node(s)
  5. storage node(s)

XFS Issues

Problems with XFS - Either use EXT4 or format the XFS partition with the flags below:

mkfs -t xfs -n ftype=1 /PATH/TO/DEVICE

If installing on kolla-build on a compute node, its missing loads of include files. (not a problem if using the headnode for buidling)

# NOTE: VNFS removes a lot of include files, ensure the following is commented out in:  /etc/warewulf/vnfs.conf
#hybridize += /usr/X11R6
#hybridize += /usr/lib/locale
#hybridize += /usr/lib64/locale
#hybridize += /usr/include
#hybridize += /usr/share/man
#hybridize += /usr/share/doc
#hybridize += /usr/share/locale

Missing header files on OpenHPC compute nodes

If you want to apply to a pre-deployed node and not faff around

# for some weird reason, glibc-headers is missing loads of files. Have to force an uninstall and re-install to fix on a compute node
rpm -e glibc-headers --nodeps
yum -y install glibc-headers
rpm -e glibc-devel --nodeps
yum -y install glibc-devel
rpm -e gmp-devel --nodeps
yum -y install gmp-devel
yum -y install glibc-devel
rpm -e kernel-headers --nodeps
yum -y install kernel-headers
yum -y install openssl-devel

# (WARNING BREAKS YUM) and check version is the same
rpm -e python-libs --nodeps
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-libs-2.7.5-48.el7.x86_64.rpm
rpm -ivh ./python-libs-2.7.5-48.el7.x86_64.rpm
# end wierdness!

Setup the kolla-build system

# remove openhpc and cobbler repo if they exist!
yum -y groupinstall 'Development Tools'
yum -y update
yum -y install epel-release
yum -y install python-pip python-devel
pip install -U pip
pip -V
# At this stage im at: 
#[root@node02 yum.repos.d]# pip -V 
#pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
#[root@node02 yum.repos.d]# cat /etc/redhat-release 
#CentOS Linux release 7.3.1611 (Core)