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

mender-convert does not add demo cert to mender.conf

    XMLWordPrintable

    Details

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

      Description

      If you run mender-convert with following,

      ./docker-mender-convert from-raw-disk-image                       \
                  --raw-disk-image $RAW_DISK_IMAGE                      \
                  --mender-disk-image $MENDER_DISK_IMAGE                \
                  --device-type $DEVICE_TYPE                            \
                  --artifact-name $ARTIFACT_NAME                        \
                  --bootloader-toolchain aarch64-linux-gnu              \
                  --storage-total-size-mb 4096                          \
      	    --demo-host-ip "192.168.1.1" \
                  --demo
      

      Which is intended to be used together with demo environment, mender-convert will actually produce a invalid "mender-conf",

      {
      “InventoryPollIntervalSeconds”: 5,
      “RetryPollIntervalSeconds”: 30,
      “ServerURL”: “https://docker.mender.io”,
      “TenantToken”: “Paste your Hosted Mender token here”,
      “UpdatePollIntervalSeconds”: 5,
      “RootfsPartA”: “/dev/mmcblk0p2”,
      “RootfsPartB”: “/dev/mmcblk0p3”
      }
      

      The missing entry is:

      "ServerCertificate": "/etc/mender/server.crt"
      

        Attachments

          Activity

            People

            • Assignee:
              mirzak Mirza Krak
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel