diff --git a/rally/cli/cliutils.py b/rally/cli/cliutils.py index 066ffdff37..64ea3d55d7 100644 --- a/rally/cli/cliutils.py +++ b/rally/cli/cliutils.py @@ -26,6 +26,7 @@ import jsonschema from oslo_config import cfg from oslo_utils import encodeutils import prettytable +from requests.packages import urllib3 import six import sqlalchemy.exc @@ -491,6 +492,12 @@ def run(argv, categories): urllib3_log = logging.getLogger("urllib3").logger urllib3_log.setLevel(logging.WARNING) + LOG.debug("urllib3 insecure warnings are hidden.") + urllib3.disable_warnings( + urllib3.exceptions.InsecurePlatformWarning) + urllib3.disable_warnings(urllib3.exceptions.SNIMissingWarning) + urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + # NOTE(wtakase): This is for suppressing boto error logging. LOG.debug("ERROR log from boto module is hide.") boto_log = logging.getLogger("boto").logger