Add constraints to service Debug flags

The service debug flags (e.g. BarbicanDebug), allow the deployer to set
the verbose logging for a specific service. They are strings to allow
folks to set it up regardless of the global Debug flag being set.

This commit adds a constraint to set the allowed values for these
parameters. It is based on a subset of the underlying implementation
that sets this flag (which uses any2bool).

Change-Id: I35e7a7ee35aefb7108ec6b0bb8f3124610fb97ee
This commit is contained in:
Juan Antonio Osorio Robles 2017-11-06 08:23:21 +02:00
parent e463ca15fb
commit 2f7888c2c5
21 changed files with 42 additions and 0 deletions

View File

@ -64,6 +64,8 @@ parameters:
default: ''
description: Set to True to enable debugging Aodh services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -46,6 +46,8 @@ parameters:
default: ''
description: Set to True to enable debugging Barbican service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -74,6 +74,8 @@ parameters:
default: ''
description: Set to True to enable debugging Ceilometer services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -16,6 +16,8 @@ parameters:
default: ''
description: Set to True to enable debugging on Cinder services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
ServiceData:
default: {}
description: Dictionary packing service data

View File

@ -42,6 +42,8 @@ parameters:
default: ''
description: Set to True to enable debugging Glance service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -38,6 +38,8 @@ parameters:
default: ''
description: Set to True to enable debugging Glance service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
GlancePassword:
description: The password for the glance service and db account, used by the glance services.
type: string

View File

@ -64,6 +64,8 @@ parameters:
default: ''
description: Set to True to enable debugging Gnocchi services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
GnocchiStorageSwiftEndpointType:
default: 'internalURL'
description: Set to modify which endpoint type is gnocchi accessing swift

View File

@ -12,6 +12,8 @@ parameters:
default: ''
description: Set to True to enable debugging Heat services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
RabbitPassword:
description: The password for RabbitMQ
type: string

View File

@ -22,6 +22,8 @@ parameters:
default: false
description: Set to True to enable debugging Horizon service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
DefaultPasswords:
default: {}
type: json

View File

@ -38,6 +38,8 @@ parameters:
default: ''
description: Set to True to enable debugging Ironic services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
IronicPassword:
description: The password for the Ironic service and db account, used by the Ironic services
type: string

View File

@ -72,6 +72,8 @@ parameters:
default: ''
description: Set to True to enable debugging Keystone service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
AdminEmail:
default: 'admin@example.com'
description: The email for the keystone admin account.

View File

@ -38,6 +38,8 @@ parameters:
default: ''
description: Set to True to enable debugging Manila services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
RabbitPassword:
description: The password for RabbitMQ
type: string

View File

@ -47,6 +47,8 @@ parameters:
default: ''
description: Set to True to enable debugging Memcached service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
conditions:
service_debug:

View File

@ -39,6 +39,8 @@ parameters:
default: ''
description: Set to True to enable debugging Mistral services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
RabbitPassword:
description: The password for RabbitMQ
type: string

View File

@ -58,6 +58,8 @@ parameters:
default: ''
description: Set to True to enable debugging Neutron services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
EnableConfigPurge:
type: boolean
default: false

View File

@ -82,6 +82,8 @@ parameters:
default: ''
description: Set to True to enable debugging Nova services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
EnableConfigPurge:
type: boolean
default: false

View File

@ -38,6 +38,8 @@ parameters:
default: ''
description: Set to True to enable debugging Octavia services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
EnableConfigPurge:
type: boolean
default: false

View File

@ -42,6 +42,8 @@ parameters:
default: ''
description: Set to True to enable debugging Panko services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -60,6 +60,8 @@ parameters:
default: ''
description: Set to True to enable debugging Sahara services.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
SaharaPlugins:
default: ["ambari","cdh","mapr","vanilla","spark","storm"]
description: Sahara enabled plugin list

View File

@ -42,6 +42,8 @@ parameters:
default: ''
description: Set to True to enable debugging Tacker service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion:
type: string
default: 'regionOne'

View File

@ -38,6 +38,8 @@ parameters:
default: ''
description: Set to True to enable debugging Zaqar service.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
ZaqarPassword:
description: The password for Zaqar
type: string