diff --git a/releasenotes/notes/deprecate-noisy-neighbor-strat-7da910837ae8fa80.yaml b/releasenotes/notes/deprecate-noisy-neighbor-strat-7da910837ae8fa80.yaml new file mode 100644 index 000000000..772e1e427 --- /dev/null +++ b/releasenotes/notes/deprecate-noisy-neighbor-strat-7da910837ae8fa80.yaml @@ -0,0 +1,6 @@ +--- +deprecations: + - | + Noisy Neighbor strategy is deprecated and will be removed in a future release. + This strategy relies on Last Level Cache metrics that are not available in Nova + since `Victoria release `_. diff --git a/requirements.txt b/requirements.txt index ae53ed092..bdf5fc803 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ # date but we do not test them so no guarantee of having them all correct. If # you find any incorrect lower bounds, let us know or propose a fix. apscheduler>=3.5.1 # MIT License +debtcollector>=1.2.0 # Apache-2.0 eventlet>=0.27.0 # MIT jsonpatch>=1.21 # BSD keystoneauth1>=3.4.0 # Apache-2.0 diff --git a/watcher/decision_engine/strategy/strategies/noisy_neighbor.py b/watcher/decision_engine/strategy/strategies/noisy_neighbor.py index cf9137a14..5f2fd8bfe 100644 --- a/watcher/decision_engine/strategy/strategies/noisy_neighbor.py +++ b/watcher/decision_engine/strategy/strategies/noisy_neighbor.py @@ -16,8 +16,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from debtcollector import removals from oslo_config import cfg from oslo_log import log +import warnings from watcher._i18n import _ from watcher.decision_engine.strategy.strategies import base @@ -25,7 +27,11 @@ from watcher.decision_engine.strategy.strategies import base LOG = log.getLogger(__name__) CONF = cfg.CONF +warnings.simplefilter('always') + +@removals.removed_class("NoisyNeighbor", version="2025.2", + removal_version="2026.2") class NoisyNeighbor(base.NoisyNeighborBaseStrategy): """Noisy Neighbor strategy using live migration