From 0f28ca680ee4a059d50f65568219ef58d123002a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 2 Oct 2014 17:01:57 -0600 Subject: [PATCH] Updates to devstack build profile - Increase memory of devstack server from 5GB to 7GB - Update autostack script to reflect upstream changes (remove ceilometer hack) - Disable Neutron, which was preventing VM from provisioning images - Remove Glance from local.conf; it's already installed by default - Added instance pre-creation steps to documentation Change-Id: Ia3259cf440e5f16b194d8339a176f2d919b23bc4 --- Vagrantfile | 2 +- cookbooks/ds-build/files/default/autostack.sh | 16 +++++++-------- cookbooks/ds-build/files/default/local.conf | 13 +++++------- cookbooks/ds-build/metadata.rb | 2 +- ds-build/README.md | 20 ++++++++++++++----- ds-build/Vagrantfile | 2 +- 6 files changed, 30 insertions(+), 25 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 955cac9..4ddb6fb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -38,7 +38,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ds.vm.network :private_network, ip: "192.168.10.5" ds.vm.network :private_network, ip: "10.1.2.44" ds.vm.provider "virtualbox" do |vb| - vb.memory = 5280 + vb.memory = 7168 vb.cpus = 4 end ds.vm.provision :chef_solo do |chef| diff --git a/cookbooks/ds-build/files/default/autostack.sh b/cookbooks/ds-build/files/default/autostack.sh index 7cf99ad..d56c0e0 100755 --- a/cookbooks/ds-build/files/default/autostack.sh +++ b/cookbooks/ds-build/files/default/autostack.sh @@ -56,7 +56,7 @@ fi for line in `cat $basedir/devstack/stack-screenrc |tr -d "\r"`; do if [[ $line == stuff* ]]; then -echo + echo # Extract the command line to run this service command=`echo "$line" |sed 's/^stuff //;s/"//g'` base_command=`echo $command |sed 's:.*bin/::;s/ .*//'` @@ -64,17 +64,14 @@ echo # Skip screen sessions that are only a tail command [[ $command == *tail* ]] && continue - # Ceilometer's stack-screenrc invocation differs from all the others - if [ `echo "$command" |grep -c ceilometer` = 1 ]; then - base_command=`echo $command |sed "s/cd ; //;s/ libvirtd '//;s/ .*//"` - parent='/opt/stack/ceilometer' - else - # Determine an appropriate log directory - parent=`echo "$command" |cut -d' ' -f2 |sed 's/;//'` - fi + # Find a good log directory by first determining the parent + #+ Openstack service (nova, glance, etc.) + parent=`echo "$base_command" |cut -d- -f1` + logdir="/var/log/`basename $parent`" logfile="$base_command.log" + # Now, create the upstart script from this template echo "Creating /etc/init/$base_command.conf" cat > "/etc/init/$base_command.conf" <