• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Phantom Tasks after Host Deletion

    Scheduled Pinned Locked Moved Unsolved Bug Reports
    1 Posts 1 Posters 13 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Clebboii
      last edited by

      I think I have found a bug.

      I registered a new host. I then created a deploy task against this host. I then delete this host via the webUI.

      My task list empties as it should, however if I look at my storage group activity on the dashboard there are still tasks queued:
      fcf286d6-a906-418c-a217-703b0ec8d363-image.png

      There is no tasks scheduled, queued or checked-in.

      Looking at the database I find the following:
      a06cf4fd-ee06-4f68-85eb-8efa8d0efde9-image.png

      There are tasks still queued for hosts that no longer exist in the host table.

      2 fixes needed:

      • When host is deleted, all currently queued or checked-in tasks should be set to a taskStateID 5 or cancelled
      • If there are tasks that are not set as canecelled for hosts that do not exist, then these tasks should be cancelled

      1 question:

      • I have 24 queued tasks for hosts that do not exist. I see 4 on the webUI. I assume this is because there are 20 tasks with taskNFSGroupID and taskNFSMemberID set to 0. How do groups that do not exist get marked against a host / task?
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      244

      Online

      12.4k

      Users

      17.4k

      Topics

      155.9k

      Posts
      Copyright © 2012-2025 FOG Project