+ CONSUL_BIND=
+ [ -n  ]
+ CONSUL_CLIENT=
+ [ -n  ]
+ CONSUL_DATA_DIR=/consul/data
+ CONSUL_CONFIG_DIR=/consul/config
+ [ -n  ]
+ [ a = - ]
+ [ agent = agent ]
+ shift
+ set -- consul agent -data-dir=/consul/data -config-dir=/consul/config -bootstrap-expect=3 -enable-script-checks -retry-join=onap-consul-server-0.consul-server -retry-join=onap-consul-server-1.consul-server -retry-join=onap-consul-server-2.consul-server -client=0.0.0.0 -server -ui
+ [ consul = consul ]
+ stat -c %u /consul/data
+ id -u consul
+ [ 100 != 100 ]
+ stat -c %u /consul/config
+ id -u consul
+ [ 100 != 100 ]
+ [ ! -z ]
+ exec consul agent -data-dir=/consul/data -config-dir=/consul/config -bootstrap-expect=3 -enable-script-checks -retry-join=onap-consul-server-0.consul-server -retry-join=onap-consul-server-1.consul-server -retry-join=onap-consul-server-2.consul-server -client=0.0.0.0 -server -ui
bootstrap_expect > 0: expecting 3 servers
==> Starting Consul agent...
==> Consul agent running!
           Version: 'v1.0.6'
           Node ID: '58461438-5e89-5431-d456-c5fa6196cb4d'
         Node name: 'onap-consul-server-0'
        Datacenter: 'dc1' (Segment: '<all>')
            Server: true (Bootstrap: false)
       Client Addr: [0.0.0.0] (HTTP: 8500, HTTPS: -1, DNS: 8600)
      Cluster Addr: 10.233.72.55 (LAN: 8301, WAN: 8302)
           Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false

==> Log data will now stream in as it occurs:

    2023/04/29 02:46:25 [INFO] raft: Initial configuration (index=0): []
    2023/04/29 02:46:25 [INFO] raft: Node at 10.233.72.55:8300 [Follower] entering Follower state (Leader: "")
    2023/04/29 02:46:25 [INFO] serf: EventMemberJoin: onap-consul-server-0.dc1 10.233.72.55
    2023/04/29 02:46:25 [INFO] serf: EventMemberJoin: onap-consul-server-0 10.233.72.55
    2023/04/29 02:46:25 [INFO] agent: Started DNS server 0.0.0.0:8600 (udp)
    2023/04/29 02:46:25 [INFO] consul: Adding LAN server onap-consul-server-0 (Addr: tcp/10.233.72.55:8300) (DC: dc1)
    2023/04/29 02:46:25 [INFO] consul: Handled member-join event for server "onap-consul-server-0.dc1" in area "wan"
    2023/04/29 02:46:25 [INFO] agent: Started DNS server 0.0.0.0:8600 (tcp)
    2023/04/29 02:46:25 [INFO] agent: Started HTTP server on [::]:8500 (tcp)
    2023/04/29 02:46:25 [INFO] agent: started state syncer
    2023/04/29 02:46:25 [INFO] agent: Retry join LAN is supported for: aliyun aws azure digitalocean gce os scaleway softlayer
    2023/04/29 02:46:25 [INFO] agent: Joining LAN cluster...
    2023/04/29 02:46:25 [INFO] agent: (LAN) joining: [onap-consul-server-0.consul-server onap-consul-server-1.consul-server onap-consul-server-2.consul-server]
    2023/04/29 02:46:27 [WARN] memberlist: Failed to resolve onap-consul-server-0.consul-server: lookup onap-consul-server-0.consul-server on 169.254.25.10:53: no such host
    2023/04/29 02:46:29 [WARN] memberlist: Failed to resolve onap-consul-server-1.consul-server: lookup onap-consul-server-1.consul-server on 169.254.25.10:53: no such host
    2023/04/29 02:46:31 [WARN] raft: no known peers, aborting election
    2023/04/29 02:46:31 [WARN] memberlist: Failed to resolve onap-consul-server-2.consul-server: lookup onap-consul-server-2.consul-server on 169.254.25.10:53: no such host
    2023/04/29 02:46:31 [INFO] agent: (LAN) joined: 0 Err: 3 error(s) occurred:

* Failed to resolve onap-consul-server-0.consul-server: lookup onap-consul-server-0.consul-server on 169.254.25.10:53: no such host
* Failed to resolve onap-consul-server-1.consul-server: lookup onap-consul-server-1.consul-server on 169.254.25.10:53: no such host
* Failed to resolve onap-consul-server-2.consul-server: lookup onap-consul-server-2.consul-server on 169.254.25.10:53: no such host
    2023/04/29 02:46:31 [WARN] agent: Join LAN failed: <nil>, retrying in 30s
    2023/04/29 02:46:32 [ERR] agent: failed to sync remote state: No cluster leader
==> Newer Consul version available: 1.15.2 (currently running: 1.0.6)
    2023/04/29 02:46:48 [ERR] agent: Coordinate update error: No cluster leader
    2023/04/29 02:46:52 [INFO] serf: EventMemberJoin: onap-consul-server-1 10.233.69.237
    2023/04/29 02:46:52 [INFO] consul: Adding LAN server onap-consul-server-1 (Addr: tcp/10.233.69.237:8300) (DC: dc1)
    2023/04/29 02:46:52 [INFO] serf: EventMemberJoin: onap-consul-server-1.dc1 10.233.69.237
    2023/04/29 02:46:52 [INFO] consul: Handled member-join event for server "onap-consul-server-1.dc1" in area "wan"
    2023/04/29 02:46:57 [INFO] serf: EventMemberJoin: onap-consul-5c69875fbb-mftwg 10.233.70.177
    2023/04/29 02:47:01 [INFO] agent: (LAN) joining: [onap-consul-server-0.consul-server onap-consul-server-1.consul-server onap-consul-server-2.consul-server]
    2023/04/29 02:47:02 [ERR] agent: failed to sync remote state: No cluster leader
    2023/04/29 02:47:07 [WARN] memberlist: Failed to resolve onap-consul-server-2.consul-server: lookup onap-consul-server-2.consul-server on 169.254.25.10:53: no such host
    2023/04/29 02:47:07 [INFO] agent: (LAN) joined: 2 Err: <nil>
    2023/04/29 02:47:07 [INFO] agent: Join LAN completed. Synced with 2 initial agents
    2023/04/29 02:47:10 [INFO] serf: EventMemberJoin: onap-consul-server-2 10.233.70.159
    2023/04/29 02:47:10 [INFO] consul: Adding LAN server onap-consul-server-2 (Addr: tcp/10.233.70.159:8300) (DC: dc1)
    2023/04/29 02:47:10 [INFO] consul: Found expected number of peers, attempting bootstrap: 10.233.72.55:8300,10.233.69.237:8300,10.233.70.159:8300
    2023/04/29 02:47:10 [INFO] serf: EventMemberJoin: onap-consul-server-2.dc1 10.233.70.159
    2023/04/29 02:47:10 [INFO] consul: Handled member-join event for server "onap-consul-server-2.dc1" in area "wan"
    2023/04/29 02:47:12 [ERR] agent: Coordinate update error: No cluster leader
    2023/04/29 02:47:12 [WARN] raft: Heartbeat timeout from "" reached, starting election
    2023/04/29 02:47:12 [INFO] raft: Node at 10.233.72.55:8300 [Candidate] entering Candidate state in term 2
    2023/04/29 02:47:13 [INFO] raft: Election won. Tally: 2
    2023/04/29 02:47:13 [INFO] raft: Node at 10.233.72.55:8300 [Leader] entering Leader state
    2023/04/29 02:47:13 [INFO] raft: Added peer 153fdd2b-750f-6c87-21f7-c31c40d90beb, starting replication
    2023/04/29 02:47:13 [INFO] raft: Added peer 75ddb66a-2da9-8fbf-8da6-70a6705f37e8, starting replication
    2023/04/29 02:47:13 [INFO] consul: cluster leadership acquired
    2023/04/29 02:47:13 [INFO] consul: New leader elected: onap-consul-server-0
    2023/04/29 02:47:13 [WARN] raft: AppendEntries to {Voter 75ddb66a-2da9-8fbf-8da6-70a6705f37e8 10.233.70.159:8300} rejected, sending older logs (next: 1)
    2023/04/29 02:47:13 [INFO] raft: pipelining replication to peer {Voter 75ddb66a-2da9-8fbf-8da6-70a6705f37e8 10.233.70.159:8300}
    2023/04/29 02:47:13 [INFO] consul: member 'onap-consul-server-1' joined, marking health alive
    2023/04/29 02:47:13 [INFO] consul: member 'onap-consul-5c69875fbb-mftwg' joined, marking health alive
    2023/04/29 02:47:13 [WARN] raft: AppendEntries to {Voter 153fdd2b-750f-6c87-21f7-c31c40d90beb 10.233.69.237:8300} rejected, sending older logs (next: 1)
    2023/04/29 02:47:13 [INFO] consul: member 'onap-consul-server-2' joined, marking health alive
    2023/04/29 02:47:13 [INFO] raft: pipelining replication to peer {Voter 153fdd2b-750f-6c87-21f7-c31c40d90beb 10.233.69.237:8300}
    2023/04/29 02:47:13 [INFO] consul: member 'onap-consul-server-0' joined, marking health alive
    2023/04/29 02:47:13 [INFO] agent: Synced node info
    2023/04/29 04:27:21 [ERR] memberlist: Push/Pull with onap-consul-server-1 failed: read tcp 10.233.72.55:56986->10.233.69.237:8301: read: connection reset by peer
    2023/04/29 04:33:22 [ERR] memberlist: Received invalid msgType (22) from=127.0.0.6:36017
