Deploying Openstack
With RHEL OSP 7 and Director
Pablo Sanchez Red Hat OpenStack SpecialistAmsterdam OpenStack Meetup, 2/12/2015
About me
Openstack Technical Specialist @ Red HatWorking with Openstack since Folsom ReleaseWorked before for Rackspace in the public cloud Ops team@openpabz
Agenda
● What is RHEL OSP-Director
● How we deploy Openstack using it in RH
● Demo
RHEL OSP DirectorRed Hat's new installation, configuration, and monitoring toolset for RHEL
OSP deploymentsHas mechanisms of the following
1. Installing the Installer 2. Identification of the target hosts - the one's we're installing onto3. Content management for the software to be deployed4. Defining the topology and configuration of the deployment5. Bare metal provisioning via automated hardware control6. Software rollout and configuration management7. Making modifications to an already director-deployed environment
RHEL OSP Director
Uses Openstack Upstream components TripleOIronicHeat +Puppet
Community Version RDO Manager
6
7
1. One or more Management Nodes “Undercloud”
8
2. Operator Dashboard & CLI interfaces to configure the infrastructure
9
3. Optional introspection & benchmarking of hardware.
Hardware Discovery
10
4. Operator defines the OpenStack control services.
11
5. Operator defines the OpenStack resource nodes.
12
6. Control service and Resource nodes get provisioned.“Overcloud”
(Heat -> Nova -> Ironic -> Hardware)
13
Logical view of the Management and Production clouds
Deployment & Management App
OpenStack Production Cloud
14
Logical view of the Management and Production clouds
Deployment & Management App
OpenStack Production Cloud
“Undercloud”
“Overcloud”
15
OSP Director Logical View
Deployment and Management
● OpenStack Services● UI/CLI● Hardware discovery● Log Aggregation● Monitoring
Used to deploy and managethe other nodes..
● Images● Heat Templates● Puppet Manifests
16
OSP Director Logical View
Controller Nodes
● OpenStack Services● RPC● Pacemaker/Corosync● Ceph Monitor
17
OSP Director Logical View
Compute Nodes
● Nova Hypervisor services● Ceilometer agents
18
OSP Director Logical View
CephStorage Nodes
● Ceph OSD● Can be backend for:
○ Nova○ Cinder○ Glance
RHEL OSP Director
OSP Director in a nutshell
Undercloud Installation
Set up the Undercloud hostname
Undercloud node needs to have a fqdn matching and entry in /etc/hosts :
Install the Undercloud package
Configure the Undercloud
Install the Undercloud
Undercloud Video
Overcloud Installation
Download the Overcloud Images
Define the Nodes as Ironic hosts
Import the Nodes into Ironic
Discover the HW of the Nodes
Add nodes to roles and create their flavors
$ ironic node-update $node_id add
properties/capabilities='profile:compute,boot_option:local'$ ironic node-update $node_id add
properties/capabilities='profile:control,boot_option:local'
$ openstack flavor create --id auto --ram 3000 --disk 17 --vcpus 2 --swap 2000 compute$ openstack flavor create --id auto --ram 3000 --disk 19 --vcpus 2 --swap 1500 control
$ openstack flavor create --id auto --ram 3000 --disk 19 --vcpus 2 baremetal
Associate flavors to roles
$ openstack flavor set --property "cpu_arch"="x86_64" --property
"capabilities:boot_option"="local" --property "capabilities:profile"="control" control
$ openstack flavor set --property "cpu_arch"="x86_64" --property
"capabilities:boot_option"="local" --property "capabilities:profile"="compute" compute
Get the Heat templates
$ cp -rf /usr/share/openstack-tripleo-heat-templates ~/templates/
Plan your network
Network Subnet VLAN
Provisioning 172.16.0.0/24 Native
Internal API 172.17.1.0/24 101
Tenant 172.17.2.0/24 201
Storage 172.17.3.0/24 301
Storage Management 172.17.4.0/25 401
External 192.168.122.0/24 Native
Adapt templates to the env
Write your controller’s NIC configuration Heat templates
Summary before deploying What we need
● Undercloud configured and ready● Nodes discovered and available in Ironic● Flavors created and nodes matched● Images downloaded (or created)● Heat Templates adapted for our environment
Let’s deploy the Overcloud
openstack overcloud deploy --templates ~/templates/ \ --ntp-server 192.168.122.1 \ --control-flavor control --compute-flavor compute --ceph-storage-flavor ceph \ --control-scale 3 --compute-scale 2 --ceph-storage-scale 3 \ --neutron-tunnel-types vxlan --neutron-network-type vxlan \ -e ~/templates/environments/storage-environment.yaml \ -e ~/templates/environment.yaml
Overcloud Video
More details...
● https://access.redhat.com/documentation/en/red-hat-enterprise-linux-openstack-platform/
● http://docs.openstack.org/developer/tripleo-docs/● https://www.rdoproject.org/rdo-manager● [email protected]
Dankjewel!!
Top Related