Ensure services are not started while unit paused
Closes-Bug: #1983594 Change-Id: Ib05687d0146fee7609f36ca8692dafe0082846bc
This commit is contained in:
parent
13211f092c
commit
1dc253a098
@ -105,6 +105,7 @@ def config_rendered():
|
||||
reactive.set_state('config.rendered')
|
||||
|
||||
|
||||
@reactive.when_none('charm.paused')
|
||||
@reactive.when('config.rendered', 'base-config.rendered')
|
||||
def start_designate_services():
|
||||
"""Enable services when database is synchronized"""
|
||||
|
@ -73,6 +73,8 @@ class TestRegisteredHooks(test_utils.TestRegisteredHooks):
|
||||
'when_none': {
|
||||
'clear_dns_config_available': (
|
||||
'dns-slaves-config-valid', 'dns-backend.available', ),
|
||||
'start_designate_services': (
|
||||
'charm.paused', ),
|
||||
},
|
||||
'when_file_changed': {
|
||||
'local_pools_updated': ('/etc/designate/pools.yaml', ),
|
||||
|
Loading…
Reference in New Issue
Block a user