Project

General

Profile

Actions

Bug #6104

closed

ceph-deploy should workaround pseudo-tty in SSH

Added by Alfredo Deza over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph-deploy
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When connecting to a host that does not allow `sudo` over SSH, returning an error similar to:

[remote] sudo: sorry, you must have a tty to run sudo

pushy does not allow to pass a flag to the native SSH client, so the only two options for the workaround are:

  • Detect if the user is connecting as `root` so we don't need to `sudo` every command.
  • Uncomment the ssh configuration that allows non-tty execution of sudo.

Upstream issue created in pushy: https://github.com/axw/pushy/issues/46

Actions #1

Updated by Alfredo Deza over 10 years ago

  • Status changed from New to 15

pushy dev says this might not be straightforward so fixing this will depend on pushy fixing it on their end.

Actions #2

Updated by Alfredo Deza over 10 years ago

One possible solution to this is to detect a `root` user and just not do the sudo connection.

Other than that, I think it might be reasonable to error out unless there is some configuration from the user allowing this behavior

Actions #3

Updated by Alfredo Deza over 10 years ago

  • Status changed from 15 to Fix Under Review

This is not fixable with `pushy` (see ticket thread). So we are now falling back to disabling sudo if you are connecting as the `root` user.

Opened pull request: https://github.com/ceph/ceph-deploy/pull/65

Actions #4

Updated by Alfredo Deza over 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged into ceph-deploy master branch, with hash: 8eee1a3

Actions

Also available in: Atom PDF