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

    Phantom Tasks after Host Deletion

    Scheduled Pinned Locked Moved Unsolved Bug Reports
    4 Posts 2 Posters 101 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?
      C Tom ElliottT 2 Replies Last reply Reply Quote 0
      • C
        Clebboii
        last edited by

        @Tom-Elliott Just wondering if I could have your input here.

        1 Reply Last reply Reply Quote 0
        • C
          Clebboii @Clebboii
          last edited by

          @george1421 Do you have any thoughts here either?

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @Clebboii
            last edited by

            @Clebboii https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Database_Maintenance_Commands

            Please see if this helps? Specifically the task related items. Sometimes stale (old/bad items suddenly show up from long ago.) admittedly I’d love to know what caused (or causes?) this but it has so far eluded me this far.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            118

            Online

            12.4k

            Users

            17.4k

            Topics

            155.9k

            Posts
            Copyright © 2012-2025 FOG Project