]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
console: force existing connections into spy mode if !readonly 1025/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 7 Feb 2017 09:55:45 +0000 (10:55 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 Feb 2017 16:54:23 +0000 (17:54 +0100)
commitc8bea32593db7c7481ea46a57b70865435e6e697
tree9c2830e72d47fa495f3c7dc1fcb8b8e4cc6945ac
parentdba73ea938f863d773fcbe132ed60fc254ccba70
console: force existing connections into spy mode if !readonly

If someone watching the console didn't think of using "console -s", we
end up power cycling the node in an attempt to get the login prompt.
This is futile -- if the watcher is still there after the node comes
back up, our connection will get dropped to spy mode again.

Use -f to temporarily force existing connections into spy mode when we
attach to save a power cycle.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/orchestra/console.py
teuthology/orchestra/test/test_console.py