[SERVER-31033] Add sshOptions & scpOptions to support pseudo-terminal in buildscripts/remote_operations.py Created: 11/Sep/17 Updated: 30/Oct/23 Resolved: 13/Sep/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Jonathan Abrahams |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | TIG 2017-10-02 |
| Participants: |
| Description |
|
The script buildscripts/remote_operations.py supports passing sshOptions which are common for ssh and scp. There is a case where some variants do not support sudo over ssh unless a pseduo-terminal is provided in ssh, via the -t option. Since this is an ssh only option it cannot be provided in the ssh_options parameter when instantiating the RemoteOperations class, as that object is used for both ssh and scp operations. A new mechanism to support ssh and scp only options should be provided. |
| Comments |
| Comment by Ramon Fernandez Marina [ 13/Sep/17 ] |
|
Author: {'username': u'hptabster', 'name': u'Jonathan Abrahams', 'email': u'jonathan@mongodb.com'}Message: |
| Comment by Jonathan Abrahams [ 12/Sep/17 ] |
|
Also investigate if there are server side changes that could be made which would not require pseudo-terminal for executing sudo over ssh. |
| Comment by Jonathan Abrahams [ 11/Sep/17 ] |
|
The workaround is to specify sshOptions as "-o RequestTTY=yes". |