Pass -q option to yum

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
This commit is contained in:
Zane Bitter 2016-02-06 12:13:09 -05:00 committed by Jiri Stransky
parent 2125ffc650
commit d85b12dcb8
1 changed files with 2 additions and 2 deletions

View File

@ -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)