Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4294

mender-client: D-Bus API timeout calling GetJwtToken after FetchJwtToken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Labels:
    • Days in progress:
      5

      Description

      This bug is difficult to reproduce locally, but easy to reproduce in CI.

      It was originally revealed in this PR, but it cannot be directly related to the changes there. We think it might be a timing issue (with this PR, the certificate is loaded via ca-certificates which might be slower).

      The test code to reveal the bug is:

      • Call FetchJwtToken
      • Monitor D-Bus waiting for event JwtTokenStateChange
      • Call GetJwtToken

      The error message is:

      Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
      

      See this commit commenting out the problematic part.

      Acceptance criteria:

      • The issue is fixed
      • The second part of test_dbus_fetch_jwt_token is uncommented and executed in CI

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              lluis Lluís Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support

                  Summary Panel