Meetup OpenStack Cologne Fundamentals Workshop
Meetup OpenStack Cologne Fundamentals Workshop
@OpenStack-Cologne Meetup
● OpenStack Demo
Source: http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/
OpenStack as Layers
Source: http://hackstack.org/x/blog/2013/09/05/openstack-seven-layer-dip-as-a-service/
OpenStack Component Naming
● Nova (Compute)
● Glance (Image Services)
● Keystone (Auth. / Authz API Service)
● Cinder (Block Storage)
● Horizon (Frontend)
● Neutron (Software Defined Networking)
● Swift (Object Storage)
● Ceilometer (Telemetry)
● Heat (Orchestration)
OpenStack Core Services
● The CC hosts:
○ MariaDB
○ Mongo NoSQL DB
○ nova-api
○ keystone-api
○ cinder-api
○ neutron-server
○ L3 agent
○ DHCP agent
○ Metadata agent
● Nova compute
● Nova api
● Nova scheduler
● Nova cert
● Nova objectstore
● Nova conductor
● Nova consoleauth
● Nova novncproxy
Hypervisors Supported by Nova
● KVM
● LXC
● Qemu (non-KVM accelerated version)
● VMWare vSphere
● Xen
● IBM PowerVM
● Microsoft Hyper-V
Red Hat RDO community CentOS / Fedora / RHEL KVM / LXC / Nova-Docker
● HandsOn Session:
● Get it, run it and enjoy OS in less than 30
minutes :-)
https://cisco.app.box.com/v/KollaCLBerlin2
016
Kolla AIO Deployment Demo
● Using CentOS 7.2.1511 (Core) on bare-metal
● With 2 Nics
enp2s0 (public interface)
eno1 (internal with no IP configured)
● 16 GB RAM
● 8 Core Intel(R) Xeon(R) CPU E3-1230 V2 @
3.30GHz
Kolla AIO Deployment Steps I
● yum -y update
● reboot
● yum -y install epel-release
● yum -y install python-pip
● curl -sSL https://get.docker.io | bash
● mkdir -p /etc/systemd/system/docker.service.d
● tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF'
[Service]
MountFlags=shared
EOF
● systemctl daemon-reload
● systemctl restart docker
● yum install -y python-docker-py
● yum -y install ntp
● systemctl enable ntpd.service
● systemctl start ntpd.service
● systemctl stop libvirtd.service
● systemctl disable libvirtd.service
● yum -y install ansible
Kolla AIO Deployment Steps II
● systemctl daemon-reload
● yum install git -y
● git clone https://git.openstack.org/openstack/kolla
● pip install kolla/
● cd kolla/
● cp -r etc/kolla /etc/
● yum -y install python-devel libffi-devel openssl-devel gcc
● pip install -U python-openstackclient python-neutronclient
●kolla-build → options
● docker images
● kolla-genpwd
● vi /etc/kolla/globals.yml
network_interface: "enp2s0"
neutron_external_interface: "eno1"
kolla_install_type: "binary"
kolla_base_distro: "centos"
openstack_release: "3.0.0"
● kolla-ansible prechecks
● kolla-ansible deploy
Kolla AIO Deployment Steps III
● cd /etc/kolla/
● kolla-ansible post-deploy
● cat admin-openrc.sh
● cp /etc/kolla/admin-openrc.sh openrc
● source openrc
● docker ps -a
● vi /usr/share/kolla/init-runonce
● adapt to your pub. network: neutron subnet-create --name 1-subnet --disable-dhcp --
allocation-pool start=x.x.x.x,end=x.x.x.x public1 x.x.x.x/26 --gateway x.x.x.x
● . /usr/share/kolla/init-runonce
● docker exec -i -t neutron_server /bin/bash
● neutron net-list
● nova boot --flavor m1.tiny --image cirros --key-name oskey --nic net-id=36bbbe4b-64e0-4d87-
9fda-a9f254acbc3c test
● glance image-list
● nova list
● OpenStack CLI Cheat Sheet: http://docs.openstack.org/user-
guide/cli_cheat_sheet.html
Kolla AIO: Access Horizon
●iptables -F —> unless horizon is not
accessible
● Access horizon through the public IP: http://x.x.x.x
● You’ll find the admin credential in openrc file
Kolla AIO: Cleanup
● . /usr/share/kolla/tools/cleanup-containers
● kolla-ansible deploy
● kolla-ansible post-deploy
● . /usr/share/kolla/init-runonce
● Boot Cirros (if sometimes :-) not possible over horizon, current BUG):
● neutron net-list (to find the net-id)
● nova boot --flavor m1.tiny --image cirros --key-name oskey --nic net-id=xxxxxxxxx cirros1
Kolla Multi-Node Setup
● Presented by October workshop :-)
● Probably running with:
○ Kolla-Kubernetes
○ Kolla-Rancher, or
○ Kolla-Mesos
TripleO (OpenStack On OpenStack)
Source: http://docs.openstack.org/developer/tripleo-docs/introduction/architecture.html
TripleO (OpenStack On OpenStack)
Source: https://access.redhat.com/documentation/en/red-hat-openstack-platform/version-8/director-installation-
and-usage/#chap-Introduction
TripleO (Network Planning)
Source: https://access.redhat.com/documentation/en/red-hat-openstack-platform/version-8/director-installation-
and-usage/#sect-Planning_Networks
TripleO High Availability
Example
Source: https://access.redhat.com/documentation/en/red-hat-openstack-platform/version-8/understanding-red-hat-
openstack-platform-high-availability/
Live Introduction to Linux Foundation
Certified OpenStack Administrator (OCA)
Q&A
Thanks You for
Your attention!