Commit 3ec10f0d authored by Iustin Pop's avatar Iustin Pop
Browse files

Silence Paramiko deprecation warnings

This works around a problem in Paramiko, but which looks like it's a
Ganeti problem:

[cluster] root@node4:~# gnt-node add --readd node3
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases.  See


To silence this, we do an ugly thing (since Python 2.4 doesn't support
context managers): manually reset the warnings filter, which resets
any -W command line flags (hopefully noone calls this tool manually so
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 3ade0e0e
......@@ -29,11 +29,17 @@ This is needed before we can join the node into the cluster.
import getpass
import logging
import paramiko
import os.path
import optparse
import sys
# workaround paramiko warnings
# FIXME: use 'with warnings.catch_warnings' once we drop Python 2.4
import warnings
import paramiko
from ganeti import cli
from ganeti import constants
from ganeti import errors
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment