Label f5_virtual_server_destination is using Name when it should use Address

Open
#193 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python

Research direction

Run the two tmsh commands in the reproduction steps, creating the named virtual address before the virtual server. Trace how the f5_virtual_server_info metric sets f5_virtual_server_destination, including the AS3 virtual_address case. Done means the label uses /Common/192.168.254.254:80 rather than /Common/myCoolAddress:80.

Written by the indexing model from the issue text.

Description

f5_virtual_server_info metric label f5_virtual_server_destination is using Name when it should use Address

To Reproduce
Create a virtual address object before creating a virtual server with that IP address which has a name other than the IP address:

tmsh create ltm virtual-address myCoolAddress address 192.168.254.254
tmsh create ltm virtual myCoolVirtual destination 192.168.254.254:80

Expected behavior
f5_virtual_server_info metric label f5_virtual_server_destination should contain an IP address:
f5_virtual_server_info{...f5_virtual_server_destination="/Common/192.168.254.254:80"...}

Current Behavior
f5_virtual_server_info metric label f5_virtual_server_destination contains the name of the virtual address, not the IP:
f5_virtual_server_info{...f5_virtual_server_destination="/Common/myCoolAddress:80"...}

This manifests when AS3 is creating a virtual server using a virtual_address class (often used to specify dynamic routing advertisement) but it can be replicated outside AS3 with those two commands above.

Dominant language
Python
Stars
106
Forks
43
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from f5devcentral/application-study-tool

All issues in f5devcentral/application-study-tool

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.