Principle sends invalid config to hacluster
When requesting hacluster manage an init service the principle sends options to hacluster but is currently erroneously sending the word 'param' as well. eg The pinciple is setting: ''res_designate_haproxy'': '' params op monitor interval="5s"'' When it should be: ''res_designate_haproxy'': ''op monitor interval="5s"'' Including the word 'params' evenutally causes hacluster to fail with: ERROR: syntax in primitive: params op monitor interval=5s Change-Id: Id35bb22692914dc3f94465d8ae7d62971a238d4e
This commit is contained in:
parent
7fc2ce2861
commit
13ad020e36
|
@ -537,7 +537,7 @@ class InitService(ResourceDescriptor):
|
|||
self.service_name.replace('-', '_'),
|
||||
self.init_service_name.replace('-', '_'))
|
||||
res_type = 'lsb:{}'.format(self.init_service_name)
|
||||
crm.primitive(res_key, res_type, params='op monitor interval="5s"')
|
||||
crm.primitive(res_key, res_type, op='monitor interval="5s"')
|
||||
crm.init_services(self.init_service_name)
|
||||
if self.clone:
|
||||
clone_key = 'cl_{}'.format(res_key)
|
||||
|
|
Loading…
Reference in New Issue