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

[deployments] update_control_map differs between requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Labels:
    • Sprint:
      MEN Sprint 162
    • Story Points:
      2
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      update_control_map differs between requests when performing updates:

      Logs from the client:

      Apr 28 06:18:24 raspberrypi mender[20593]: time="2022-04-28T06:18:24+02:00" level=info msg="State transition: update-status-report [none] -> idle [Idle]"
      Apr 28 06:18:24 raspberrypi mender[20593]: time="2022-04-28T06:18:24+02:00" level=info msg="State transition: idle [Idle] -> check-wait [Idle]"
      Apr 28 06:18:24 raspberrypi mender[20593]: time="2022-04-28T06:18:24+02:00" level=info msg="State transition: check-wait [Idle] -> inventory-update [Sync]"
      Apr 28 06:18:26 raspberrypi mender[20593]: time="2022-04-28T06:18:26+02:00" level=info msg="State transition: inventory-update [Sync] -> check-wait [Idle]"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="Forced wake-up from sleep"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="Forcing state machine to: update-check"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Sync]"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="Validating the Update Info: https://... [name: test-v1; devices: [raspberrypi3]]"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="State transition: update-check [Sync] -> update-fetch [Download_Enter]"
      Apr 28 06:20:17 raspberrypi mender[20593]: time="2022-04-28T06:20:17+02:00" level=info msg="Running Mender client version: 3.2.0"
      Apr 28 06:20:18 raspberrypi mender[20593]: time="2022-04-28T06:20:18+02:00" level=info msg="State transition: update-fetch [Download_Enter] -> update-store [Download_Enter]"
      Apr 28 06:20:18 raspberrypi mender[20593]: time="2022-04-28T06:20:18+02:00" level=info msg="No public key was provided for authenticating the artifact"
      Apr 28 06:20:19 raspberrypi mender[20593]: time="2022-04-28T06:20:19+02:00" level=info msg="State transition: update-store [Download_Enter] -> update-after-store [Download_Leave]"
      Apr 28 06:20:19 raspberrypi mender[20593]: time="2022-04-28T06:20:19+02:00" level=info msg="State transition: update-after-store [Download_Leave] -> mender-update-control-refresh-maps [none]"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=error msg="transient error: The deployment was aborted from the server"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=error msg="transient error: The deployment was aborted from the server"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=info msg="State transition: mender-update-control-refresh-maps [none] -> rollback [ArtifactRollback]"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=info msg="Performing rollback"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=info msg="State transition: rollback [ArtifactRollback] -> update-error [ArtifactFailure]"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=info msg="State transition: update-error [ArtifactFailure] -> cleanup [Error]"
      Apr 28 06:20:20 raspberrypi mender[20593]: time="2022-04-28T06:20:20+02:00" level=info msg="State transition: cleanup [Error] -> update-status-report [none]"
      Apr 28 06:20:21 raspberrypi mender[20593]: time="2022-04-28T06:20:21+02:00" level=info msg="State transition: update-status-report [none] -> idle [Idle]"
      Apr 28 06:20:21 raspberrypi mender[20593]: time="2022-04-28T06:20:21+02:00" level=info msg="State transition: idle [Idle] -> check-wait [Idle]"
      Apr 28 06:20:21 raspberrypi mender[20593]: time="2022-04-28T06:20:21+02:00" level=info msg="State transition: check-wait [Idle] -> inventory-update [Sync]"
      Apr 28 06:20:22 raspberrypi mender[20593]: time="2022-04-28T06:20:22+02:00" level=info msg="State transition: inventory-update [Sync] -> check-wait [Idle]"
      

      Data in the database:

      "request" : { "deviceprovides" : { "artifactname" : "configuration-1104cdb5-cb34-48ab-9319-ef0072482580", "devicetype" : "raspberrypi3", "provides" : { "artifact_name" : "configuration-1104cdb5-cb34-48ab-9319-ef0072482580", "data-partition.mender-configure.version" : "configuration-1104cdb5-cb34-48ab-9319-ef0072482580", "device_type" : "raspberrypi3", "rootfs-image.directory.version" : "mender-demo-artifact-3.1.0", "rootfs-image.single-file.version" : "hello-world" } }, "updatecontrolmap" : true },
      

      Error message

      Device with id 52fdedd6-d481-4401-8a27-20e7ca4d9156 reported new data: {
        "device_provides": {
          "artifact_name": "configuration-1104cdb5-cb34-48ab-9319-ef0072482580",
          "data-partition.mender-configure.version": "configuration-1104cdb5-cb34-48ab-9319-ef0072482580",
          "device_type": "raspberrypi3",
          "rootfs-image.directory.version": "mender-demo-artifact-3.1.0",
          "rootfs-image.single-file.version": "hello-world"
      },
      "update_control_map": false
      } during update process; old data: {
        "device_provides": {
          "artifact_name": "configuration-1104cdb5-cb34-48ab-9319-ef0072482580",
           "data-partition.mender-configure.version": "configuration-1104cdb5-cb34-48ab-9319-ef0072482580",
           "device_type": "raspberrypi3",
           "rootfs-image.directory.version": "mender-demo-artifact-3.1.0",
           "rootfs-image.single-file.version": "hello-world"
        },
        "update_control_map":true
      }
      

        Attachments

          Activity

            People

            Assignee:
            tranchitella Fabio Tranchitella
            Reporter:
            tranchitella Fabio Tranchitella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support