diff --git a/ceilometer/cmd/polling.py b/ceilometer/cmd/polling.py index f8b094d955..a7f7d982eb 100644 --- a/ceilometer/cmd/polling.py +++ b/ceilometer/cmd/polling.py @@ -93,6 +93,8 @@ def main(): # As a consequence, we can't use oslo_config_glue.setup() on Windows, # because cotyledon.ServiceManager objects are not picklable. if os.name == 'nt': + LOG.warning("Support for Ceilometer on Windows operating systems is" + "deprecated.") sm.add(create_polling_service) else: conf = _prepare_config() diff --git a/ceilometer/compute/virt/hyperv/inspector.py b/ceilometer/compute/virt/hyperv/inspector.py index 16b2879b98..41af7bc53b 100644 --- a/ceilometer/compute/virt/hyperv/inspector.py +++ b/ceilometer/compute/virt/hyperv/inspector.py @@ -16,6 +16,7 @@ import collections import functools import sys +import warnings from os_win import exceptions as os_win_exc from os_win import utilsfactory @@ -82,6 +83,9 @@ class HyperVInspector(virt_inspector.Inspector): self._utils = utilsfactory.get_metricsutils() self._host_max_cpu_clock = self._compute_host_max_cpu_clock() + warnings.warn('Support for HyperV is deprecated.', + category=DeprecationWarning, stacklevel=3) + def _compute_host_max_cpu_clock(self): hostutils = utilsfactory.get_hostutils() # host's number of CPUs and CPU clock speed will not change. diff --git a/releasenotes/notes/deprecate-windows-support-d784b975ce878864.yaml b/releasenotes/notes/deprecate-windows-support-d784b975ce878864.yaml new file mode 100644 index 0000000000..288d6b48e9 --- /dev/null +++ b/releasenotes/notes/deprecate-windows-support-d784b975ce878864.yaml @@ -0,0 +1,6 @@ +--- +deprecations: + - | + Support for running Ceilometer in Windows operating systems has been + deprecated because of retirement of the Winstackers project. Because of + this, Hyper-V inspector is also deprecated.