London open stack meet up - nov 2015
-
Upload
darryl-weaver -
Category
Technology
-
view
186 -
download
0
Transcript of London open stack meet up - nov 2015
OpenStack Lab
With RHEL OSP 7, TripleO and director
Ramon AcedoRed Hat OpenStack SpecialistLondon OpenStack Meet-up, November 2015
Goals
Experiment with RHEL OSP director in your own laptop
Understand how TripleO is used to install OpenStack
Prepare real environments
Tools
Laptop with 16 GB of RAM and fast HDD
If Mac OSX, VMware Fusion Professional
If Linux, VMware Workstation or Libvirt+KVM
Create the VMs in your laptop
Undercloud VM networks
Set up the Undercloud network
Set up the Undercloud hostname
Install the Undercloud package
Configure the Undercloud
Install the Undercloud
Ironic fake_pxe driver
Download the Overcloud Images
Define the VMs as Ironic hosts
Import the VMs into Ironic
Discover the HW of the VMs
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
Plan your network
Write your network environment Heat template
Plan your controller’s NIC configuration
Write your controller’s NIC configuration Heat templates
Do the same with your compute node
Let’s enable swap, create the main template
New template in:
/home/stack/templates/firstboot/firstboot.yaml
Let’s enable swap, create the scriptAnd the userdata.yaml called from the template:
Summary before deploying
Let’s deploy the Overcloud
$ openstack overcloud deploy \--templates templates/openstack-tripleo-heat-templates/ \-e templates/openstack-tripleo-heat-templates/environments/network-isolation.yaml \-e templates/network-environment.yaml \-e templates/firstboot/firstboot.yaml \--control-flavor control \--compute-flavor compute \--neutron-tunnel-types vxlan --neutron-network-type vxlan \--ntp-server clock.redhat.com
More details...
trickycloud.wordpress.com
access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/