Cloud OpenStack DevStack

OpenStack

Voir aussi :

OpenNebula

CloudStack

Autre

Certified OpenStack Administrator Exam

Pré requis :

8Go RAM

2 Cores

1 NIC

Ubuntu LTS

Voir :

https://docs.openstack.org/devstack/latest/configuration.html

http://software.danielwatrous.com/openstack-development-using-devstack/

https://github.com/You-yantian/cloudControl/blob/master/localLB.conf

http://www.logicative.com/code/web-thoughts/openstack-devstack-horizon/

/etc/environment

# http_proxy=http://192.168.56.1:3128 # https_proxy=http://192.168.56.1:3128 ALL_PROXY=http://192.168.56.1:3128 NO_PROXY=localhost,127.0.0.0/8,localaddress,.localdomain.com,192.168.56.0/24,::1
apt-get update apt-get upgrade
export ALL_PROXY=http://127.0.0.1:3128 export NO_PROXY=localhost,127.0.0.1,192.168.56.11 git config --global http.proxy http://127.0.0.1:3128 git clone https://git.openstack.org/openstack-dev/devstack

Notes en vrac

sudo apt-get install \ git \ python-cliff \ python-dev \ python-pip \ ebtables \ bridge-utils \ thin-provisioning-tools \ qemu sudo pip install --upgrade pip #sudo pip install -U os-testr git config --global http.proxy http://127.0.0.1:3128 git clone https://git.openstack.org/openstack-dev/devstack master cd master cp samples/local.conf .

local.conf

ADMIN_PASSWORD=secret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD # hostname -I HOST_IP=192.168.56.11 #IPV4_ADDRS_SAFE_TO_USE=192.168.56.0/24 #FLOATING_RANGE=192.168.56.0/24 VERBOSE=True #RECLONE=yes #PIP_UPGRADE=True #IP_VERSION=4+6 IP_VERSION=4 DEFAULT_INSTANCE_TYPE=m1.tiny

stackrc

HOST_IP=${HOST_IP:-172.16.1.5} GIT_BASE=${GIT_BASE:-https://git.openstack.org}
sudo master/tools/create-stack-user.sh sudo chown -R stack:stack master sudo ufw disable sudo su stack master/stack.sh

/etc/nova/nova.conf

compute_driver = libvirt.LibvirtDriver [libvirt] virt_type = kvm cpu_mode = custom cpu_model = Nehalem

Désinstall & réinstall

./unstack.sh ./clean.sh ./stack.sh sudo reboot
/usr/bin/nova-compute --debug --config-file /etc/nova/nova.conf --log-file /var/log/nova/nova-compute.log tail -n 3 /var/log/nova/nova-compute.log systemctl restart openstack-nova-compute.service

https://docs.openstack.org/nova/latest/user/support-matrix.html

journalctl --unit 'devstack@*'