Activity log for bug #1480368

Date Who What changed Old value New value Message
2015-07-31 15:47:41 Maksym Strukov bug added bug
2015-07-31 15:53:40 Maksym Strukov fuel: status New Confirmed
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.
2015-07-31 16:21:48 Maksym Strukov tags system-tests feature-upgrade
2015-07-31 16:22:08 Maksym Strukov summary def run_script logging errors without stderr Not all commands in fuel upgrade script has stderr redirection
2015-07-31 16:22:14 Maksym Strukov nominated for series fuel/7.0.x
2015-07-31 16:22:14 Maksym Strukov bug task added fuel/7.0.x
2015-07-31 16:22:48 Maksym Strukov fuel/7.0.x: assignee Fuel QA Team (fuel-qa)
2015-07-31 16:23:44 Maksym Strukov fuel/7.0.x: assignee Fuel Python Team (fuel-python)
2015-08-03 13:51:26 Dmitry Pyzhov fuel/7.0.x: milestone 7.0
2015-08-03 19:12:54 Dmitry Pyzhov fuel/7.0.x: milestone 7.0 8.0
2015-08-03 19:13:04 Dmitry Pyzhov bug task deleted fuel/7.0.x
2015-10-08 17:29:03 Dmitry Pyzhov tags feature-upgrade feature-upgrade low-hanging-fruit
2015-10-22 03:08:14 Dmitry Pyzhov tags feature-upgrade low-hanging-fruit area-python feature-upgrade low-hanging-fruit
2015-11-03 14:41:07 Ruslan Aliev fuel: assignee Fuel Python Team (fuel-python) Ruslan Aliev (raliev)
2015-11-03 17:45:37 OpenStack Infra fuel: status Confirmed In Progress
2015-11-19 09:22:47 Ruslan Aliev fuel: status In Progress Fix Released