Merge "Deprecated Noisy Neighbor strategy"

This commit is contained in:
Zuul 2025-05-12 23:50:12 +00:00 committed by Gerrit Code Review
commit c73f126b15
3 changed files with 13 additions and 0 deletions

View File

@ -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 <https://docs.openstack.org/releasenotes/nova/victoria.html>`_.

View File

@ -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

View File

@ -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