diff --git a/aodh/evaluator/threshold.py b/aodh/evaluator/threshold.py index 6e058ff26..885e23692 100644 --- a/aodh/evaluator/threshold.py +++ b/aodh/evaluator/threshold.py @@ -191,8 +191,8 @@ class ThresholdEvaluator(evaluator.Evaluator): return if state == evaluator.UNKNOWN and not unknown: - LOG.warn(_LW('Expecting %(expected)d datapoints but only get ' - '%(actual)d') % { + LOG.warning(_LW('Expecting %(expected)d datapoints but only get ' + '%(actual)d') % { 'expected': alarm.rule['evaluation_periods'], 'actual': len(statistics)}) # Reason is not same as log message because we want to keep diff --git a/aodh/keystone_client.py b/aodh/keystone_client.py index 904b2786f..e3dca336b 100644 --- a/aodh/keystone_client.py +++ b/aodh/keystone_client.py @@ -115,10 +115,10 @@ def register_keystoneauth_opts(conf): def setup_keystoneauth(conf): if conf[CFG_GROUP].auth_type == "password-aodh-legacy": - LOG.warn("Value 'password-aodh-legacy' for '[%s]/auth_type' " - "is deprecated. And will be removed in Aodh 3.0. " - "Use 'password' instead.", - CFG_GROUP) + LOG.warning("Value 'password-aodh-legacy' for '[%s]/auth_type' " + "is deprecated. And will be removed in Aodh 3.0. " + "Use 'password' instead.", + CFG_GROUP) ka_loading.load_auth_from_conf_options(conf, CFG_GROUP)