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:
parent
4623d814c4
commit
cb4a687353
|
@ -698,7 +698,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,
|
||||
|
|
Loading…
Reference in New Issue