Make memcached logs verbosity configurable

This adds the MemcachedDebug flag which makes memcached logs verbose.
Also, the service now reacts to the global Debug flag.

Related-Bug: #1720183
Change-Id: Ie8120359a12f734aad584b083c8362dd21b70dea
This commit is contained in:
Juan Antonio Osorio Robles 2017-10-30 10:00:49 +02:00
parent a0991433fa
commit 8523420930
2 changed files with 29 additions and 1 deletions

View File

@ -39,6 +39,21 @@ parameters:
MonitoringSubscriptionMemcached: MonitoringSubscriptionMemcached:
default: 'overcloud-memcached' default: 'overcloud-memcached'
type: string type: string
Debug:
default: false
description: Set to True to enable debugging on all services.
type: boolean
MemcachedDebug:
default: ''
description: Set to True to enable debugging Memcached service.
type: string
conditions:
service_debug:
or:
- equals: [{get_param: MemcachedDebug}, 'true']
- equals: [{get_param: MemcachedDebug}, 'True']
- equals: [{get_param: Debug}, true]
outputs: outputs:
role_data: role_data:
@ -54,7 +69,14 @@ outputs:
# internal_api_subnet - > IP/CIDR # internal_api_subnet - > IP/CIDR
memcached::listen_ip: {get_param: [ServiceNetMap, MemcachedNetwork]} memcached::listen_ip: {get_param: [ServiceNetMap, MemcachedNetwork]}
memcached::max_memory: {get_param: MemcachedMaxMemory} memcached::max_memory: {get_param: MemcachedMaxMemory}
memcached::verbosity: 'v' memcached::verbosity:
list_join:
- ''
- - 'v'
- if:
- service_debug
- 'v'
- ''
tripleo.memcached.firewall_rules: tripleo.memcached.firewall_rules:
'121 memcached': '121 memcached':
dport: 11211 dport: 11211

View File

@ -0,0 +1,6 @@
---
features:
- |
The memcached service now reacts to the Debug flag, which will make its
logs verbose. Also, the MemcachedDebug flag was added, which will just add
this for the individual service.