hashicorp / hashicorp/consul

Duplicate nomad services

Open
#6,842 4 comments 1 reaction 0 assignees View on GitHub
theme/consul-nomad
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Overview of the Issue

Duplicated service registration of Nomad (and no Nomad icon). Not sure if this is a Consul or Nomad issue...

As shown in the image, I have an extra `nomad` and `nomad-client` service on one node, yet not able to debug from where it originates. The same service checks also appear in the appropriately labelled nomad-clients and nomad-servers.

image

#### Reproduction Steps

After installing the cluster, I think it was working as expected without the extra nomad and nomad-client, but then I was playing around with `systemctl enable --now nomad`, then I remember seeing the extra one.

### Consul info for both Client and Server

I only have 3 nodes, all servers

Server info

```
agent:
check_monitors = 0
check_ttls = 0
checks = 8
services = 9
build:
prerelease =
revision =
version = 1.6.2
consul:
acl = disabled
bootstrap = false
known_datacenters = 1
leader = false
leader_addr = 192.168.1.121:8300
server = true
raft:
applied_index = 133907
commit_index = 133907
fsm_pending = 0
last_contact = 26.883494ms
last_log_index = 133907
last_log_term = 1094866
last_snapshot_index = 131138
last_snapshot_term = 1094751
latest_configuration = [{Suffrage:Voter ID:a1bd80bd-e3c1-96b4-d5bc-30e620485b96 Address:192.168.1.122:8300} {Suffrage:Voter ID:29349689-81c8-b1bd-4cec-daa1a894d773 Address:192.168.1.121:8300} {Suffrage:Voter ID:e5049ebb-25b4-fe97-3da5-0d4ee3fe3d33 Address:192.168.1.120:8300}]
latest_configuration_index = 40078
num_peers = 2
protocol_version = 3
protocol_version_max = 3
protocol_version_min = 0
snapshot_version_max = 1
snapshot_version_min = 0
state = Follower
term = 1094866
runtime:
arch = arm64
cpu_count = 4
goroutines = 93
max_procs = 4
os = linux
version = go1.12.13
serf_lan:
coordinate_resets = 0
encrypted = true
event_queue = 0
event_time = 38
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 66
members = 3
query_queue = 0
query_time = 1
serf_wan:
coordinate_resets = 0
encrypted = true
event_queue = 0
event_time = 1
failed = 0
health_score = 0
intent_queue = 0
left = 0
member_time = 49
members = 3
query_queue = 0
query_time = 1
```

### Operating system and Environment details

Ubuntu ARM64

### Extra

Only one nomad process is running

```
$ sudo ps -ef | grep nomad | grep -v grep
root 23859 1 5 03:40 ? 00:07:06 /usr/local/bin/nomad agent -config=/etc/nomad.d
```

And nomad is otherwise healthy

```
$ nomad node status
ID DC Name Class Drain Eligibility Status
a9dcb18b picocluster pico1 false eligible ready
4fd226cf picocluster pico0 false eligible ready
14bbadbc picocluster pico2 false eligible ready
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.