Skip to content

Node facts fail on virtual machines without PCI devices #8225

Closed

Description

@edospadoni

Steps to reproduce

  • Install NethServer 8 on a virtual machine that exposes a PCI (Peripheral Component Interconnect) bus with no device on it. Hyper-V generation 2 guests behave this way: lspci prints nothing while /proc/bus/pci exists.
  • Register the cluster with a subscription and wait for the inventory to be sent, or run api-cli run get-facts --agent node/1 as root on the leader node.
  • Open the system page on my.nethesis.it.

Expected behavior

The node facts are collected, with an empty device list, and the system page on my.nethesis.it shows host name, version and IP address of the node. If the facts collection of a node fails, the send-inventory service journal says so.

Actual behavior

The node facts action crashes with IndexError: list index out of range while parsing the empty device list. The inventory is still sent, but with no node data, so the system page on my.nethesis.it shows no host name, version or IP address. The send-inventory service journal is clean: the failed node task carries an empty output and is silently skipped. Seen on 56 of about 1600 NethServer 8 systems reporting to the portal.

Components

NethServer 8 core 3.23.0 and earlier (the parsing code dates back to the first releases).

See also

Activity

  1. added this to the NethServer 8.11 milestone on Oct 12, 2026
  2. added theissue type on Oct 12, 2026
  3. self-assigned this
    on Oct 12, 2026
  4. moved this from ToDo to In Progress in NethServeron Oct 12, 2026
  5. DavidePrincipi commented on Oct 12, 2026

    @DavidePrincipi
    Member

    In Testing core 3.23.1-dev.2

    Test case 1

    • Update to testing version
    • Check the bug is not reproducible on Hyper-V generation 2 guests

    Test case 2

    • Update to testing version
    • Check the node/1/get-facts has no errors on other hypervisor/bare metal installations
  6. moved this from In Progress to Testing in NethServeron Oct 12, 2026
  7. DavidePrincipi commented on Oct 12, 2026

    @DavidePrincipi
    Member

    Test case 2 -- VERIFIED

  8. DavidePrincipi commented on Oct 12, 2026

    @DavidePrincipi
    Member

    Test case 1 -- VERIFIED by reseller @edospadoni

  9. removed
    testingPackages are available from testing repositories
    on Oct 12, 2026
  10. moved this from Testing to Verified in NethServeron Oct 12, 2026
  11. DavidePrincipi commented on Oct 15, 2026

    @DavidePrincipi
    Member
  12. moved this from Verified to Done in NethServeron Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions