Remove old nomad-client from services

Hi all,

I have Nomad running with Consul, and after updating my Nomad servers I have an extra nomad-client service in Consul which did not go away after two weeks now.

Nomad-client services registered in Consul:

Check is showing green in the overview, which seems to be a bug with the latest version. In the details view, the check is shown as failing.

Nomad instances via ‘nomad node status’:

As you can see, the node 192.168.0.76 is not present in Nomad (which is correct), but present in Consul.

Any idea how to get rid of that entry in Consul?

just an observation: if the node is gone and the service is still “green”, it does look dubious.

what is the relevant Consul config for clearing the node once disconnected?

example:

reconnect_timeout = "8h"
leave_on_terminate = true

Agree, does not look great.

The service is green in the overview, but red in the details page

No timeouts explicitly configure, clearing the node is on the default settings.

Any idea how to remove the node/service manually?