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

ArtifactRollbackReboot doesn't work if failure happens in ArtifactInstall

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: 2.6.1
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      Originally from this post:

      A custom update module supporting rollback and reboot for .deb packages does not reboot after rollback

      A mender artifact containing some .deb packages could be installed succesfully. The reboot takes place and mender-client continues according to the state machine

      An other mender artifact, containing a deb file, which always fails to install (for testing the rollback, returning -1 on postinst script) the rollback takes place as expected, but the reboot does not.
      The statemachine switches directly to ArtifactFailure. (NeedsArtifactReboot="Automatic" or "Yes")

      Logging the calls to the update module with its parameters shows, that in this case the module never gets called with the parameter NeedsArtifactReboot

      The reason is that NeedsArtifactReboot is only called after ArtifactInstall in order to catch cases where the installation of a deb package triggered the need for a reboot. This information is then stored in the database. However, if this information is missing (signaling that ArtifactInstall never finished), it should also be called before ArtifactRollbackReboot.

        Attachments

          Activity

            People

            • Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support