SlideShare a Scribd company logo
1 of 47
Download to read offline
OpenStack Meetup #3
RDO: Packstack Workshop
Objective
- Install All-In-One OpenStack
Agenda
- Install Workshop Software
- Setup Environment
- Introduction to RDO
- Introduction to Packstack
- Workshop: Prepare VirtualBox
- Workshop: Deploy OpenStack with Packstack
Install Workshop Software
- Install VirtualBox
- Install Vagrant
- Download VirtualBox image (with vagrant)
# vargrant box add centos/7
Setup Environment
1. Create working directory
2. Create testing Vagrantfile
$ mkdir ~/OpenStackMeetUp
$ cd ~/OpenStackMeetUP
$ vagrant init centos/7
$ vagrant up
$ vagrant ssh base
$ vagrant destroy -f
OpenStack
- Open Source Cloud Computing Software
- Software to control your cloud
- Open source software for creating private and public clouds
- One of the fastest growing open source community in the world
https://www.openstack.org/
RDO (RPM Distribution of OpenStack)
“... community-supporteddistribution of
OpenStack that runs onRed Hat Enterprise Linux
(RHEL) and its derivatives”
RDO (RPM Distribution of OpenStack)
“... community of usersof cloud computing platform on
Red Hat-basedoperating systems to get help and compare notes
on running OpenStack.”
OpenStack Components in RDO (Newton)
- Keystone: authentication, authorization and service discovery mechanisms
- Glance: services for discovering, registering, and retrieving virtual machine
images.
- Cinder: implement services and libraries to provide on demand, self-service
access to Block Storage resources.
- Swift: distributed object storage system designed to scale from a single
machine to thousands of servers.
- Nova: provides a cloud computing fabric controller, supporting a wide
variety of virtualization technologies, including KVM, Xen, LXC, VMware, and
more.
OpenStack Components in RDO (Newton)
- Neutron: virtual network service for Openstack.
- Heat: service to orchestrate multiple composite cloud applications using
templates, through both an OpenStack-native ReST API and a
CloudFormation-compatible Query API.
- Ceilometer: project aims to become the infrastructure to collect
measurements within OpenStack
- Gnocchi: project name of a TDBaaS (Time Series Database as a Service)
project started under the Ceilometer program umbrella.
- Horizon: Django-based project aimed at providing a complete OpenStack
Dashboard
OpenStack Components in RDO (Newton)
- Ironic: integrated OpenStack project which aims to provision bare metal
machines instead of virtual machines.
- Trove: Database as a Service for OpenStack.
- Sahara: aims to provide users with simple means to provision a Hadoop
cluster.
- Tempest: set of integration tests to be run against a live OpenStack cluster.
- Manila: shared filesystem management project for OpenStack.
- Designate: OpenStack inspired DNSaaS.
Installation Method
RDO:
- Packstack
- For PoC Environments
- Using Puppet modules to deploy OpenStack
- TripleO (Next workshop? Please voted)
- For Production Environments
- Provision bare-metal machines then deploy production cloud environments
- Undercloud → → Overclound
Packstack
“... is a utility that uses Puppet modules to deployvarious
parts of OpenStack on multiplepre-installed servers over SSH
automatically. “
© 2013 Sandro Mathys // Dedicated to the Public Domain // http://creativecommons.org/publicdomain/zero/1.0/
Packstack
“... is a utility that uses Puppetmodules to deployvarious
parts of OpenStack on multiple pre-installed servers over
SSHautomatically. “
© 2013 Sandro Mathys // Dedicated to the Public Domain // http://creativecommons.org/publicdomain/zero/1.0/
Packstack
Packstack currently only CentOS, Red Hat Enterprise Linux
(RHEL) and compatible derivatives of both are supported.
Workshop: Prepare VirtualBox
- Get VagrantFile from
“https://github.com/thamrongtawal/Openstack-Meetup-3-Vagrant”
- Vagrant up
- Vagrant ssh
Packstack Requirements
- CentOS 7 (X86_64)
- Repositories
- Base
- Extras
- Hardware
- 6+ GB RAM
- 1 NIC
- Virtualization enabled
- Network
- Prefer Static IP
Workshop: Install Packstack
- Install Repo & Update OS
- Configure services
- Restart OS
# yum install -y centos-release-openstack-newton
# yum update -y
# systemctl disable NetworkManager
# systemctl disable firewalld
# systemctl enable network
# reboot
Workshop: Install Packstack
- Install “packstack”
- Generate packstack answer file
# yum install -y openstack-packstack
# yum install -y openstack-utils
# packstack --gen-answer-file=/root/answer.txt
Workshop: Install Packstack
- Update packstack answer file
# crudini --set /root/answer.txt general CONFIG_SWIFT_INSTALL n
# crudini --set /root/answer.txt general CONFIG_HEAT_INSTALL n
# crudini --set /root/answer.txt general CONFIG_CEILOMETER_INSTALL n
# crudini --set /root/answer.txt general CONFIG_AODH_INSTALL n
# crudini --set /root/answer.txt general CONFIG_GNOCCHI_INSTALL n
# crudini --set /root/answer.txt general CONFIG_NAGIOS_INSTALL n
# crudini --set /root/answer.txt general CONFIG_KEYSTONE_ADMIN_PW password
# crudini --set /root/answer.txt general CONFIG_NTP_SERVERS 2.th.pool.ntp.org
# crudini --set /root/answer.txt general CONFIG_PROVISION_DEMO n
# crudini --set /root/answer.txt general CONFIG_NEUTRON_ML2_TYPE_DRIVERS vxlan,flat
# crudini --set /root/answer.txt general CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS physnet1:br-ex
# crudini --set /root/answer.txt general CONFIG_NEUTRON_L3_EXT_BRIDGE
Workshop: Install Packstack
- Install Openstack with packstack
- Tips:
- Using “screen” for prevent hangup terminal
- Using “time” to get installation time (useful for next installation)
# packstack --answer-file=/root/answer.txt
Openstack Diagram ?
Summary: Install Packstack
Steps:
- Install openstack repository
- Update OS
- Generate answer file
- Change parameters in answer file
- Install openstack from answer file
Post-installation Tasks:
Update vswitch interface
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=OVSPort
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes
# vi /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex
TYPE=OVSBridge
DEVICETYPE=ovs
BOOTPROTO=static
IPADDR=###.###.###.###
NETMASK=255.255.255.0
GATEWAY=###.###.###.###
DNS1=8.8.8.8
ONBOOT=yes
Post-installation Tasks:
Restart network
# systemctl restart network
Post-installation Tasks (for workshop only)
- Update “openstack-status” script
- Change line: 267 from “keystone user list” to
# vi /bin/openstack-status
openstack user list
Post-installation Tasks (for workshop only)
- Update Horizon url
- Add “ServerAlias” (line: 30)
- Restart httpd service
# vi /etc/httpd/conf.d/15-horizon_vhost.conf
ServerAlias ###.###.###.#
systemctl restart httpd.service
Verify Installation
- Verify Environment
- Create Flavors
- Create Project/User
- Create environment file for Project/User
- Create Image
- Create Key Pair
- Create Security Group
- Create Network / Subnet #1
- Launch Instance
- Create Network / Subnet #2
Verify Environment
# vi ~/keystonerc_admin
# source ~/keystonerc_admin
# openstack user list
# openstack-service status
Test login from browser
http://<hostname or IP address>
Create Project/User
# openstack project list
# openstack project create --description "Meetup Project" meetup
# openstack user list
# openstack user create --project meetup --password Password1 user1
# openstack role list
# openstack role add --user user1 --project meetup admin
Create Flavors
# openstack flavor list
# openstack help flavor create
# openstack flavor create --public m1.nano --id auto --ram 256 --disk 1 --vcpus 1
Admin only tasks !!
Create environment file for new project/user
# cp ~/keystonerc_admin ~/keystonerc_user1
# source ~/keystonerc_user1
# openstack project list
# vi ~/keystonerc_user1
unset OS_SERVICE_TOKEN
export OS_USERNAME=user1
export OS_PASSWORD=Password1
export OS_AUTH_URL=http://192.168.0.101:5000/v2.0
export PS1='[u@h W(keystone_user1)]$ '
export OS_TENANT_NAME=meetup
export OS_REGION_NAME=RegionOne
Create Image
# source ~/keystonerc_user1
# openstack image list
# wget -c http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
# openstack image create --disk-format qcow2 --container-format bare --public --file
./cirros-0.3.4-x86_64-disk.img cirros
# openstack image list
Create Keypair
# source ~/keystonerc_user1
# openstack keypair list
# openstack keypair create SecureKey > /root/securekey.pem
# chmod 600 /root/securekey.pem
Create Security Group
# source ~/keystonerc_user1
# openstack security group list
# openstack security group rule list default
# openstack security group create secgroup1 --description "Meetup group"
# openstack security group rule create --protocol tcp --dst-port 80:80 --src-ip 0.0.0.0/0
secgroup1
# openstack security group rule create --protocol tcp --dst-port 22:22 --src-ip 0.0.0.0/0
secgroup1
Create Network / Subnet #1
# source ~/keystonerc_user1
# openstack network list
# openstack network create net2
# openstack subnet create subnet2 --network net2 --subnet-range 10.10.11.0/24
# openstack router create router1
# openstack router add subnet router1 subnet2
Launch Instance
# source ~/keystonerc_user1
# openstack server list
# openstack network list
# openstack server create --flavor m1.nano --image cirros --key-name SecureKey
--security-group secgroup1 --nic net-id=<net-uuid> meeting1
Verify Instance
Using browser to verify instance
crudini --set /etc/nova/nova.conf vnc novncproxy_base_url
http://###.###.###.###:6080/vnc_auto.html
# openstack-service restart
Create Network / Subnet #2
# source ~/keystonerc_user1
# openstack network list
# openstack network create --external --provider-network-type flat
--provider-physical-network physnet1 net1
# openstack subnet create subnet1 --network net1 --no-dhcp --subnet-range
192.168.##.0/24 --allocation-pool start=192.168.##.30,end=192.168.##.50
Create External router
# source ~/keystonerc_user1
# openstack router create ext-router
# neutron router-gateway-set ext-router net1
# openstack router add subnet ext-router subnet2
Using browser to delete “router1” router
Create floating IP
# source ~/keystonerc_user1
# openstack floating ip list
# openstack floating ip create net1
Associate floating IP
# source ~/keystonerc_user1
# openstack floating ip list
# openstack server list
# openstack server add floating ip meeting1 ###.###.###.###
Verify Instance
# ssh -i /root/securekey.pem cirros@<floating IP>
What’s Next
- Attach volume (Cinder) to instance.
- https://docs.openstack.org/user-guide/dashboard-manage-volumes.html
- Add more coumpute node into PoC.
- https://www.rdoproject.org/install/adding-a-compute-node/
- Read manuals
- https://docs.openstack.org/
- https://www.rdoproject.org/documentation/
Tear Down
- What’s next workshop topic?
- Comments / Feedbacks
- Q/A

More Related Content

What's hot

Docker - container and lightweight virtualization
Docker - container and lightweight virtualization Docker - container and lightweight virtualization
Docker - container and lightweight virtualization
Sim Janghoon
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Open stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzlyOpen stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzly
Choe Cheng-Dae
 

What's hot (20)

Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of IndiaTutorial to setup OpenStreetMap tileserver with customized boundaries of India
Tutorial to setup OpenStreetMap tileserver with customized boundaries of India
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
Docker - container and lightweight virtualization
Docker - container and lightweight virtualization Docker - container and lightweight virtualization
Docker - container and lightweight virtualization
 
DevStack
DevStackDevStack
DevStack
 
Nrpe
NrpeNrpe
Nrpe
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
App container rkt
App container rktApp container rkt
App container rkt
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
 
MAASとJujuでつくるOpenStack環境構築入門 IceHouse対応版 - OpenStack最新情報セミナー 2014年10月
MAASとJujuでつくるOpenStack環境構築入門 IceHouse対応版 - OpenStack最新情報セミナー 2014年10月MAASとJujuでつくるOpenStack環境構築入門 IceHouse対応版 - OpenStack最新情報セミナー 2014年10月
MAASとJujuでつくるOpenStack環境構築入門 IceHouse対応版 - OpenStack最新情報セミナー 2014年10月
 
How to manage Microsoft Azure with open source
How to manage Microsoft Azure with open sourceHow to manage Microsoft Azure with open source
How to manage Microsoft Azure with open source
 
Full system roll-back and systemd in SUSE Linux Enterprise 12
Full system roll-back and systemd in SUSE Linux Enterprise 12Full system roll-back and systemd in SUSE Linux Enterprise 12
Full system roll-back and systemd in SUSE Linux Enterprise 12
 
Hands on Virtualization with Ganeti (part 1) - LinuxCon 2012
Hands on Virtualization with Ganeti (part 1)  - LinuxCon 2012Hands on Virtualization with Ganeti (part 1)  - LinuxCon 2012
Hands on Virtualization with Ganeti (part 1) - LinuxCon 2012
 
Red Hat Enterprise Linux OpenStack Platform 7 - VM Instance HA Architecture
Red Hat Enterprise Linux OpenStack Platform 7 - VM Instance HA ArchitectureRed Hat Enterprise Linux OpenStack Platform 7 - VM Instance HA Architecture
Red Hat Enterprise Linux OpenStack Platform 7 - VM Instance HA Architecture
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013
 
Open stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzlyOpen stack day 2014 havana from grizzly
Open stack day 2014 havana from grizzly
 
Simplify and run your development environments with Vagrant on OpenStack
Simplify and run your development environments with Vagrant on OpenStackSimplify and run your development environments with Vagrant on OpenStack
Simplify and run your development environments with Vagrant on OpenStack
 
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in PragueDocker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
 
Secure lustre on openstack
Secure lustre on openstackSecure lustre on openstack
Secure lustre on openstack
 
PuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSCPuppetConf 2016: Nano Server, Puppet, and DSC
PuppetConf 2016: Nano Server, Puppet, and DSC
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 

Viewers also liked

Qubole hadoop-summit-2013-europe
Qubole hadoop-summit-2013-europeQubole hadoop-summit-2013-europe
Qubole hadoop-summit-2013-europe
Joydeep Sen Sarma
 
Getting to 1.5M Ads/sec: How DataXu manages Big Data
Getting to 1.5M Ads/sec: How DataXu manages Big DataGetting to 1.5M Ads/sec: How DataXu manages Big Data
Getting to 1.5M Ads/sec: How DataXu manages Big Data
Qubole
 

Viewers also liked (20)

Azure ARM’d and Ready
Azure ARM’d and ReadyAzure ARM’d and Ready
Azure ARM’d and Ready
 
Qubole hadoop-summit-2013-europe
Qubole hadoop-summit-2013-europeQubole hadoop-summit-2013-europe
Qubole hadoop-summit-2013-europe
 
Getting to 1.5M Ads/sec: How DataXu manages Big Data
Getting to 1.5M Ads/sec: How DataXu manages Big DataGetting to 1.5M Ads/sec: How DataXu manages Big Data
Getting to 1.5M Ads/sec: How DataXu manages Big Data
 
5 Crucial Considerations for Big data adoption
5 Crucial Considerations for Big data adoption5 Crucial Considerations for Big data adoption
5 Crucial Considerations for Big data adoption
 
Qubole @ AWS Meetup Bangalore - July 2015
Qubole @ AWS Meetup Bangalore - July 2015Qubole @ AWS Meetup Bangalore - July 2015
Qubole @ AWS Meetup Bangalore - July 2015
 
Atlanta Data Science Meetup | Qubole slides
Atlanta Data Science Meetup | Qubole slidesAtlanta Data Science Meetup | Qubole slides
Atlanta Data Science Meetup | Qubole slides
 
Nw qubole overview_033015
Nw qubole overview_033015Nw qubole overview_033015
Nw qubole overview_033015
 
Unlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWSUnlocking Self-Service Big Data Analytics on AWS
Unlocking Self-Service Big Data Analytics on AWS
 
15 Years of Web Security: The Rebellious Teenage Years
15 Years of Web Security: The Rebellious Teenage Years15 Years of Web Security: The Rebellious Teenage Years
15 Years of Web Security: The Rebellious Teenage Years
 
Cortana Analytics Suite
Cortana Analytics SuiteCortana Analytics Suite
Cortana Analytics Suite
 
OpenStack Tutorial
OpenStack TutorialOpenStack Tutorial
OpenStack Tutorial
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 
How to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
 
Azure stream analytics by Nico Jacobs
Azure stream analytics by Nico JacobsAzure stream analytics by Nico Jacobs
Azure stream analytics by Nico Jacobs
 
BIPD Tech Tuesday Presentation - Qubole
BIPD Tech Tuesday Presentation - QuboleBIPD Tech Tuesday Presentation - Qubole
BIPD Tech Tuesday Presentation - Qubole
 
Creating a fortigate vpn network & security blog
Creating a fortigate vpn   network & security blogCreating a fortigate vpn   network & security blog
Creating a fortigate vpn network & security blog
 
Fortinet Automates Migration onto Layered Secure Workloads
Fortinet Automates Migration onto Layered Secure WorkloadsFortinet Automates Migration onto Layered Secure Workloads
Fortinet Automates Migration onto Layered Secure Workloads
 
Qubole presentation for the Cleveland Big Data and Hadoop Meetup
Qubole presentation for the Cleveland Big Data and Hadoop Meetup   Qubole presentation for the Cleveland Big Data and Hadoop Meetup
Qubole presentation for the Cleveland Big Data and Hadoop Meetup
 
Azure Document Db
Azure Document DbAzure Document Db
Azure Document Db
 
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
Benjamin Guinebertière - Microsoft Azure: Document DB and other noSQL databas...
 

Similar to RDO-Packstack Workshop

containerit at useR!2017 conference, Brussels
containerit at useR!2017 conference, Brusselscontainerit at useR!2017 conference, Brussels
containerit at useR!2017 conference, Brussels
Daniel Nüst
 

Similar to RDO-Packstack Workshop (20)

Building Docker images with Puppet
Building Docker images with PuppetBuilding Docker images with Puppet
Building Docker images with Puppet
 
Continuous Delivery: The Next Frontier
Continuous Delivery: The Next FrontierContinuous Delivery: The Next Frontier
Continuous Delivery: The Next Frontier
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
 
How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan) How to twist a IPv6 over Bluetooth (6lowpan)
How to twist a IPv6 over Bluetooth (6lowpan)
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
Open stack implementation
Open stack implementation Open stack implementation
Open stack implementation
 
Antons Kranga Building Agile Infrastructures
Antons Kranga   Building Agile InfrastructuresAntons Kranga   Building Agile Infrastructures
Antons Kranga Building Agile Infrastructures
 
Linux configer
Linux configerLinux configer
Linux configer
 
Kubernetes for the PHP developer
Kubernetes for the PHP developerKubernetes for the PHP developer
Kubernetes for the PHP developer
 
install mosquitto-auth-plug - cheat sheet -
install mosquitto-auth-plug - cheat sheet -install mosquitto-auth-plug - cheat sheet -
install mosquitto-auth-plug - cheat sheet -
 
Making a Robust Installer for Linux Server Applications with Puppet Modules
Making a Robust Installer for Linux Server Applications with Puppet ModulesMaking a Robust Installer for Linux Server Applications with Puppet Modules
Making a Robust Installer for Linux Server Applications with Puppet Modules
 
Dockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and NovaDockerizing the Hard Services: Neutron and Nova
Dockerizing the Hard Services: Neutron and Nova
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
 
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
[Hands-on 필수 준비 사항] 쇼핑몰 예제를 통한 Microservice 개발/배포 실습 - 황주필 부장 / 강인호 부장, 한국오라클
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
containerit at useR!2017 conference, Brussels
containerit at useR!2017 conference, Brusselscontainerit at useR!2017 conference, Brussels
containerit at useR!2017 conference, Brussels
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
 
Native Hadoop with prebuilt spark
Native Hadoop with prebuilt sparkNative Hadoop with prebuilt spark
Native Hadoop with prebuilt spark
 
Hands-On Session Docker
Hands-On Session DockerHands-On Session Docker
Hands-On Session Docker
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

RDO-Packstack Workshop

  • 1. OpenStack Meetup #3 RDO: Packstack Workshop
  • 3. Agenda - Install Workshop Software - Setup Environment - Introduction to RDO - Introduction to Packstack - Workshop: Prepare VirtualBox - Workshop: Deploy OpenStack with Packstack
  • 4. Install Workshop Software - Install VirtualBox - Install Vagrant - Download VirtualBox image (with vagrant) # vargrant box add centos/7
  • 5. Setup Environment 1. Create working directory 2. Create testing Vagrantfile $ mkdir ~/OpenStackMeetUp $ cd ~/OpenStackMeetUP $ vagrant init centos/7 $ vagrant up $ vagrant ssh base $ vagrant destroy -f
  • 6. OpenStack - Open Source Cloud Computing Software - Software to control your cloud - Open source software for creating private and public clouds - One of the fastest growing open source community in the world https://www.openstack.org/
  • 7. RDO (RPM Distribution of OpenStack) “... community-supporteddistribution of OpenStack that runs onRed Hat Enterprise Linux (RHEL) and its derivatives”
  • 8. RDO (RPM Distribution of OpenStack) “... community of usersof cloud computing platform on Red Hat-basedoperating systems to get help and compare notes on running OpenStack.”
  • 9.
  • 10. OpenStack Components in RDO (Newton) - Keystone: authentication, authorization and service discovery mechanisms - Glance: services for discovering, registering, and retrieving virtual machine images. - Cinder: implement services and libraries to provide on demand, self-service access to Block Storage resources. - Swift: distributed object storage system designed to scale from a single machine to thousands of servers. - Nova: provides a cloud computing fabric controller, supporting a wide variety of virtualization technologies, including KVM, Xen, LXC, VMware, and more.
  • 11. OpenStack Components in RDO (Newton) - Neutron: virtual network service for Openstack. - Heat: service to orchestrate multiple composite cloud applications using templates, through both an OpenStack-native ReST API and a CloudFormation-compatible Query API. - Ceilometer: project aims to become the infrastructure to collect measurements within OpenStack - Gnocchi: project name of a TDBaaS (Time Series Database as a Service) project started under the Ceilometer program umbrella. - Horizon: Django-based project aimed at providing a complete OpenStack Dashboard
  • 12. OpenStack Components in RDO (Newton) - Ironic: integrated OpenStack project which aims to provision bare metal machines instead of virtual machines. - Trove: Database as a Service for OpenStack. - Sahara: aims to provide users with simple means to provision a Hadoop cluster. - Tempest: set of integration tests to be run against a live OpenStack cluster. - Manila: shared filesystem management project for OpenStack. - Designate: OpenStack inspired DNSaaS.
  • 13. Installation Method RDO: - Packstack - For PoC Environments - Using Puppet modules to deploy OpenStack - TripleO (Next workshop? Please voted) - For Production Environments - Provision bare-metal machines then deploy production cloud environments - Undercloud → → Overclound
  • 14. Packstack “... is a utility that uses Puppet modules to deployvarious parts of OpenStack on multiplepre-installed servers over SSH automatically. “ © 2013 Sandro Mathys // Dedicated to the Public Domain // http://creativecommons.org/publicdomain/zero/1.0/
  • 15. Packstack “... is a utility that uses Puppetmodules to deployvarious parts of OpenStack on multiple pre-installed servers over SSHautomatically. “ © 2013 Sandro Mathys // Dedicated to the Public Domain // http://creativecommons.org/publicdomain/zero/1.0/
  • 16. Packstack Packstack currently only CentOS, Red Hat Enterprise Linux (RHEL) and compatible derivatives of both are supported.
  • 17. Workshop: Prepare VirtualBox - Get VagrantFile from “https://github.com/thamrongtawal/Openstack-Meetup-3-Vagrant” - Vagrant up - Vagrant ssh
  • 18. Packstack Requirements - CentOS 7 (X86_64) - Repositories - Base - Extras - Hardware - 6+ GB RAM - 1 NIC - Virtualization enabled - Network - Prefer Static IP
  • 19. Workshop: Install Packstack - Install Repo & Update OS - Configure services - Restart OS # yum install -y centos-release-openstack-newton # yum update -y # systemctl disable NetworkManager # systemctl disable firewalld # systemctl enable network # reboot
  • 20. Workshop: Install Packstack - Install “packstack” - Generate packstack answer file # yum install -y openstack-packstack # yum install -y openstack-utils # packstack --gen-answer-file=/root/answer.txt
  • 21. Workshop: Install Packstack - Update packstack answer file # crudini --set /root/answer.txt general CONFIG_SWIFT_INSTALL n # crudini --set /root/answer.txt general CONFIG_HEAT_INSTALL n # crudini --set /root/answer.txt general CONFIG_CEILOMETER_INSTALL n # crudini --set /root/answer.txt general CONFIG_AODH_INSTALL n # crudini --set /root/answer.txt general CONFIG_GNOCCHI_INSTALL n # crudini --set /root/answer.txt general CONFIG_NAGIOS_INSTALL n # crudini --set /root/answer.txt general CONFIG_KEYSTONE_ADMIN_PW password # crudini --set /root/answer.txt general CONFIG_NTP_SERVERS 2.th.pool.ntp.org # crudini --set /root/answer.txt general CONFIG_PROVISION_DEMO n # crudini --set /root/answer.txt general CONFIG_NEUTRON_ML2_TYPE_DRIVERS vxlan,flat # crudini --set /root/answer.txt general CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS physnet1:br-ex # crudini --set /root/answer.txt general CONFIG_NEUTRON_L3_EXT_BRIDGE
  • 22. Workshop: Install Packstack - Install Openstack with packstack - Tips: - Using “screen” for prevent hangup terminal - Using “time” to get installation time (useful for next installation) # packstack --answer-file=/root/answer.txt
  • 24.
  • 25. Summary: Install Packstack Steps: - Install openstack repository - Update OS - Generate answer file - Change parameters in answer file - Install openstack from answer file
  • 26. Post-installation Tasks: Update vswitch interface # vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 TYPE=OVSPort DEVICETYPE=ovs OVS_BRIDGE=br-ex ONBOOT=yes # vi /etc/sysconfig/network-scripts/ifcfg-br-ex DEVICE=br-ex TYPE=OVSBridge DEVICETYPE=ovs BOOTPROTO=static IPADDR=###.###.###.### NETMASK=255.255.255.0 GATEWAY=###.###.###.### DNS1=8.8.8.8 ONBOOT=yes
  • 27. Post-installation Tasks: Restart network # systemctl restart network
  • 28. Post-installation Tasks (for workshop only) - Update “openstack-status” script - Change line: 267 from “keystone user list” to # vi /bin/openstack-status openstack user list
  • 29. Post-installation Tasks (for workshop only) - Update Horizon url - Add “ServerAlias” (line: 30) - Restart httpd service # vi /etc/httpd/conf.d/15-horizon_vhost.conf ServerAlias ###.###.###.# systemctl restart httpd.service
  • 30. Verify Installation - Verify Environment - Create Flavors - Create Project/User - Create environment file for Project/User - Create Image - Create Key Pair - Create Security Group - Create Network / Subnet #1 - Launch Instance - Create Network / Subnet #2
  • 31. Verify Environment # vi ~/keystonerc_admin # source ~/keystonerc_admin # openstack user list # openstack-service status Test login from browser http://<hostname or IP address>
  • 32. Create Project/User # openstack project list # openstack project create --description "Meetup Project" meetup # openstack user list # openstack user create --project meetup --password Password1 user1 # openstack role list # openstack role add --user user1 --project meetup admin
  • 33. Create Flavors # openstack flavor list # openstack help flavor create # openstack flavor create --public m1.nano --id auto --ram 256 --disk 1 --vcpus 1 Admin only tasks !!
  • 34. Create environment file for new project/user # cp ~/keystonerc_admin ~/keystonerc_user1 # source ~/keystonerc_user1 # openstack project list # vi ~/keystonerc_user1 unset OS_SERVICE_TOKEN export OS_USERNAME=user1 export OS_PASSWORD=Password1 export OS_AUTH_URL=http://192.168.0.101:5000/v2.0 export PS1='[u@h W(keystone_user1)]$ ' export OS_TENANT_NAME=meetup export OS_REGION_NAME=RegionOne
  • 35. Create Image # source ~/keystonerc_user1 # openstack image list # wget -c http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img # openstack image create --disk-format qcow2 --container-format bare --public --file ./cirros-0.3.4-x86_64-disk.img cirros # openstack image list
  • 36. Create Keypair # source ~/keystonerc_user1 # openstack keypair list # openstack keypair create SecureKey > /root/securekey.pem # chmod 600 /root/securekey.pem
  • 37. Create Security Group # source ~/keystonerc_user1 # openstack security group list # openstack security group rule list default # openstack security group create secgroup1 --description "Meetup group" # openstack security group rule create --protocol tcp --dst-port 80:80 --src-ip 0.0.0.0/0 secgroup1 # openstack security group rule create --protocol tcp --dst-port 22:22 --src-ip 0.0.0.0/0 secgroup1
  • 38. Create Network / Subnet #1 # source ~/keystonerc_user1 # openstack network list # openstack network create net2 # openstack subnet create subnet2 --network net2 --subnet-range 10.10.11.0/24 # openstack router create router1 # openstack router add subnet router1 subnet2
  • 39. Launch Instance # source ~/keystonerc_user1 # openstack server list # openstack network list # openstack server create --flavor m1.nano --image cirros --key-name SecureKey --security-group secgroup1 --nic net-id=<net-uuid> meeting1
  • 40. Verify Instance Using browser to verify instance crudini --set /etc/nova/nova.conf vnc novncproxy_base_url http://###.###.###.###:6080/vnc_auto.html # openstack-service restart
  • 41. Create Network / Subnet #2 # source ~/keystonerc_user1 # openstack network list # openstack network create --external --provider-network-type flat --provider-physical-network physnet1 net1 # openstack subnet create subnet1 --network net1 --no-dhcp --subnet-range 192.168.##.0/24 --allocation-pool start=192.168.##.30,end=192.168.##.50
  • 42. Create External router # source ~/keystonerc_user1 # openstack router create ext-router # neutron router-gateway-set ext-router net1 # openstack router add subnet ext-router subnet2 Using browser to delete “router1” router
  • 43. Create floating IP # source ~/keystonerc_user1 # openstack floating ip list # openstack floating ip create net1
  • 44. Associate floating IP # source ~/keystonerc_user1 # openstack floating ip list # openstack server list # openstack server add floating ip meeting1 ###.###.###.###
  • 45. Verify Instance # ssh -i /root/securekey.pem cirros@<floating IP>
  • 46. What’s Next - Attach volume (Cinder) to instance. - https://docs.openstack.org/user-guide/dashboard-manage-volumes.html - Add more coumpute node into PoC. - https://www.rdoproject.org/install/adding-a-compute-node/ - Read manuals - https://docs.openstack.org/ - https://www.rdoproject.org/documentation/
  • 47. Tear Down - What’s next workshop topic? - Comments / Feedbacks - Q/A