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: '' default: ''
description: Set to True to enable debugging Aodh services. description: Set to True to enable debugging Aodh services.
type: string type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
KeystoneRegion: KeystoneRegion:
type: string type: string
default: 'regionOne' default: 'regionOne'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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