[GH-ISSUE #11] Failed to fetch IP address from server.GetQEMUInterfaces #7

Open
opened 2026-03-14 08:23:39 +03:00 by kerem · 2 comments
Owner

Originally created by @deamwork on GitHub (Dec 2, 2025).
Original GitHub issue: https://github.com/andrew-d/proxmox-service-discovery/issues/11

Log shows the inventory list has been correctly fetched but no valid IP returned.

2025/12/02 07:13:37 INFO finished fetching inventory from node node=g10
2025/12/02 07:13:37 DEBUG fetched inventory from Proxmox num_nodes=1 num_vms=7 num_lxcs=1
2025/12/02 07:13:37 WARN no addresses for resource fqdn=bird.pve.internal.domain.tld.
2025/12/02 07:13:37 WARN no addresses for resource fqdn=dns.pve.internal.domain.tld.
2025/12/02 07:14:37 DEBUG fetched QEMU guest interfaces vm=106 node=g10 num_interfaces=19
2025/12/02 07:14:37 DEBUG fetched IP addresses for VM node=g10 vm=bird addrs=[]
2025/12/02 07:14:37 DEBUG fetched QEMU guest interfaces vm=104 node=g10 num_interfaces=4
2025/12/02 07:14:37 DEBUG fetched IP addresses for VM node=g10 vm=dns addrs=[]
2025/12/02 07:14:37 INFO finished fetching inventory from node node=g10

API from PVE did returned with correct result when also using agent/network-get-interfaces:

{
  "hardware-address": "2e:6e:xx:xx:72:cd",
  "statistics": {
    "tx-errs": 0,
    "rx-dropped": 57183,
    "tx-bytes": 85102272373,
    "rx-packets": 200852685,
    "tx-dropped": 0,
    "rx-errs": 0,
    "tx-packets": 144342152,
    "rx-bytes": 199230248057
  },
  "name": "ens18",
  "ip-addresses": [
    {
      "prefix": 24,
      "ip-address-type": "ipv4",
      "ip-address": "192.168.10.9"
    },
    {
      "ip-address": "fe80::2c6e:xxxx:xxxx:72cd",
      "ip-address-type": "ipv6",
      "prefix": 64
    }
  ]
}

After attached debugger, hwAddr is not string equal to iface.HadrwareAddress resulting skip of a valid result because of string case sensitivity issue.

Image
Originally created by @deamwork on GitHub (Dec 2, 2025). Original GitHub issue: https://github.com/andrew-d/proxmox-service-discovery/issues/11 Log shows the inventory list has been correctly fetched but no valid IP returned. ``` 2025/12/02 07:13:37 INFO finished fetching inventory from node node=g10 2025/12/02 07:13:37 DEBUG fetched inventory from Proxmox num_nodes=1 num_vms=7 num_lxcs=1 2025/12/02 07:13:37 WARN no addresses for resource fqdn=bird.pve.internal.domain.tld. 2025/12/02 07:13:37 WARN no addresses for resource fqdn=dns.pve.internal.domain.tld. 2025/12/02 07:14:37 DEBUG fetched QEMU guest interfaces vm=106 node=g10 num_interfaces=19 2025/12/02 07:14:37 DEBUG fetched IP addresses for VM node=g10 vm=bird addrs=[] 2025/12/02 07:14:37 DEBUG fetched QEMU guest interfaces vm=104 node=g10 num_interfaces=4 2025/12/02 07:14:37 DEBUG fetched IP addresses for VM node=g10 vm=dns addrs=[] 2025/12/02 07:14:37 INFO finished fetching inventory from node node=g10 ``` API from PVE did returned with correct result when also using `agent/network-get-interfaces`: ```json { "hardware-address": "2e:6e:xx:xx:72:cd", "statistics": { "tx-errs": 0, "rx-dropped": 57183, "tx-bytes": 85102272373, "rx-packets": 200852685, "tx-dropped": 0, "rx-errs": 0, "tx-packets": 144342152, "rx-bytes": 199230248057 }, "name": "ens18", "ip-addresses": [ { "prefix": 24, "ip-address-type": "ipv4", "ip-address": "192.168.10.9" }, { "ip-address": "fe80::2c6e:xxxx:xxxx:72cd", "ip-address-type": "ipv6", "prefix": 64 } ] } ``` After attached debugger, `hwAddr` is not string equal to `iface.HadrwareAddress` resulting skip of a valid result because of string case sensitivity issue. <img width="2852" height="1224" alt="Image" src="https://github.com/user-attachments/assets/91747500-833e-40e4-868f-55e8c630a8e0" />
Author
Owner

@vpmartin commented on GitHub (Feb 25, 2026):

+1, was experiencing exactly the same issue. Cloning your branch from PR#12 instead instantly fixed the problem for me.

@andrew-d any chance of seeing this PR approved?

<!-- gh-comment-id:3958185227 --> @vpmartin commented on GitHub (Feb 25, 2026): +1, was experiencing exactly the same issue. Cloning your branch from PR#12 instead instantly fixed the problem for me. @andrew-d any chance of seeing this PR approved?
Author
Owner

@ange007 commented on GitHub (Mar 4, 2026):

It works for me — thanks!

<!-- gh-comment-id:3997835740 --> @ange007 commented on GitHub (Mar 4, 2026): It works for me — thanks!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-service-discovery#7
No description provided.