Upload
thanassis-parathyras
View
3.508
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
Deploy OpenStack: DevStack (cont’d)
Athens OpenStack User Group #OSATH5th Meetup, 12th December 2013
Thanassis Parathyras [email protected], @parathyras
catch up!
Last session• all-in-one VM– default configuration (nova, keystone, glance, horizon,
cinder, openstack*-clients)
#OSATH Environment• Ubuntu (mostly used), Centos• VirtualBox, VM Player
configure
local.conf (localrc)• your variable settings• overrides any variables set in stackrc
stackrc• provides info about git repo and branch, image download
location• this file shouldn't be modified,
use local.conf|localrc instead
stack.sh• opinionated sh script used for OpenStack developer
installation (uses screen)
your setup
Customize localrc and local.conf• contain all non-default local configuration in a single file• be backward-compatible with localrc to smooth the
transition process• allow settings in arbitrary configuration files to be changed
structure
local.conf• Follows INI file format
[[<phase>|<config-file-name>]]
• <phase> as defined in stack.sh• <config-file-name> is the configuration file name– Ex.
[[post-config|$NOVA_CONF]]
defined phases
• local – extracts localrc from local.conf before stackrc
is sourced • post-config – runs after the layer 2 services are configured and before
they are started • extra – runs after services are started and before any files in extra.d are executed
• post-extra – runs after files in extra.d are executed
sample single file
local.conf[[local|localrc]] FIXED_RANGE=10.254.1.0/24NETWORK_GATEWAY=10.254.1.1 RECLONE=TrueLOGDAYS=1 LOGFILE=$DEST/logs/stack.sh.log SCREEN_LOGDIR=$DEST/logs/screenADMIN_PASSWORD=passDATABASE_PASSWORD=$ADMIN_PASSWORDRABBIT_PASSWORD=$ADMIN_PASSWORD
some adjustment(s) …
Convert EXTRA_OPTS from (localrc): EXTRA_OPTS=api_rate_limit=False
to (local.conf): [[post-config|$NOVA_CONF]] [DEFAULT] api_rate_limit = False
• EXTRA_OPTS (and other variables) are deprecated
enable neutron
Add optionsdisable_service n-netenable_service q-svcenable_service q-agtenable_service q-dhcpenable_service q-lbaasenable_service q-l3enable_service q-metaenable_service neutron
enable swift
Add optionsenable_service s-proxy s-object \
s-container s-account
Just swift (minimal setup)disable_all_services enable_service key mysql \
s-proxy s-object \s-container s-account
Follow, support & contribute
• Athens OpenStack User Group– #OSATH, @parathyras– http://www.meetup.com/Athens-OpenStack-User-Group– https://plus.google.com/communities/113761625022392052075
• OpenStack Foundation– www.openstack.org, @openstack– ask.openstack.org– https://launchpad.net/~openstack– mailing list: general
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Keep it up!