Saturday, May 13, 2017

Centos / VirtualBox / Vagrant / Openstack-Helm


Install VirtualBox and Vagrant

Sites that had valuable info:

https://wiki.centos.org/HowTos/Virtualization/VirtualBox
https://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/
http://devopspy.com/devopscd /installing-vagrant-on-centos-7/
http://www.itzgeek.com/how-tos/mini-howtos/how-to-install-virtualbox-extension.html

NOTE: you need to install the VirtualBox extensions to run in headless mode for vagrant

Also - VitualBox 5.1 and Vagrant 1.8.6 seem to work together.

See this document for steps

https://github.com/openstack/openstack-helm/blob/master/doc/source/install/developer/vagrant.rst

Next go to to dev directory in Helm-Openstack and run "vagrant up"

Building Charts

make will not run unless you follow instructions for ceph below

In order to get the charts to build

Install Go and get gotpl and put it on the path

yum install ceph-common -y

curl -L https://github.com/gliderlabs/sigil/releases/download/v0.4.0/sigil_0.4.0_Linux_x86_64.tgz | tar -zxC /usr/local/bin

And follow the instructions here
https://github.com/att-comdev/openstack-helm/blob/master/docs/guides-install/install-multinode.md#installing-ceph-host-requirements


Install the charts

helm install --name=bootstrap local/bootstrap --namespace=openstack
helm install --name=mariadb local/mariadb --namespace=openstack
helm install --name=memcached local/memcached --namespace=openstack
helm install --name=etcd-rabbitmq local/etcd --namespace=openstack
helm install --name=rabbitmq local/rabbitmq --namespace=openstack
helm install --name=keystone local/keystone --namespace=openstack

helm install --name=glance local/glance --namespace=openstack --values=./tools/overrides/mvp/glance.yaml
helm install --name=nova local/nova --namespace=openstack --values=./tools/overrides/mvp/nova.yaml --set=conf.nova.libvirt.nova.conf.virt_type=qemu
helm install --name=neutron local/neutron --namespace=openstack --values=./tools/overrides/mvp/neutron.yaml
helm install --name=horizon local/horizon --namespace=openstack --set=network.enable_node_port=true

Slow PC with not enough memory:  I tried this on 1950 4 processor with 16GB ram


As it turns out - I had two issues here:

First - it looks like you have to wait for each set of services to come up - at least on slower machines maybe.  Second, - the mariabDB chart was not initializing correctly and this caused other issues.  I do see slightly different documentation on this for Minikube on the openstack-helm site.

https://github.com/openstack/openstack-helm/blob/master/doc/source/install/developer/minikube.rst

It says: helm install --name mariadb local/mariadb --namespace=openstack --set development.enabled=true



No comments: