-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI no longer showing host IP address for nodes in Services view (consul 1.2.2) #4579
Comments
Hi @AdamGoldsmith , Thanks very much for the report. I'm just looking at the equivalent view here: https://demo.consul.io/ui/dc1/services/api-proxy ..and I see the IP addresses. I know there was a change between 1.2.1 and 1.2.2 as to where we get the data from to display the IP address here. So I'm thinking there is something specific to your setup (as well as other peoples), that we aren't taking into account. Would it be possible for you to post the response of the:
..endpoint, you can either get this from the web inspector, or from a via curl. Thanks! |
Hi John,
Thank you very much for your rapid response!
I hope this is the information you have requested...
```
[{"Node":{"ID":"d628d6ce-5be2-bb87-7b8e-bce474453d50","Node":"consul-s1","Address":"10.1.42.101","Datacenter":"dc1","TaggedAddresses":{"lan":"10.1.42.101","wan":"10.1.42.101"},"Meta":{"consul-network-segment":""},"CreateIndex":8,"ModifyIndex":12},"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":"","Meta":null,"Port":8300,"EnableTagOverride":false,"ProxyDestination":"","Connect":{"Native":false,"Proxy":null},"CreateIndex":8,"ModifyIndex":8},"Checks":[{"Node":"consul-s1","CheckID":"serfHealth","Name":"Serf
Health Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Definition":{},"CreateIndex":8,"ModifyIndex":8}]},{"Node":{"ID":"44a4fe8c-b59b-553a-6846-86c6aa907aef","Node":"consul-s2","Address":"10.1.42.102","Datacenter":"dc1","TaggedAddresses":{"lan":"10.1.42.102","wan":"10.1.42.102"},"Meta":{"consul-network-segment":""},"CreateIndex":6,"ModifyIndex":6},"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":"","Meta":null,"Port":8300,"EnableTagOverride":false,"ProxyDestination":"","Connect":{"Native":false,"Proxy":null},"CreateIndex":10,"ModifyIndex":10},"Checks":[{"Node":"consul-s2","CheckID":"serfHealth","Name":"Serf
Health Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Definition":{},"CreateIndex":10,"ModifyIndex":10}]},{"Node":{"ID":"3b57c23f-731a-a31f-f491-650f8717236b","Node":"consul-s3","Address":"10.1.42.103","Datacenter":"dc1","TaggedAddresses":{"lan":"10.1.42.103","wan":"10.1.42.103"},"Meta":{"consul-network-segment":""},"CreateIndex":9,"ModifyIndex":14},"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":"","Meta":null,"Port":8300,"EnableTagOverride":false,"ProxyDestination":"","Connect":{"Native":false,"Proxy":null},"CreateIndex":9,"ModifyIndex":9},"Checks":[{"Node":"consul-s3","CheckID":"serfHealth","Name":"Serf
Health Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Definition":{},"CreateIndex":9,"ModifyIndex":9}]},{"Node":{"ID":"f975e538-616a-4d3d-03b1-b7908d0d1a5e","Node":"consul-s4","Address":"10.1.42.104","Datacenter":"dc1","TaggedAddresses":{"lan":"10.1.42.104","wan":"10.1.42.104"},"Meta":{"consul-network-segment":""},"CreateIndex":5,"ModifyIndex":13},"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":"","Meta":null,"Port":8300,"EnableTagOverride":false,"ProxyDestination":"","Connect":{"Native":false,"Proxy":null},"CreateIndex":5,"ModifyIndex":5},"Checks":[{"Node":"consul-s4","CheckID":"serfHealth","Name":"Serf
Health Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Definition":{},"CreateIndex":5,"ModifyIndex":5}]},{"Node":{"ID":"2c378b31-e47c-83e8-6788-553b6fbeef1b","Node":"consul-s5","Address":"10.1.42.105","Datacenter":"dc1","TaggedAddresses":{"lan":"10.1.42.105","wan":"10.1.42.105"},"Meta":{"consul-network-segment":""},"CreateIndex":7,"ModifyIndex":11},"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":"","Meta":null,"Port":8300,"EnableTagOverride":false,"ProxyDestination":"","Connect":{"Native":false,"Proxy":null},"CreateIndex":7,"ModifyIndex":7},"Checks":[{"Node":"consul-s5","CheckID":"serfHealth","Name":"Serf
Health Status","Status":"passing","Notes":"","Output":"Agent alive and
reachable","ServiceID":"","ServiceName":"","ServiceTags":[],"Definition":{},"CreateIndex":7,"ModifyIndex":7}]}]
```
Much nicer when it's pushed through jq !!
Regards,
Adam
…On Fri, 24 Aug 2018 at 17:30, John Cowen ***@***.***> wrote:
Hi @AdamGoldsmith <https://github.com/AdamGoldsmith> ,
Thanks very much for the report. I'm just looking at the equivalent view
here:
https://demo.consul.io/ui/dc1/services/api-proxy
..and I see the IP addresses. I know there was a change between 1.2.1 and
1.2.2 as to where we get the data from to display the IP address here. So
I'm thinking there is something specific to your setup (as well as other
peoples), that we aren't taking into account.
Would it be possible for you to post the response of the:
/v1/health/service/consul?dc=dc1
..endpoint, you can either get this from the web inspector, or from a via
curl.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4579 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab8892pEiAfqELKHQLZuLzyY5VwFLmiMks5uUCpAgaJpZM4WLoim>
.
|
😁 No problem Adam, the least I can do! This info is exactly what I wanted, I'll come back to you as soon as possible. Likely to be beginning of next week now. I hope this doesn't affect your workflow too much in the meantime. Thanks again John |
Brill John thanks.
This is not affecting my work - I am merely using this in a
test/development environment.
Have a good weekend.
Regards,
Adam
…On Fri, 24 Aug 2018 at 17:43, John Cowen ***@***.***> wrote:
Thank you very much for your rapid response!
😁 No problem Adam, the least I can do!
This info is exactly what I wanted, I'll come back to you as soon as
possible. Likely to be beginning of next week now. I hope this doesn't
affect your workflow too much in the meantime.
Thanks again
John
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4579 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab8899hbcELImI4HV-6QTYVKAY52V2Ikks5uUC0kgaJpZM4WLoim>
.
|
Hi @AdamGoldsmith , I've had quite a deep look into this and a good chat with the backend team here. If you look closely at the response JSON above, the
Looking at this from a 'the Consul UI is just a thin client' perspective, we are showing what is returned from the API. This of course doesn't help you! So I'm going to add a fix to the UI to default to the Node Address if there is no Service Address, a straightforward fix. We do document that a Thanks again for bringing this up! |
Hi John,
Many thanks for this quick and in-depth update. Thank you for the fix
addition, and I appreciate your issue submission also.
I would update this ServiceAddress manually within the service HCL file at
installation time but I am failing to see where I add this. Even reading
the documentation, the only time ServiceAddress is referenced is as a
result of a catalog query via the API.
Am I missing something here?
Regards,
Adam
…On Tue, 28 Aug 2018, 15:33 John Cowen, ***@***.***> wrote:
Hi @AdamGoldsmith <https://github.com/AdamGoldsmith> ,
I've had quite a deep look into this and a good chat with the backend team
here. If you look closely at the response JSON above, the Service.Address
value is blank.
"Service":{"ID":"consul","Service":"consul","Tags":[],"Address":""
Looking at this from a 'the Consul UI is just a thin client' perspective,
we are showing what is returned from the API. This of course doesn't help
you! So I'm going to add a fix to the UI to default to the Node Address is
there is no Service Address, a straightforward fix.
We do document that a ServiceAddress can be blank (
https://www.consul.io/api/catalog.html#serviceaddress), but historically
I've found a few places where this has been confusing, so I've submitted an
issue for the backend team to consider this as a feature request (#4599
<#4599>) for consideration in
the future.
Thanks again for bringing this up!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4579 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ab8892I1Gb0VBs4j7B2CXk0ZdIMwQOK8ks5uVVS6gaJpZM4WLoim>
.
|
Hi @AdamGoldsmith , You should be able to specify an If you have any other questions regarding usage/configuration, maybe give the mailing list a try. Re: The 'hedge for an empty value' in the UI itself. I'll try to keep you updated here when this is in the UI. Thanks again for the report, do let me know if you spot anything else! Thanks, John |
Overview of the Issue
After upgrading from Consul 1.2.1 to 1.2.2, each node's IP address is no longer displayed on the UI for the Nodes.
1.2.1
1.2.2
These before and after images were taken immediately after a brand new installation of Consul using Ansible
Reproduction Steps
Steps to reproduce this issue, eg:
Consul info for both Client and Server
Client info
Server info
Operating system and Environment details
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
Linux consul-s1 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
Log Fragments
Considering the reported bug, unsure the log output would serve much use here. Happy to supply any additional required info if requested/needed.
The text was updated successfully, but these errors were encountered: