2015-07-31 16:21:41 |
Maksym Strukov |
description |
Seems that following code works not as expected:
chan, stdin, stderr, stdout = node_ssh.execute_async(path)
logger.debug('Try to read status code from chain...')
assert_equal(chan.recv_exit_status(), exit_code,
'Upgrade script fails with next message {0}'.format(
''.join(stderr)))
https://github.com/stackforge/fuel-qa/blob/07b70fabd46defadd45a77dea2f12c51189fc67e/fuelweb_test/helpers/checkers.py#L278
Real output:
AssertionError: Upgrade script fails with next message |
From this: https://bugs.launchpad.net/fuel/+bug/1480282
System test showed following error message:
===
Traceback
... skipped ...
AssertionError: Upgrade script fails with next message {here must be stderr output}
===
But fuel-upgrade.log contain more usable error message:
===
2015-07-31 05:37:49 ERROR 6464 (upgrade) HostSystemUpgrader: failed to upgrade: "Shell command executed with "1" exit code: yum install -v -y fuel-7.0.0 "
Traceback (most recent call last):
File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/upgrade.py", line 82, in run
upgrader.upgrade()
File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/engines/host_system.py", line 97, in upgrade
self.install_packages()
File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/engines/host_system.py", line 143, in install_packages
utils.exec_cmd('yum install -v -y {0}'.format(package))
File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/utils.py", line 61, in exec_cmd
_wait_and_check_exit_code(cmd, child)
File "/var/upgrade/.fuel-upgrade-venv/lib/python2.6/site-packages/fuel_upgrade/utils.py", line 112, in _wait_and_check_exit_code
'exit code: {1} '.format(exit_code, cmd))
ExecutedErrorNonZeroExitCode: Shell command executed with "1" exit code: yum install -v -y fuel-7.0.0
===
Therefore, not all commands in fuel upgrade script has stderr redirection. |
|