Merge "Deprecate GenericHardwareDeclarativePollster"

This commit is contained in:
Zuul 2021-10-14 14:13:06 +00:00 committed by Gerrit Code Review
commit 4d2ad5bc7a
3 changed files with 32 additions and 0 deletions

View File

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import warnings
from oslo_config import cfg
from oslo_log import log
from oslo_utils import timeutils
@ -24,29 +26,36 @@ LOG = log.getLogger(__name__)
OPTS = [
cfg.StrOpt('url_scheme',
default='snmp://',
deprecated_for_removal=True,
help='URL scheme to use for hardware nodes.'),
cfg.StrOpt('readonly_user_name',
default='ro_snmp_user',
deprecated_for_removal=True,
help='SNMPd user name of all nodes running in the cloud.'),
cfg.StrOpt('readonly_user_password',
default='password',
deprecated_for_removal=True,
help='SNMPd v3 authentication password of all the nodes '
'running in the cloud.',
secret=True),
cfg.StrOpt('readonly_user_auth_proto',
choices=['md5', 'sha'],
deprecated_for_removal=True,
help='SNMPd v3 authentication algorithm of all the nodes '
'running in the cloud'),
cfg.StrOpt('readonly_user_priv_proto',
choices=['des', 'aes128', '3des', 'aes192', 'aes256'],
deprecated_for_removal=True,
help='SNMPd v3 encryption algorithm of all the nodes '
'running in the cloud'),
cfg.StrOpt('readonly_user_priv_password',
deprecated_for_removal=True,
help='SNMPd v3 encryption password of all the nodes '
'running in the cloud.',
secret=True),
cfg.StrOpt('tripleo_network_name',
default='ctlplane',
deprecated_for_removal=True,
help='Name of the control plane Tripleo network')
]
@ -58,6 +67,10 @@ class NodesDiscoveryTripleO(plugin_base.DiscoveryBase):
self.last_run = None
self.instances = {}
warnings.warn('GenericHardwareDeclarativePollster has been deprecated '
'and will be removed in a future release.',
category=DeprecationWarning, stacklevel=3)
def _make_resource_url(self, ip):
hwconf = self.conf.hardware
url = hwconf.url_scheme

View File

@ -15,6 +15,7 @@
import itertools
import pkg_resources
import warnings
from oslo_config import cfg
from oslo_log import log
@ -30,6 +31,7 @@ from ceilometer import sample
OPTS = [
cfg.StrOpt('meter_definitions_file',
default="snmp.yaml",
deprecated_for_removal=True,
help="Configuration file for defining hardware snmp meters."
),
]
@ -66,6 +68,10 @@ class GenericHardwareDeclarativePollster(plugin_base.PollsterBase):
super(GenericHardwareDeclarativePollster, self).__init__(conf)
self.inspectors = {}
warnings.warn('GenericHardwareDeclarativePollster has been deprecated '
'and will be removed in a future release.',
category=DeprecationWarning, stacklevel=3)
def _update_meter_definition(self, definition):
self.meter_definition = definition
self.cached_inspector_params = {}

View File

@ -0,0 +1,13 @@
---
deprecations:
- |
``GenericHardwareDeclarativePollster`` has been deprecated and will be
removed in a future release. This pollster was designed to be used in
TripleO deployment to gather hardware metrics from overcloud nodes but
Telemetry services are no longer deployed in undercloud in current TripleO.
- |
The ``NodesDiscoveryTripleO`` discovery plugin has been deprecated and
will be removed in a future release. This plugin is designed for TripleO
deployment but no longer used since Telemetry services were removed from
undercloud.