OpenStack hands-on (All-in-One)
Transcript of OpenStack hands-on (All-in-One)
OpenStack Overview and Hands-on
JeSam [email protected]
Agenda1. OpenStack Overview
2. Introducing OpenStack Project
3. OpenStack Hands-on
- Installing and Setting CentOS 7.2
- Installing RDO using Packstack
- OpenStack Administration
4. Q&A
1. OpenStack Overview• Open source software for creating private and pub-
lic clouds
1. OpenStack Overview• OpenStack History
OpenStack is developed and released around 6-month cycles. After the initial release, additional stable point releases will be released in each release series.
2. Introducing OpenStack Project
• Core Services- NOVA : Compute- NEUTRON : Networking- GLANCE : Image Service- KEYSTONE : Identity- CINDER : Block Storage- SWIFT : Object Storage
• Optional Services- HORIZON : Dashboard- CEILOMETER : Telemetry- HEAT : Orchestration- TROVE : Database- SAHARA : Elastic Map Reduce- MAGNUM : Containers- BARBICAN : Key Management- and Many More..
2. Introducing OpenStack Project
• NOVA (Compute)- Manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decomissioning of machines on demand.
• NEUTRON (Networking)- Enables network connectivity as a service for other OpenStack services, such as OpenStack Compute. Provides an API for users to define networks and the attachments into them. Has a pluggable architecture that supports many popular networking vendors and technologies.
2. Introducing OpenStack Project
• GLANCE (Image Service)- Stores and retrieves virtual machine disk images. OpenStack Compute makes use of this during instance provisioning.
• KEYSTONE (Identity)- Provides an authentication and authorization service for other OpenStack services. Pro-vides a catalog of endpoints for all OpenStack services.
• HORIZON (Dashboard)- Provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
2. Introducing OpenStack Project
• CINDER (Block Storage)- Provides persistent block storage to running instances. Its pluggable driver architecture fa-cilitates the creation and management of block storage devices.
• SWIFT (Object Storage)- Stores and retrieves arbitrary unstructured data objects via a RESTful, HTTP based API. It is highly fault tolerant with its data replication and scale out architecture. Its implementation is not like a file server with mountable directories.
2. Introducing OpenStack Project
• NEUTRON – ML2 architecture
2. Introducing OpenStack Project
• NEUTRON – ML2 Type Driver : vxlan- VXLAN allows you to create a logical network for your virtual machines across different networks. More technically speaking, you can create a layer 2 network on top of layer 3. VXLAN does this through encapsulation.VXLAN has addi -tional features over other network deployment models in terms of isolation as well as performance.
2. Introducing OpenStack Project
• NameSpace - Isolated networking stack
2. Introducing OpenStack Project
• Multi Nodes example
3. OpenStack Hands-on• Hands-on Environment (All-in-One)
Virtualization
NOVA NEUTRON CINDER
KEYSTONEHORIZON GLANCE
“VM1”10.0.0.3
“VM2”10.0.0.4
“router1”10.10.0.1
“private_network”10.0.0.0/24
br-ex ens32
ens33
192.168.0.216 (Public Network)
100.100.100.101 (Private Network)
internet
“public”172.24.4.0/24
ESXi 4.1
CentOS 7.2
br-int
br-tun
3. OpenStack Hands-on• Installing CentOS 7- minimal installation- kdump : OFF- Security : OFF- Network : ONBOOT- Root password : passw0rd
3. OpenStack Hands-on• Setting CentOS 7
- verify IP address (optional)
- setting hostname (mandatory)
- setting route (optional)
# ip addr show# vi /etc/sysconfig/network-scripts/ifcfg-ens32, ens33
....# systemctl restart network
# hostnamectl set-hostname openstack# vi /etc/hosts 127.0.0.1 openstack 100.100.100.101 openstack
# ip route# ip route del default via 100.100.100.101 dev ens33# ip route add default via 192.168.0.1 dev ens32
3. OpenStack Hands-on• Setting CentOS 7
- setting ssh (optional)
- Stop and Disable “NetworkManager”, “Firewalld” services (mandatory)
# vi /etc/ssh/sshd_configPermitRootLogin=yesPasswordAuthentication=yes
# systemctl restart sshd
# systemctl stop NetworkManager# systemctl disable NetworkManager# systemctl stop firewalld# systemctl disable firewalld# getenforce# setenforce 0# vi /etc/sysconfig/selinux
selinux=permissive
3. OpenStack Hands-on• Installing RDO using Packstack
- Installing RDO repository
- Installing packstack setup utility
# yum -y install https://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo- release-mitaka-5.noarch.rpm# yum makecache# yum –y update
# yum -y install openstack-packstack# packstack -h
3. OpenStack Hands-on• Installing RDO using Packstack
- Generate answer-file (configuration file)
- Install OpenStack via packstack
# packstack --gen-answer-file=rdo.txt# vi rdo.txt ... CONFIG_DEFAULT_PASSWORD=openstack CONFIG_KEYSTONE_ADMIN_PW=openstack CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vxlan,local,flat CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vxlan CONFIG_NEUTRON_OVS_TUNNEL_IF=ens33 CONFIG_CEILOMETER_INSTALL=n CONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.0/24 ## and All HOST IP addresses change to ens33(private) ip address(100.100.100.101) ...
# packstack --answer-file=rdo.txt
3. OpenStack Hands-on• OpenStack Administration
> Create Project / User > Create Private Network/Subnet > Create Private Router > Create Instance > Access Instance via Private IP using NameSpace > Associate Floating IP > Access Instance via Floating IP > Attach Block Storage
Q & A
References• https://www.openstack.org
• https://releases.openstack.org
• http://www.cloudenablers.com/blog/configuring-vxlan-in-openstack-neutron/
• http://www.opencloudblog.com/?p=66
• OpenStack in Action - V.K. Cody Bumgradner
• OpenStack Essentials 2nd Edition – Dan Radez
• Common OpenStack Deployments – Elizabeth K. Joseph, ...
• https://www.rdoproject.org