Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kanto-dev] Software update
  • From: Dirk Van Haerenborgh <dirk.vanhaerenborgh@xxxxxxxx>
  • Date: Mon, 4 Jul 2022 15:43:08 +0000
  • Accept-language: en-BE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aloxy.io; dmarc=pass action=none header.from=aloxy.io; dkim=pass header.d=aloxy.io; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HRcyjd3vawfP+5LRIqp1EG8XucKJFQNr2GYAwsIwEcI=; b=Ycp/PrJS5iVqD05LoHvzRBxrWFV8ct6ajlxEdDFOdAKBMTGjmAG6dQ2QUJZh4K1jX2GxWHS0qLLsEP0Bfz6gHDwDwuwzk56chvILpVokKbQ3QxFunq0z8LK0dwP3XS0R2VE2SJ/I/Gi7BgluHkpBMMnuW0zKSIFbZLI2zlChGt/QRcaH3vGtixeRlkJwRNUyQQMMCfZGyhjHMS4iH0q5MX10Q0N3LRhsQxFOPwc+LkR7uU+9ExtvuF9t605WBWfwb3crsHXogDVUoT91P/G9Ns2DgMlbnE771JWHXQCb5C/FqnW8J5i2RwtjkwpRDz+B/EE11JaCAFgf8FyoNYHNcQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eR5wkoTkkRwx2eIHU+jiAaE7BPBUWgujzt+14LHKYEg1EtMa4Zw7Cfw85eibUa8if5LewTRYXuPASRKtdqTOaj9z7m1UAtCm0WoOP6hbLH0PEyrbPTIvqWNXCfmaaH5ymjxGoXWBPdSJ33TVDZuqg+ee3KCOCK5HGavPqAVbh+Ub+ThsutVqFkZqxNCm+V/MBx8i4DkXwRA9MoQKM/qShTnBQ8hOXc8xur07sC2wrIwKMKjXizGvw9GkijNddqVUvd67AuR1ygL/it4scmPqedfi6lWC36BAyPMUgRs4ocRTlFhZRx45+cPZSyXwEAB30vwxwTaVx5IE+4IRcZxlSA==
  • Delivered-to: kanto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/kanto-dev/>
  • List-help: <mailto:kanto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/kanto-dev>, <mailto:kanto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/kanto-dev>, <mailto:kanto-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHYjS2yCPfsTJnjIkOZrPjbPAqDJK1uWuEB
  • Thread-topic: Software update

Hi,

I've been going through the software-update feature some more. I think I'm close to understanding how it works, but if you have time, I'd appreciate it very much if you could review the following statements:

  • When starting, the software-updater service will get its configuration from the config file and will immediately fetch it from ditto (if existing).
    With configuration I am referring to the shell command for a specific package type. For instance: if the binary packages are debian packages, the shell command should be dpkg -i‚Äč.
    As such, Kanto would support multiple independent binary types
  • Although I can't find much evidence for it, I suspect that the software-update service also subscribes to the local mqtt broker. Rather than listening on the Thing <thingId>:edge:containers, it will listen on <thingId> itself.
    From the source code, I've been trying to construct the payload for it (see attachment).
    I've tried sending this via the hono command topic (on kafka) to the gateway, but so far I haven't seen any indication of success
We're now also running a snapshot of the main branch; the last few commits made the mqtt connection a lot more stable.

Kind regards,
-Dirk


Aloxy

Dirk Van Haerenborgh Software engineer

Aloxy The Beacon, Sint-Pietersvliet 7 2000 Antwerp www.aloxy.io



From: kanto-dev <kanto-dev-bounces@xxxxxxxxxxx> on behalf of Dirk Van Haerenborgh <dirk.vanhaerenborgh@xxxxxxxx>
Sent: Friday, 1 July 2022 11:49
To: kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Subject: [kanto-dev] Software update
 
Hi, 

Having no experience whatsoever with Hawkbit (which could be helpful seeing as it uses parts of the hawkbit client framework), we were wondering if you could provide us with a tiny example/demonstrator for how this should be used.

At the moment, all of this seems fairly abstract. How I read it in the source code is that every binary that is downloaded is accompanied with an installer script. So we should be free in deciding how our edge gateway would be updated. For example install snap packages for Ubuntu Core. Is this correct?

Kind regards,
-Dirk


Aloxy

Dirk Van Haerenborgh Software engineer

Aloxy The Beacon, Sint-Pietersvliet 7 2000 Antwerp www.aloxy.io


Attachment: sample-software-update-payload.json
Description: sample-software-update-payload.json


Back to the top