Improve 'run_on_remote' for more general use
Bug #1489165 reported by
Maksym Strukov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Maksym Strukov |
Bug Description
There are few problems in run_on_remote method:
Now, to use it as "checker" for commands with expected exitcode!=0 I need to wrap call to try-catch, because exception raised every time ec!=0.
Propose is to add parameter for suppressing exceptions (just logging)
Propose is to add expected_EC parameter to show what ec I waiting for.
This changes also will reduce the number of duplicate code in asserts when we need to log not only error message but all data from command execution (stdout/
Changed in fuel: | |
milestone: | none → 7.0 |
Changed in fuel: | |
milestone: | 7.0 → 8.0 |
Changed in fuel: | |
status: | Fix Committed → Fix Released |
tags: | added: area-qa |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/217396
Review: https:/