Skip to content

cloudscaling/redhat-kvm

Repository files navigation

Overview

This repository provides scripts for installing TripleO with ScaleIO on host with kvm virtualization enabled.

Prepare steps

  • check that user 'stack' exists on the kvm host and he has home directory, and he is added to libvirtd group
  • checkout this project

Files and parameters

most of script files has definition of 'NUM' variable at start. It allows to use several environments.

create_env.sh - creates machines/networks/volumes on host regarding to 'NUM' environment variable. Also it defines machines counts for each role.

clean_env.sh - removes all for 'NUM' environment.

undercloud-install.sh - installs undercloud on the undercloud machine. This script (and sub-scripts) uses simplpe CentOS cloud image for building undercloud. Script patches this image to be able to ssh into it and run the image with QEMU. Then script logins (via ssh) into the VM and adds standard delorean repos. Then script installs undercloud by command 'openstack undercloud install' and TripleO does all work for installing needed software and generates/uploads images for overcloud. After these steps we have standard undercloud deployment. But also this script patches some TripleO files for correct work of next steps.

tripleo.mitaka.diff and tripleo.newton.diff - patches for tripleo heat templates

Reason why these patches were create is that ScaleIO deployment needs several linked steps. And these steps must be syncronized between all nodes with various roles. But TripleO doesn't have such extension. So these patches adds an 'AllNodesExtraConfigPost' resource that runs last and is synchronized between all nodes.

overcloud-install.sh - installs overcloud

overcloud directory contains environment/templates for TripleO/Heat for deployment with ScaleIO. This directory will be extracted from this repository.

Install steps

# set number of environment (from 0 to 6)
export NUM=0
# set version of OpenStack (starting from mitaka)
export OPENSTACK_VERSION='mitaka'
# and run
sudo ./create_env.sh
sudo ./undercloud-install.sh
# address depends on NUM varaible. check previous output for exact address
sudo ssh -t -i kp-$NUM -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.172.2
su - stack
./overcloud-install.sh

And then last command shows deploy command that can be used in current shell or in the screen utility

If you already have deployed undercloud then you can patch it once for ScaleIO templates and then deploy OpenStack with ScaleIO as you want using ScaleIO templates and environment files from 'overcloud' directory.

Instructions was used

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages