diff --git a/bin/cinder-all b/bin/cinder-all index a3b2fcf7f70..1e5842d88cd 100755 --- a/bin/cinder-all +++ b/bin/cinder-all @@ -32,6 +32,9 @@ eventlet.monkey_patch() import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg diff --git a/bin/cinder-api b/bin/cinder-api index 8990f641e70..e5b411dee73 100755 --- a/bin/cinder-api +++ b/bin/cinder-api @@ -22,6 +22,9 @@ eventlet.monkey_patch() import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg diff --git a/bin/cinder-backup b/bin/cinder-backup index 2b5a634cca2..69f2c76bf05 100755 --- a/bin/cinder-backup +++ b/bin/cinder-backup @@ -20,6 +20,9 @@ import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) import eventlet diff --git a/bin/cinder-clear-rabbit-queues b/bin/cinder-clear-rabbit-queues index 4a59b8b3d5e..bab50ec52ca 100755 --- a/bin/cinder-clear-rabbit-queues +++ b/bin/cinder-clear-rabbit-queues @@ -23,6 +23,9 @@ import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg diff --git a/bin/cinder-manage b/bin/cinder-manage index c9eec4ad99f..a0c2df0752d 100755 --- a/bin/cinder-manage +++ b/bin/cinder-manage @@ -57,6 +57,9 @@ from __future__ import print_function import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg from oslo import messaging diff --git a/bin/cinder-rpc-zmq-receiver b/bin/cinder-rpc-zmq-receiver index 07db167b0bd..cd7d94a8f80 100755 --- a/bin/cinder-rpc-zmq-receiver +++ b/bin/cinder-rpc-zmq-receiver @@ -19,6 +19,9 @@ eventlet.monkey_patch() import contextlib import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) # If ../cinder/__init__.py exists, add ../ to Python search path, so that # it will override what happens to be installed in /usr/(local/)lib/python... diff --git a/bin/cinder-scheduler b/bin/cinder-scheduler index e8ee1175baf..a01fe3e4e9b 100755 --- a/bin/cinder-scheduler +++ b/bin/cinder-scheduler @@ -24,6 +24,9 @@ eventlet.monkey_patch() import os import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg diff --git a/bin/cinder-volume b/bin/cinder-volume index 5b8b8a8d9c2..45c4ed4613e 100755 --- a/bin/cinder-volume +++ b/bin/cinder-volume @@ -28,6 +28,9 @@ else: eventlet.monkey_patch() import sys +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg diff --git a/bin/cinder-volume-usage-audit b/bin/cinder-volume-usage-audit index accca839d8d..3f223d38a7b 100755 --- a/bin/cinder-volume-usage-audit +++ b/bin/cinder-volume-usage-audit @@ -38,6 +38,9 @@ from datetime import datetime import os import sys import traceback +import warnings + +warnings.simplefilter('once', DeprecationWarning) from oslo.config import cfg