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

Error/hang detection #123

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Nov 27, 2024

  1. chore: Return MENDER_DONE when waiting for reboot in mender_client_wo…

    …rk_function()
    
    This tells the scheduler that this work is done and should not be
    scheduled again.
    
    Ticket: MEN-7555
    Changelog: none
    Signed-off-by: Vratislav Podzimek <[email protected]>
    vpodzime committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    9d45251 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. chore: Try to detect too many network issues and reset network

    Instead of being stuck in the non-working setup.
    
    Ticket: MEN-7555
    Changelog: none
    Signed-off-by: Vratislav Podzimek <[email protected]>
    vpodzime committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    50fdd39 View commit details
    Browse the repository at this point in the history
  2. fix: Detect hanging in PENDING_REBOOT state

    If reboot was requested, but it hasn't come in a pre-defined
    number of iterations to wait, we need to fail the deployment and
    resume normal operation.
    
    This also means we need to tell the scheduler to run the work
    function even if it is just waiting for a reboot and has nothing
    to do. Nothing else than checking if it has not been waiting for
    too long.
    
    Ticket: MEN-7555
    Changelog: none
    Signed-off-by: Vratislav Podzimek <[email protected]>
    vpodzime committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    830dc33 View commit details
    Browse the repository at this point in the history