As a workaround, the check can be removed by injecting updated relation data.
Example:
$ juju run -u nova-cloud-controller/0 -- relation-ids nrpe-external-master nrpe-external-master:257
$ juju run -u nova-cloud-controller/0 -- relation-list -r257 nrpe-container/38
$ juju run -u nrpe-container/38 -- relation-get -r257 - nova-cloud-controller/0
[...checks are here...]
Save the monitors in a file, remove the nova-api-os-compute check:
$ cat monitors.lp1849897.out monitors: remote: nrpe: apache2: {command: check_apache2} haproxy: {command: check_haproxy} haproxy_queue: {command: check_haproxy_queue} haproxy_servers: {command: check_haproxy_servers} memcached: {command: check_memcached} nova-conductor: {command: check_nova-conductor} nova-consoleauth: {command: check_nova-consoleauth} nova-novncproxy: {command: check_nova-novncproxy} nova-scheduler: {command: check_nova-scheduler}
Now set the amended relation data:
$ juju run -u nova-cloud-controller/0 -- relation-set -r257 monitors="$(cat monitors.lp184 9897.out)"
As a workaround, the check can be removed by injecting updated relation data.
Example:
$ juju run -u nova-cloud- controller/ 0 -- relation-ids nrpe-external- master master: 257
nrpe-external-
$ juju run -u nova-cloud- controller/ 0 -- relation-list -r257
nrpe-container/38
$ juju run -u nrpe-container/38 -- relation-get -r257 - nova-cloud- controller/ 0
[...checks are here...]
Save the monitors in a file, remove the nova-api-os-compute check:
$ cat monitors. lp1849897. out queue: {command: check_haproxy_ queue} servers: {command: check_haproxy_ servers} conductor: {command: check_nova- conductor} consoleauth: {command: check_nova- consoleauth} novncproxy: {command: check_nova- novncproxy} scheduler: {command: check_nova- scheduler}
monitors:
remote:
nrpe:
apache2: {command: check_apache2}
haproxy: {command: check_haproxy}
haproxy_
haproxy_
memcached: {command: check_memcached}
nova-
nova-
nova-
nova-
Now set the amended relation data:
$ juju run -u nova-cloud- controller/ 0 -- relation-set -r257 monitors="$(cat monitors.lp184
9897.out)"