90 likes | 221 Views
Turning Up The Heat:. Advanced Heat Templates. Presented at the OpenStack Icehouse Summit Atlanta, GA May 2014. Introductions. Agenda. Jason Grimm Open Cloud Solution Architect jason.grimm@rackspace.com. Setting up DevStack Creating Tenants & Setting Quotas Prep Work. 2. 2.
E N D
Turning Up The Heat: Advanced Heat Templates Presented at the OpenStack Icehouse Summit Atlanta, GA May 2014
Introductions Agenda Jason Grimm Open Cloud Solution Architect jason.grimm@rackspace.com Setting up DevStack Creating Tenants & Setting Quotas Prep Work 2 2
Apt-get –y update; apt-get –y upgrade; reboot Apt-get –y install git adduser --disabled-password --gecos "" stack echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers git clone https://github.com/openstack-dev/devstack.git /home/stack/devstack/ git clone https://github.com/openstack/heat-templates.git /home/stack/heat-templates/ chown-vRstack:stack /home/stack su – stack cd /home/devstack ./stack.sh 3 Setting up devstack
[[local|localrc]] # Auth Info ADMIN_PASSWORD=stack DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50 # Neutron - Networking Service disable_service n-net ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron ## Neutron - Load Balancing ENABLED_SERVICES+=,q-lbaas ## Neutron - VPN as a Service ENABLED_SERVICES+=,q-vpn ## Neutron - Firewall as a Service ENABLED_SERVICES+=,q-fwaas * Shamelessly stolen from Cody Bunch, credit for this configuration file goes to him 4 Setting up devstack: local.conf
# Neutron SDN OVS_VLAN_RANGES=RegionOne:1:4000 OVS_ENABLE_TUNNELING=False # Heat - Orchestration Service ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng # Ceilometer - Metering Service (metering + alarming) ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval # Images IMAGE_URLS+=",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F19-i386-cfntools.qcow2" IMAGE_URLS+=",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F19-x86_64-cfntools.qcow2" IMAGE_URLS+=",http://mirror.chpc.utah.edu/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2" # Output LOGFILE=/opt/stack/logs/stack.sh.log VERBOSE=True LOG_COLOR=False SCREEN_LOGDIR=/opt/stack/logs 5 Setting up devstack
#!/bin/bash # setup auth export OS_AUTH_URL=http://23.253.232.76:5000/v2.0 export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=stack # city arrays east="newyorkbostonphiladelphia dc raleigh\ charlotte nashvilleatlantamiami" west="seattleportlandsanfranciscosandiegosacramento\ sanjoselosAngeleslosvegas phoenix reno“ 6 Prep Work: Creating Tenants, Setting Quotas, Adding Users
for city in `echo $west`; do tenant=`echo $city _tenant | sed -e 's/ //g'` admin=`echo $city _admin | sed -e 's/ //g'` chpassadmin=`echo $admin :stack | sed -e 's/ //g'` keystone tenant-create --name $tenant --enabled true --description $city nova quota-show --tenant $tenant nova quota-update --cores 16 $tenant nova quota-update --ram 8192 $tenant nova quota-update --instances 16 $tenant cinder quota-update --gigabytes 20 $tenant adduser --disabled-password --gecos "" $admin echo "$chpassadmin" | chpasswd sleep 10 keystone user-create --name $admin --tenant $tenant --pass stack nova quota-show --tenant $tenant done 7 Prepwork: Create Tenants, Add Users, etc.
8 Lab Design
Lab Exercise Format • 1 Team = 1 Table • Hackathon + Competition style of workshop + prizes • Scenarios (Choose 1 or more) • 50 points – Deploy a complex 3-tier service, minimum requirements: • 1 network per tier (can be pre-created) • 2 instances per tier • Basic IP connectivity between tiers • 100 points – The same as scenario 1, but with minimum requirements: • Network creation has to be a part of the template • Routing is required between tiers • Filters between tiers utilizing your choice of security • 150 points – Demonstrate LBaaS, minimum requirements as dictated LBaaS • 250 points – Demonstrate Autoscale, minimum requirements as dictated Autoscale • ??? Points – Impress us – Combine scenarios, do something at the guest layer, cross-tenant stacks, etc. 9 Lab Exercises