Deprecate config options of the old alarming functionality

Related-Bug: #1495614
Change-Id: I965c39c05e86d38758ef30dc739c0b7cd4a011aa
This commit is contained in:
Ildiko Vancsa 2015-09-14 15:52:25 +02:00
parent 000697c05a
commit 3d4797ad73
6 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,7 @@ COMPARATORS = {
OPTS = [
cfg.StrOpt('gnocchi_url',
default="http://localhost:8041",
deprecated_for_removal=True,
help='URL to Gnocchi.'),
]

View File

@ -30,19 +30,23 @@ LOG = log.getLogger(__name__)
OPTS = [
cfg.StrOpt('rest_notifier_certificate_file',
default='',
deprecated_for_removal=True,
help='SSL Client certificate for REST notifier.'
),
cfg.StrOpt('rest_notifier_certificate_key',
default='',
deprecated_for_removal=True,
help='SSL Client private key for REST notifier.'
),
cfg.BoolOpt('rest_notifier_ssl_verify',
default=True,
deprecated_for_removal=True,
help='Whether to verify the SSL Server certificate when '
'calling alarm action.'
),
cfg.IntOpt('rest_notifier_max_retries',
default=0,
deprecated_for_removal=True,
help='Number of retries for REST notifier',
),

View File

@ -26,6 +26,7 @@ from ceilometer import messaging
OPTS = [
cfg.StrOpt('notifier_rpc_topic',
default='alarm_notifier',
deprecated_for_removal=True,
help='The topic that ceilometer uses for alarm notifier '
'messages.'),
]

View File

@ -37,6 +37,7 @@ from ceilometer import messaging
OPTS = [
cfg.IntOpt('evaluation_interval',
default=60,
deprecated_for_removal=True,
help='Period of evaluation cycle, should'
' be >= than configured pipeline interval for'
' collection of underlying meters.',

View File

@ -57,18 +57,22 @@ LOG = log.getLogger(__name__)
ALARM_API_OPTS = [
cfg.BoolOpt('record_history',
default=True,
deprecated_for_removal=True,
help='Record alarm change events.'
),
cfg.IntOpt('user_alarm_quota',
default=None,
deprecated_for_removal=True,
help='Maximum number of alarms defined for a user.'
),
cfg.IntOpt('project_alarm_quota',
default=None,
deprecated_for_removal=True,
help='Maximum number of alarms defined for a project.'
),
cfg.IntOpt('alarm_max_actions',
default=-1,
deprecated_for_removal=True,
help='Maximum count of actions for each state of an alarm, '
'non-positive number means no limit.'),
]

View File

@ -57,10 +57,12 @@ OPTS = [
cfg.StrOpt('alarm_connection',
secret=True,
default=None,
deprecated_for_removal=True,
help='The connection string used to connect to the alarm '
'database. (if unset, connection is used)'),
cfg.IntOpt('alarm_history_time_to_live',
default=-1,
deprecated_for_removal=True,
help=("Number of seconds that alarm histories are kept "
"in the database for (<= 0 means forever).")),
cfg.StrOpt('event_connection',