]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Make automated scripts quieter
authorZane Bitter <zbitter@redhat.com>
Tue, 18 Sep 2012 16:01:56 +0000 (18:01 +0200)
committerZane Bitter <zbitter@redhat.com>
Tue, 18 Sep 2012 16:43:53 +0000 (18:43 +0200)
This eliminates a lot of not-very-interesting stuff from the test logs.

Change-Id: I20bd90f8875645ef02ce3423a555c523b62ca4e3
Signed-off-by: Zane Bitter <zbitter@redhat.com>
docs/GettingStarted.rst
tools/openstack

index d5069a5ae90d5c953c3b289fea85692dbbbece8f..441f2a5972787dc9ddd1446ee8b9ba39b218881f 100644 (file)
@@ -70,11 +70,11 @@ Install OZ
 
 It is recommended to install the latest upstream oz, as this supports Fedora 17 (and Ubuntu U10/U12) guests::
 
-    git clone https://github.com/clalancette/oz.git
+    git clone -q https://github.com/clalancette/oz.git
     pushd oz
     rm -f ~/rpmbuild/RPMS/noarch/oz-*
     make rpm
-    sudo yum localinstall -y ~/rpmbuild/RPMS/noarch/oz-*
+    sudo yum -q -y localinstall ~/rpmbuild/RPMS/noarch/oz-*
     popd
 
 Note: In the steps above, it's only necessary to be root for the yum localinstall, it's recommended not to be root while building the rpm.
@@ -147,7 +147,7 @@ Download heat-jeos via git
 
 ::
 
-    git clone git://github.com/heat-api/heat-jeos.git
+    git clone -q git://github.com/heat-api/heat-jeos.git
     pushd heat-jeos
     sudo python setup.py install
     popd
@@ -198,7 +198,7 @@ Launch a Wordpress instance
 
 ::
 
-    heat -d create wordpress --template-file=templates/WordPress_Single_Instance.template --parameters="InstanceType=m1.xlarge;DBUsername=${USER};DBPassword=verybadpass;KeyName=${USER}_key"
+    heat create wordpress --template-file=templates/WordPress_Single_Instance.template --parameters="InstanceType=m1.xlarge;DBUsername=${USER};DBPassword=verybadpass;KeyName=${USER}_key"
 
 List stacks
 -----------
@@ -260,7 +260,7 @@ Because the software takes some time to install from the repository, it may be a
     HOST=`echo $WebsiteURL | sed -r -e 's#http://([^/]+)/.*#\1#'`
     
     retries=9
-    while ! ping -q -c 1 $HOST && ((retries-- > 0)); do
+    while ! ping -q -c 1 $HOST >/dev/null && ((retries-- > 0)); do
         echo "Waiting for host networking..." >&2
         sleep 2
     done
index 251b9501ed7e324c4d8a56c89f75cc785f4eba86..b2dd5f6e86b314d6f4742d94da85a445e8c58e69 100755 (executable)
@@ -131,7 +131,7 @@ function os_erase() {
 
     sudo rm -f /var/lib/libvirt/qemu/save/instance-000*
     sudo rm -f /var/lib/libvirt/qemu/instance-000*
-    sudo yum erase -y python-glance python-nova* python-keystone* openstack-swift* openstack-dashboard
+    sudo yum -q -y erase python-glance python-nova* python-keystone* openstack-swift* openstack-dashboard
 
     sudo systemctl start mysqld.service
     sleep 1
@@ -139,7 +139,7 @@ function os_erase() {
     sudo openstack-db --service nova --drop $*
     sudo openstack-db --service glance --drop $*
     sudo openstack-db --service keystone --drop $*
-    sudo yum erase -y openstack-utils
+    sudo yum -q -y erase openstack-utils
 
     sudo vgchange -an nova-volumes
     sudo losetup -d /dev/loop0
@@ -151,8 +151,8 @@ function os_erase() {
 
 
 function os_install() {
-    sudo yum groupinstall -y Virtualization
-    sudo yum install -y openstack-utils openstack-nova openstack-glance openstack-keystone openstack-dashboard scsi-target-utils qpid-cpp-server mysql-server qpid-cpp-server-daemon
+    sudo yum -q -y groupinstall Virtualization
+    sudo yum -q -y install openstack-utils openstack-nova openstack-glance openstack-keystone openstack-dashboard scsi-target-utils qpid-cpp-server mysql-server qpid-cpp-server-daemon
     sudo dd if=/dev/zero of=/var/lib/nova/nova-volumes.img bs=1M seek=20k count=0
     sudo systemctl start mysqld.service
     sleep 1