Pass -q option to yum
authorZane Bitter <zbitter@redhat.com>
Sat, 6 Feb 2016 17:13:09 +0000 (12:13 -0500)
committerJiri Stransky <jistr@redhat.com>
Mon, 8 Feb 2016 09:37:05 +0000 (10:37 +0100)
The maximum payload size of the return signal from a Heat software
deployment is 1MB, and the output of yum starts breaking this limit at
~1000 packages to update - which is not an atypical number. To prevent
this, pass the -q (quiet) option to reduce the amount of output to a
manageable level.

Change-Id: I517271e8465885421a78b73c5af756816c37a977
Resolves-rhbz: #1304878
Closes-Bug: #1543034

extraconfig/tasks/yum_update.sh

index 3917902..869b1a4 100755 (executable)
@@ -151,14 +151,14 @@ openstack-nova-scheduler"
     kill $(ps ax | grep -e "radvd.*\.pid\.radvd" | awk '{print $1}') 2>/dev/null || :
 else
     echo "Upgrading openstack-puppet-modules"
-    yum -y update openstack-puppet-modules
+    yum -q -y update openstack-puppet-modules
     echo "Upgrading other packages is handled by config management tooling"
     echo -n "true" > $heat_outputs_path.update_managed_packages
     exit 0
 fi
 
 command=${command:-update}
-full_command="yum -y $command $command_arguments"
+full_command="yum -q -y $command $command_arguments"
 echo "Running: $full_command"
 
 result=$($full_command)