Skip to content

Fabio is not adding route, but health check is passing #142

@artburkart

Description

@artburkart

Here is the information I have:

GitHub issue Fabio

curl localhost:8500/v1/health/state/any?pretty

    {
        "Node": "ip-172-31-60-93",
        "CheckID": "helloworld",
        "Name": "HTTP helloworld on port 80",
        "Status": "passing",
        "Notes": "",
        "Output": "HTTP GET http://localhost: 200 OK Output: \u003chtml\u003e\n\u003chead\u003e\n\t\u003ctitle\u003eHello world!\u003c/title\u003e\n\t\u003clink href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'\u003e\n\t\u003cstyle\u003e\n\tbody {\n\t\tbackground-color: white;\n\t\ttext-align: center;\n\t\tpadding: 50px;\n\t\tfont-family: \"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;\n\t}\n\n\t#logo {\n\t\tmargin-bottom: 40px;\n\t}\n\t\u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\u003cimg id=\"logo\" src=\"logo.png\" /\u003e\n\t\u003ch1\u003eHello world!\u003c/h1\u003e\n\t\u003ch3\u003eMy hostname is 0c38c2dec137\u003c/h3\u003e\t\u003c/body\u003e\n\u003c/html\u003e\n",
        "ServiceID": "",
        "ServiceName": "",
        "CreateIndex": 0,
        "ModifyIndex": 0
    },

Service and healthcheck (/etc/consul.d/helloworld.json):

{
    "service": {
        "name": "helloworld",
        "tags": [
            "urlprefix-/hello"
        ],
        "port": 80
    },
    "check": {
        "id": "helloworld",
        "name": "HTTP helloworld on port 80",
        "http": "http://localhost",
        "interval": "10s",
        "timeout": "1s"
    }
}

App service

docker run -d -p80:80 tutum/hello-world

Extra check:

dig @127.0.0.1 -p 8600 helloworld.service.consul
;; ANSWER SECTION:
helloworld.service.consul. 0    IN      A       some.ip.address.here

No route add event occurs in my fabio logs and it definitely doesn't show up on localhost:9888/routes. Am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions