[DCOS_OSS-1118] "Public IP" field in UI shows the master's PRIVATE IP instead Created: 18/May/17 Updated: 09/Nov/18 Resolved: 05/Oct/18 |
|
Status: | Resolved |
Project: | DC/OS |
Component/s: | dcos-ui |
Affects Version/s: | None |
Fix Version/s: | DC/OS 1.12.0 |
Type: | Bug | Priority: | Low |
Reporter: | Fernando Sanchez (Inactive) | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | ||
Labels: | dcos-ui, ui | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
Team: |
Description |
from the master: $ ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001 inet 10.0.0.120 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80::488:f3ff:fee8:c8c8 prefixlen 64 scopeid 0x20<link> ether 06:88:f3:e8:c8:c8 txqueuelen 1000 (Ethernet) RX packets 1615979 bytes 1477369641 (1.3 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 853415 bytes 120158361 (114.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [centos@ip-10-0-0-120 dcos]$ curl ipinfo.io/ip 34.209.173.94 |
Comments |
Comment by Johannes Unterstein [ 13/Jun/17 ] |
Hey Orlando Hohmeier I am not quite sure if you are the correct person to talk to, but do you know where these IP address informations are queried?
Thanks Johannes |
Comment by Fernando Sanchez (Inactive) [ 13/Jun/17 ] |
This is likely caused by the fact that "detect_ip_public" script in the public nodes is really a copy of "detect_ip", when in reality the logic should be different (something like the "curl ipinfo.io/ip" command referenced above).
[root@ip-172-31-4-207 ~]# cat /opt/mesosphere/bin/detect_ip #!/bin/sh curl -fsSL http://169.254.169.254/latest/meta-data/local-ipv4 [root@ip-172-31-4-207 ~]# cat /opt/mesosphere/bin/detect_ip_public #!/bin/sh curl -fsSL http://169.254.169.254/latest/meta-data/local-ipv4 [root@ip-172-31-4-207 ~]#
|