Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glpi-remote del is not working as expected #677

Open
GuidoWilden opened this issue May 22, 2024 · 2 comments
Open

glpi-remote del is not working as expected #677

GuidoWilden opened this issue May 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@GuidoWilden
Copy link

GuidoWilden commented May 22, 2024

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

  1. Add a host via glpi-remote add winrm://USER:PASSWORD@IP_ADDRESS
  2. Change the IP address of the host
  3. run glpi-remote list | grep IP_ADDRESS
  4. Delete the entry via its position in the list
  5. E.g. glpi-remote del NO
  6. Re-add the host via glpi-remote add winrm://USER:PASSWORD@NEW_IP_ADDRESS
  7. Run glpi-agent
  8. 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

@GuidoWilden GuidoWilden added the bug Something isn't working label May 22, 2024
@GuidoWilden
Copy link
Author

Deleting the remote clients from the list and re-adding them by hostname seems to work, but not via IP address.

@g-bougard
Copy link
Member

Hi @GuidoWilden

could it be a problem related to the host-key verification ? So did you try to use ssh to access the remote server on the new ip before running glpi-agent ?

Can you eventually provide all the log lines in debug2 related to RemoteInventory task before reaching the seen [error] line ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants