Merge "Add additional logging for yum failures"

This commit is contained in:
Jenkins 2016-05-26 15:06:32 +00:00 committed by Gerrit Code Review
commit 7745484378
2 changed files with 5 additions and 2 deletions

View File

@ -877,6 +877,7 @@ master:
var/log/url_access_checker.log
var/log/wtmp
var/log/yum.log
var/log/yum-update-error.log
xmlrpc/cobbler.txt
remote:
controller:

View File

@ -235,7 +235,8 @@ def update_rpm_packages(func):
ip=SSHManager().admin_ip,
cmd=cmd
)
update_command = 'yum clean expire-cache; yum update -y -d3'
update_command = 'yum clean expire-cache; yum update -y -d3 ' \
'2>>/var/log/yum-update-error.log'
cmd_result = SSHManager().execute(ip=SSHManager().admin_ip,
cmd=update_command)
logger.debug('Result of "yum update" command on master node: '
@ -283,7 +284,8 @@ def update_fuel(func):
# Update packages on master node
remote.execute(
'yum -y install yum-plugin-priorities;'
'yum clean expire-cache; yum update -y')
'yum clean expire-cache; yum update -y '
'2>>/var/log/yum-update-error.log')
# Add auxiliary repository to the cluster attributes
if settings.OPENSTACK_RELEASE_UBUNTU not in \