Commit ef1ce318 authored by Levin Zimmermann's avatar Levin Zimmermann

software/neoppod: Fix promise with old NEO SR

The NEO promise that was introduced in nexedi/slapos@a3bb9a41
always fails with older NEO versions [1]. In order to not always have a
red monitoring state of our NEO cluster, this patch returns the promise
to the state before NEO specific promise was introduced.

[1] This promise checks NEO cluster state via 'print summary' command [2].
Old NEO doesn't know 'print summary' command. This command was only
introduced with nexedi/neoppod@e434c253.

[2] See nexedi/slapos.toolbox@2d69e8fb
parent 238bb076
...@@ -22,7 +22,7 @@ md5sum = ae00507d9e69209a0babd725cf6be536 ...@@ -22,7 +22,7 @@ md5sum = ae00507d9e69209a0babd725cf6be536
[instance-neo-admin] [instance-neo-admin]
filename = instance-neo-admin.cfg.in filename = instance-neo-admin.cfg.in
md5sum = b6e1ccb1d90160110202e5111eec2afa md5sum = d4ec8f47439c1dce22dae09b6d781ab7
[instance-neo-master] [instance-neo-master]
filename = instance-neo-master.cfg.in filename = instance-neo-master.cfg.in
......
...@@ -8,32 +8,23 @@ ...@@ -8,32 +8,23 @@
parts += parts +=
logrotate-admin logrotate-admin
neoctl neoctl
neo-admin-promise
{%- if monitor_passwd != None %} {%- if monitor_passwd != None %}
monitor-neo-health
extends = extends =
{{ template_monitor }} {{ template_monitor }}
[directory]
plugin = ${:etc}/plugin
[monitor-neo-health]
<= monitor-promise-base
promise = check_neo_health
name = ${:_buildout_section_name_}.py
config-neoctl = ${neoctl:wrapper-path}
{%- if bang_on_problem != None %}
config-bang-on-problem = {{ dumps(bang_on_problem) }}
{%- endif %}
{%- if periodicity != None %}
config-periodicity = {{ dumps(periodicity) }}
{%- endif %}
[monitor-instance-parameter] [monitor-instance-parameter]
monitor-httpd-port = {{ slapparameter_dict.get('monitor-port', 2052) }} monitor-httpd-port = {{ slapparameter_dict.get('monitor-port', 2052) }}
monitor-title = neo monitor-title = neo
password = {{ monitor_passwd }} password = {{ monitor_passwd }}
{%- endif %} {%- endif %}
[neo-admin-promise]
recipe = slapos.cookbook:check_port_listening
hostname = ${neo-admin:ip}
port = ${neo-admin:port}
path = ${directory:promises}/neo-admin-promise
[neo-admin] [neo-admin]
recipe = slapos.cookbook:neoppod.admin recipe = slapos.cookbook:neoppod.admin
binary = {{bin_directory}}/neoadmin binary = {{bin_directory}}/neoadmin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment