Redirect update-master-node.sh stdout and stderr

SSHD stops reading of update-master-node.sh stdout
during puppet run, this causes puppet hanging on
keystone tasks. In order to avoid this we need to
redirect script's output to /dev/null.

Change-Id: I99959cb72caeec33a91358af4b58fa858b9c22c8
Closes-Bug: #1664635
(cherry picked from commit ee0bf1cfa4)
This commit is contained in:
Mykyta Karpin 2017-02-23 15:22:10 +02:00
parent 867894bf32
commit b431c98553
1 changed files with 3 additions and 1 deletions

View File

@ -687,7 +687,9 @@ class EnvironmentModel(six.with_metaclass(SingletonMeta, object)):
logger.info('{0} package(s) were updated'.format(updates_count))
logger.info('Applying updates via update-master-node.sh')
cmd = '/usr/share/fuel-utils/update-master-node.sh'
# LP #1664635 - we need to redirect stdout to /dev/null to avoid
# ssh connection hanging on massive output from puppet run.
cmd = '/usr/share/fuel-utils/update-master-node.sh > /dev/null 2>&1'
self.ssh_manager.execute_on_remote(
ip=self.ssh_manager.admin_ip,