SOLVED Delete Host Problem, Host deleted but left overs still in DB
- FOG Version: RC9
today i tried to delete a host, marked it, clicked on delete button, entered credentials.
System is telling me the credentials are wrong, but the host is gone after that but still in the db.
When i try to inventory that host again the menu is telling me it4434 is registered but it’s not in the host list anymore,
there must be left overs in the db:
How can i fix this?
Solved in working branch. Thanks Tom.
Deleting the host item was working, I suspect a trailing piece was still around causing the issue. Now it seems all is working properly. I don’t think this had anything to do with working/dev-branch though either.
@x23piracy Then you need to change from
git checkout dev-branchto
git checkout working
git checkout working git pull cd bin ./installfog.sh -y
@tom-elliott sorry sure its dev
@x23piracy I’d say git pull update. You are on working, not dev-branch?
@tom-elliott i am on wokring branch but not updated, around 1 week old after you released, should i update an reinstall?
@x23piracy I don’t see the bug in working branch, but that could be I noticed something last week and corrected around it already.
@tom-elliott ok this worked i can name a new host it4434 again but do you see the bug?
I will now try to remove that host again (regulary)…
Ok when i try to remove the same happens again (not wondering):
Can find the host in the host list after that even when its telling me wrong credentials, something has been deleted but only partly. When i now boot into fog menu, its not telling me that the host is still registered, crazy before it told me host is registered.
Tom Elliott last edited by Tom Elliott
@x23piracy delete from hosts where hostname=‘it4434’
i could help myself with:
mysql> DELETE FROM hostMAC WHERE hmMAC LIKE '%hostmac%';
But something must be broken with the host deletion?
Maybe this is also related: https://forums.fogproject.org/topic/10696/can-t-delete-host-with-empty-host-name-1-5-0-rc-7
omg whats happening here, after manual deletion of the host i ran another quick registration via the pxe menu, after that i try to give this host his old name but:
The name was it4434 (there must be still something in the db related with this name)
When i search for it4434 there is nothing:
I have the feeling when i now delete the host again while his name is it’s mac that i cannot add it again.
How can i delete that hostname left overs?
i crosslink another bug report where i also see wrong credentials while they are right:
i’ve also tried to remove the host by menu (after i allready half deleted it via the web gui) then i get a chainload failed (reboot).