glpi-project / glpi-inventory-plugin

GLPI Inventory plugin
GNU Affero General Public License v3.0
46 stars 27 forks source link

500 Internal Server Error, Key drives is not handled in network devices conversion #462

Closed Stijn-weather closed 9 months ago

Stijn-weather commented 9 months ago

Describe the bug

When running glpi-injector on an .xml file generated by the netdiscovery tool, the device does not get added to our inventory and we get this error. Device is not inventoried at all. Not under "unmanaged devices", nor "Equipments refused by rules log"

To reproduce

sudo glpi-netdiscovery --host 192.168.16.232 --credentials version:2c,community:public --debug -i -s .

sudo glpi-injector -f ./netinventory/192.168.16.232.xml -u https://our-glpi-inventory.com/ --debug -vv

Expected behavior

The device would show up under "Network Devices" image

Operating system

Linux

GLPI Agent version

Nightly build (git version in additional context below), Other (See additional context below)

GLPI version

10.0.10

GLPIInventory plugin

1.3.4, Other (See additional context below)

Additional context

GLPI Agent (1.7-git6961b4c7)

trasher commented 9 months ago

Will be fixed in next glpi release; see https://github.com/glpi-project/glpi/pull/16408

trasher commented 9 months ago

As a workaround, you can manually patch 3rd party lib; see related commit: https://github.com/glpi-project/inventory_format/commit/36a1684fbcfcf36edcf3f4a5ff32d6b19e127009