[system-tests][qa] Working dir can change by SSHClient

Bug #1606466 reported by Vladimir Khlyunev on 2016-07-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Vladimir Khlyunev
7.0.x
High
Vladimir Khlyunev
8.0.x
High
Vladimir Khlyunev
Mitaka
High
Vladimir Khlyunev
Newton
High
Vladimir Khlyunev

Bug Description

After refactoring in fuel-devops SSHClient now tries to do "cd ~" before commands. Some times we need to run the command from a specific working directory - now this behavior is broken. We should handle it in fuel-qa code.

Example:
https://github.com/openstack/fuel-qa/blob/5983c06e19a42ddefe46dea6521067c7d74b6ab6/fuelweb_test/tests/tests_upgrade/test_data_driven_upgrade_base.py#L423-L444
https://product-ci.infra.mirantis.net/view/upgrades/job/8.0.upgrades.ubuntu.upgrade_detach_plugin_tests/7/testReport/(root)/upgrade_detach_plugin_backup/upgrade_detach_plugin_backup/

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/347187

Changed in fuel:
assignee: nobody → Vladimir Khlyunev (vkhlyunev)
status: New → In Progress

Reviewed: https://review.openstack.org/347189
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=681e79113edc5274785de193163f13dd2dd06919
Submitter: Jenkins
Branch: master

commit 681e79113edc5274785de193163f13dd2dd06919
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Jul 26 11:26:49 2016 +0300

    Handle changing working dir in upgrade tests

    After SSHClient refactor now it's necessary to track current working dir

    Change-Id: Ia2ebfd04ee0a77f26e2589d31978f5db8c69e064
    Partial-bug:1606466

Reviewed: https://review.openstack.org/347187
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=ce44b247c015a049978d4066bff05efa47efec8a
Submitter: Jenkins
Branch: stable/mitaka

commit ce44b247c015a049978d4066bff05efa47efec8a
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Jul 26 11:26:49 2016 +0300

    Handle changing working dir in upgrade tests

    After SSHClient refactor now it's necessary to track current working dir

    Change-Id: Ia2ebfd04ee0a77f26e2589d31978f5db8c69e064
    Partial-bug:1606466

tags: added: in-stable-mitaka

Reviewed: https://review.openstack.org/347190
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=5db17976d6d953293020a94731c45300e06de3fe
Submitter: Jenkins
Branch: stable/8.0

commit 5db17976d6d953293020a94731c45300e06de3fe
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Jul 26 11:26:49 2016 +0300

    Handle changing working dir in upgrade tests

    After SSHClient refactor now it's necessary to track current working dir

    Change-Id: Ia2ebfd04ee0a77f26e2589d31978f5db8c69e064
    Partial-bug:1606466

Reviewed: https://review.openstack.org/347191
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=e612cdd9b3102583418d5261f56728c9b58dc5c2
Submitter: Jenkins
Branch: stable/7.0

commit e612cdd9b3102583418d5261f56728c9b58dc5c2
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Jul 26 11:26:49 2016 +0300

    Handle changing working dir in upgrade tests

    After SSHClient refactor now it's necessary to track current working dir

    Change-Id: Ia2ebfd04ee0a77f26e2589d31978f5db8c69e064
    Partial-bug:1606466

Changed in fuel:
status: In Progress → Fix Committed
tags: added: non-release
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers