Skip to content

[CLEA-IOT] Add Clea IoT part inside the Clea OS Embedded imgage

Davide Cardillo requested to merge davc/iot into kirkstone

Inside the full Clea OS Embedded image, the Clea IoT part is added. This part is composed by the following packages: The packagegroups regarding the IoT part are added in base to the value of the variable CLEA_OS_IOT. By default it is set to "1" and the IoT part is added. If it is set to "0" the IoT part is not added.

Follow a log, at runtime, of an machine running the resulting image:

-------------- First boot --------------

root# systemctl status astarte-message-hub
* astarte-message-hub.service - Astarte Message Hub Service
     Loaded: loaded (/lib/systemd/system/astarte-message-hub.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

roor# systemctl status edgehog-device-runtiume
Unit edgehog-device-runtiume.service could not be found.
root@seco-imx8mq-c20:~# systemctl status edgehog-device-runtime
* edgehog-device-runtime.service - Edgehog Device Runtime Service
     Loaded: loaded (/lib/systemd/system/edgehog-device-runtime.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

* clea-iot-enable.service - Clea IoT Enable Service
     Loaded: loaded (/lib/systemd/system/clea-iot-enable.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2025-05-13 10:56:41 UTC; 37s ago
   Main PID: 374 (clea-iot-enable)
      Tasks: 2 (limit: 784)
     Memory: 660.0K
     CGroup: /system.slice/clea-iot-enable.service
             |- 374 /bin/bash /usr/sbin/clea-iot-enable.sh
             `- 411 sleep 5

May 13 10:56:41 seco-imx8mq-c20 systemd[1]: Started Clea IoT Enable Service.
May 13 10:56:41 seco-imx8mq-c20 clea-iot-enable.sh[374]: Waiting for /etc/message-hub/config.toml to appear...

roor# ls /etc/message-hub/
config.toml_template

-------------- Once the /etc/message-hub/config.tmol is present --------------

root# systemctl status edgehog-device-runtime
* edgehog-device-runtime.service - Edgehog Device Runtime Service
     Loaded: loaded (/lib/systemd/system/edgehog-device-runtime.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2025-05-13 09:25:57 UTC; 24s ago
   Main PID: 589 (edgehog-device-)
      Tasks: 7 (limit: 563)
     Memory: 7.8M
     CGroup: /system.slice/edgehog-device-runtime.service
             |- 589 /bin/bash /usr/sbin/edgehog-device-runtime.sh
             `- 595 /usr/bin/edgehog-device-runtime

May 13 09:25:57 qemuarm systemd[1]: Started Edgehog Device Runtime Service.

root# systemctl status astarte-message-hub
* astarte-message-hub.service - Astarte Message Hub Service
     Loaded: loaded (/lib/systemd/system/astarte-message-hub.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2025-05-13 09:25:52 UTC; 48s ago
   Main PID: 586 (astarte-message)
      Tasks: 7 (limit: 563)
     Memory: 7.6M
     CGroup: /system.slice/astarte-message-hub.service
             |- 586 /bin/bash /usr/sbin/astarte-message-hub.sh
             `- 588 /usr/bin/astarte-message-hub

May 13 09:26:03 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:03Z DEBUG astarte_device_sdk::options] Added interface io.edgehog.de...Properties
May 13 09:26:30 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:30Z DEBUG reqwest::connect] starting new connection: https://api.eu1...rte.cloud/


May 13 09:26:30 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:30Z DEBUG hyper::client::connect::dns] resolving host="api.eu1.astarte.cloud"
May 13 09:26:32 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:32Z DEBUG hyper::client::connect::http] connecting to 34.79.40.37:443
May 13 09:26:32 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:32Z DEBUG hyper::client::connect::http] connected to 34.79.40.37:443
May 13 09:26:37 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:37Z DEBUG hyper::proto::h1::io] flushed 779 bytes
May 13 09:26:37 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:37Z DEBUG hyper::proto::h1::io] parsed 14 headers
May 13 09:26:37 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:37Z DEBUG hyper::proto::h1::conn] incoming body is content-length (1118 bytes)
May 13 09:26:37 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:37Z DEBUG hyper::proto::h1::conn] incoming body completed
May 13 09:26:38 qemuarm astarte-message-hub.sh[588]: [2025-05-13T09:26:37Z DEBUG hyper::client::pool] pooling idle connection for ("https",...rte.cloud)

MACHINE CONNECTED TO THE ASTARTE CLOUD

Signed-off-by: Davide Cardillo davide.cardillo@seco.com

Edited by Jonas Höppner

Merge request reports

Loading