Open
Description
Bug reporting acknowledgment
Yes, I read it
Professional support
None
Describe the bug
After a changed IP address we are attempting to delete an entry from the glpi-remote list and re-add it with the new IP address but the entry remains. On deletion the entry disappears, we then add the host with the new IP and on inspection everything looks correct but on the next agent run the old IP is back.
To reproduce
- Add a host via
glpi-remote add winrm://USER:PASSWORD@IP_ADDRESS
- Change the IP address of the host
- run
glpi-remote list | grep IP_ADDRESS
- Delete the entry via its position in the list
- E.g.
glpi-remote del NO
- Re-add the host via
glpi-remote add winrm://USER:PASSWORD@NEW_IP_ADDRESS
- Run
glpi-agent
- You will see
[error] Remoteinventory worker[3] failed to handle winrm://USER:PASSWORD@IP_ADDRESS
Expected behavior
An inventory with the new IP address should be generated.
Operating system
Linux
GLPI Agent version
Nightly build (git version in additional context below)
GLPI version
10.0.15
GLPIInventory plugin or other plugin version
GLPI Inventory v1.3.5
Additional context
GLPI Agent nightly v1.9-gitbe309b3b