nomad icon indicating copy to clipboard operation
nomad copied to clipboard

Nomad Web UI services page, rows for tags and address/port does not correspond

Open GuyAtTheFront opened this issue 1 year ago • 2 comments

Nomad version

Nomad v1.7.2 BuildDate 2023-12-13T19:59:42Z Revision 64e3dca9274b493e38a49fda3a70fd31d0485b91

Operating system and Environment details

  • Operating System: Ubuntu 23.04
  • Kernel: Linux 6.2.0-39-generic
  • Architecture: x86-64

Issue

On the services endpoint on the web UI, you see the following:

  Service Name   Level   Tag   Allocations  
 -------------- ------- ----- ------------- 
  app            group   foo             3  
  app            group   bar             3  
  app            group   baz             3  

When you click on any of those services, you see the same data:

  Allocation       Client      IP Address & Port  
 ------------- -------------- ------------------- 
  alloc_id-01   client_id-01   127.0.0.1:1111     
  alloc_id-01   client_id-01   127.0.0.1:2222     
  alloc_id-01   client_id-01   127.0.0.1:3333     

However, tags (foo, bar, baz) does not correspond to ports (1111, 2222, 3333) i.e. (row 1) tag foo on the first page may correspond to (row 3) 3333 on the second page.

Together with #20264, when dynamic ports are used, it takes a bit of trial and error or luck to find a particular service.tag endpoint.

Reproduction steps

Refer to #17109

Expected Result

To correctly correlate tags with ports, rows of first page should correspond to rows of second page

Actual Result

They do not correspond

GuyAtTheFront avatar Apr 11 '24 17:04 GuyAtTheFront

Hi @GuyAtTheFront! I'm not sure off the top of my head how these get sorted, but I maybe an even better solution would be to ensure that the tags show up in both tables so that its unambiguous. I'll mark this issue for roadmapping.

tgross avatar Apr 11 '24 18:04 tgross

Your idea is much better! Just to highlight, solving #17109 should sort of resolve this issue. Though having the tags beside the address/port makes the UX much better.

GuyAtTheFront avatar Apr 12 '24 06:04 GuyAtTheFront