Hi Dimitrov,
Thank you for the heads up about the Hono Sandbox.
I'll look in to this later 😄
May I ask questions about kanto-cm?
We are currently creating a POC leveraging kanto-cm features.
However, we encountered issues over issues in our setup and stuck for a week already. 😄
Background:
* In a our ubuntu vm, we have 2 containers.
- container 1 = local docker registry
- container 2 = container with kanto setup (eclipse leda)
* We tried pulling feedercan from ghcr.io/eclipse/kuksa.val.feeders/dbc2val:v0.1.1.
- Then we pushed it in our local docker registry tagged localhost:5000/feedercan:latest
- Verified feedercan exist in localhost:5000/v2/_catalog.
* When we do systemctl restart contianer-management.service in contianer 2 it cannot find it.
- kanto-cm have errors.
- time="2024-05-23T12:10:47.479274512Z" level=info msg="trying next host" error="failed to do request: Head \"http://localhost:5000/v2/feedercan/manifests/latest\": dial tcp [::1]:5000: connect: connection refused" host="localhost:5000"
* We also configured config.json to allow insecure_registries.
* I attached a small logfile in kanto-cm.
-
My questions are:
1. Can we pull images from our local docker registry?
2. Where and how can we setup kanto-cm images.json file so that kanto-cm will read it after systemctl restart contianer-management.service?
Best regards,
Eduleen Talledo
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 15 May 2024 9:11 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; Eclipse Kanto Dev List <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Eduleen,
The certificate
issue with the Hono Sandbox is now fixed, so you can proceed with your Kanto investigation.
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: Monday, May 13, 2024 09:41
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Eduleen,
The underlined with blue is an Eclipse Hono req-id , a generated UUID that I used for the example, it could be any string, e.g. "test123". When such identifier is included in the
command///req/<req-id>/<operation> topic, the response to this request would be returned on topic with the same identifier
command///res/<id>/<status>. You can check the Eclipse Hono MQTT Adapter documentation
here. Eclipse Ditto message format is then used for the Hono/MQTT message, so the
correlation-id comes from Ditto -
here is some documentation.
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Wednesday, May 8, 2024 16:11
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Dimitrov/Kanto Team,
Yes. local-digital-twins and software-update services are running and suite-connector service is stopped.
Running mosquitto_pub -t edge/thing/request -m "".
The response in mosquitto_sub -t "#" -v:
I can now do software update.. 😄 😄
The issue is in my correlation-id.
I used this correlation id to the mqtt message (underlined with red).
My question is where should I get the command (underlined with blue)?
Is this a correlation-id?
Best Regards,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive -- Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 08 May 2024 7:10 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Eduleen,
I am not sure what the problem is, here are some checks that could be done:
-
the local-digital-twins and software-update services are running
-
the suite-connector service is stopped
-
issue command - mosquitto_pub -t edge/thing/request -m "", and check what device response( you get in the mosquitto_sub terminal, should be like
edge/thing/response {"deviceId":"ftp03:device","tenantId":"ftp03"}
-
the /var/log/software-update/software-update.log for errors
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Wednesday, May 8, 2024 13:30
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Dimitrov/Kanto Team,
When I ran mosquitto_sub -t "#" -v command.
I got an error running mosquitto_sub.
I installed it first using apt install mosquitto-clients.
Running mosquitto_sub -t "#" -v command:
I saved the template message in a bash file.
When I ran the bash file:
The response from other window is:
But I observed that it did not download and run install.sh.
Did I miss something in my steps or setup?
Your guidance is highly appreciated.
Thank you,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive -- Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 29 April 2024 8:50 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Eduleen,
Yeah, this is the expected result. In the value field of the text/json is the digital twin representation of your device as
Eclipse Ditto things and features.
The architecture of Kanto is as follows, there are
suite/aws/azure connector which receive messages from the cloud and then those messages are routed to other Kanto and customer components through
a local MQTT broker. So, you should host your own Hono instance(there is no progress on the Hono Sandbox certificate issue), switch to AWS or Azure, or skip the remote connection and send messages directly to the local MQTT broker.
The last alternative is the fastest way to try out the software updates. You can use ' $ mosquitto_sub -t "#" -v'
command to follow the local MQTT messages and in another terminal, you can publish a software update message. There is a message template in
hono_command_su.py.
Adjusted to the device from the screenshot you send, the command should be:
$ mosquitto_pub -t command///req/e58e52ff-4860-41e2-8dec-2495325e19c0/install -m '{
"topic": "ftp03/device/things/live/messages/install",
"headers": {
"content-type": "application/json",
"correlation-id": "b76e1d2f-7fff-4b48-9648-05ce6d34620f",
"response-required": true
},
"path": "/features/SoftwareUpdatable/inbox/messages/install",
"value": {
"softwareModules": [{
"softwareModule": {
"name": "install-hello",
"version": "1.0.0"
},
"artifacts": [{
"checksums": {
"SHA256": "db954c633393c1402f145a60fd58d312f5af96ce49422fcfd6ce42a3c4cceeca"
},
"download": {
"HTTPS": {
"url": "https://github.com/eclipse-kanto/kanto/raw/main/quickstart/install_hello.sh"
}
},
"filename": "install.sh",
"size": 544
}]
}],
"correlationId": "b76e1d2f-7fff-4b48-9648-05ce6d34620f"
}
}'
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Wednesday, April 24, 2024 13:35
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Dimitrov/Kanto team,
After adding the steps you've mentioned, it returned a bunch of text 😄.
I guess this is the expected result?
My next question is how to run software update without eclipse hono?
I followed the guide but it seems like connecting to eclipse hono is required.
Your guidance is highly appreciated.
Thank you,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive --
Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 23 April 2024 8:59 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Eduleen,
I just got through the steps of the guide on a clear system, and I was surprised to get the same result as you - no result. After a quick investigation, I found out that you should do one additional step as the
/var/lib/local-digital-twins is not created automatically by the local-digital-twins service. The following commands should fix the problem and the structure of the digital twins should be displayed upon python script execution:
$ mkdir /var/lib/local-digital-twins
$ systemctl restart local-digital-twins.service
$ python3 hono_commands_ldt.py -t demo -d demo:device
I am sorry that you wasted some of your time due to this mistake. The creation of the
thingsDB directory will be fixed in the local-digital-twins service.
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Tuesday, April 23, 2024 15:18
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Dimitrov/Kanto team,
We are interested in Software update and Container management features of eclipse kanto.
Thank you for pointing me to how-to-guides/Offline explore edge device. 🙂
I'm following the steps. However, I'm not sure if the results are correct.
Here are the steps I've done.
-
Install dependencies:
$ sudo apt install -y wget curl git python3 python3-pip
-
Install containerd:
-
Install eclipse kanto:
$ sudo apt install ./kanto_0.1.0-M3_linux_x86_64.deb
* There is a note after installation:
-
-
Check if eclipse kanto components are running:
$ systemctl status suite-connector.service container-management.service software-update.service file-upload.service file-backup.service system-metrics.service local-digital-twins.service suite-bootstrapping.service
- Everything behaves as expected. Only local-digital-twins.service and suite-bootstrapping.service are inactive.
-
Install requirements:
$ pip3 install -r requirements.txt
* Cannot install due to this note:
-
* I added --break-system-packages to successfully install.
-
-
Stop suite-connector.service:
$ sudo systemctl stop suite-connector.service
-
Download offline exploration python script:
-
Configure Local digital twin config file /etc/local-digital-twins/config.json:
{
"logFile": "/var/log/local-digital-twins/local-digital-twins.log",
"caCert": "/etc/local-digital-twins/iothub.crt",
"thingsDb": "/var/lib/local-digital-twins/thing.db",
"tenantId": "demo",
"deviceId": "demo:device",
"authId": "demo_device",
"password": "secret"
}
-
Start and display status of local-digital-twins.service:
$ sudo systemctl start local-digital-twins.service
$ systemctl status local-digital-twins.service
-
-
Run hono_commands_ldt.py:
$ python3 hono_commands_ldt.py -t demo -d demo:device
-
My Questions:
Your guidance is highly appreciated.
Thank you,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive --
Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 19 April 2024 2:57 PM
To: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hey Eduleen Talledo,
There are also other options depending on which Kanto components you are interested in. Eg, If you want to explore the container-management, you can use kanto-cm CLI. You can type
kanto-cm --help to check the possible commands. Keep in mind that commands are similar to others container management CLIs(docker, containerd). Do you have an understanding in which Kanto components you are interested in?
Alternatively, you can use
Azure/ AWS cloud
connectors. Even thought they are not officially released and there is no public documentation, they are functional and can be used. Kanto team could help when configuring them.
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
Sent: Friday, April 19, 2024 09:27
To: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>; kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hi Dimitrov/Kanto team,
Thank you Dimitrov. 🙂
May I ask if do I really need to use eclipse hono to use eclipse kanto?
I'm trying to deploy eclipse kanto in my local setup (without cloud).
Is there a documentation to follow on how to do it?
Your guidance is highly appreciated.
Thank you,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive --
Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
From: Dimitrov Dimitar (BD/SWD-BEA3) <Dimitar.Dimitrov3@xxxxxxxxx>
Sent: 18 April 2024 7:12 PM
To: kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; Son Dao Thanh <SonDT1@xxxxxxx>
Subject: Re: Kanto Getting Started Clarification
Hello Eduleen Talledo,
I have forwarded the
issue to the Eclipse Hono team, as the SSL certificate of the Hono Sandbox seems to have expired. I will write back when there is feedback from the Hono team.
Best regards,
Dimitar Dimitrov
(BD/SWD-BEA3)
Bosch Digital EOOD | 47B Tsarigradsko Shose | Sofia 1124 | BULGARIA | www.bosch-digital.com
Tel. +359(2)9055844 | Dimitar.Dimitrov3@xxxxxxxxx
From: kanto-dev <kanto-dev-bounces@xxxxxxxxxxx> on behalf of Eduleen Talledo via kanto-dev <kanto-dev@xxxxxxxxxxx>
Sent: Thursday, April 18, 2024 12:53
To: kanto-dev@xxxxxxxxxxx <kanto-dev@xxxxxxxxxxx>
Cc: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>; Son Dao Thanh <SonDT1@xxxxxxx>
Subject: [kanto-dev] Kanto Getting Started Clarification
Hi Kanto Team,
We are investigating if its possible and how can we integrate eclipse kanto in our sdv project.
May I ask for guidance about how to use kanto?
I've been following the kanto getting started guide.
However, I got an error when running hono_provisioning.sh.
This is my hono_provisioning.sh file.
Did I miss something while setting up the host OS(Debian 12)? 🙂
Your guidance is highly appreciated.
Thank you,
|
EDULEEN TALLEDO (Mr.)
Software Development Engineer
FPT Automotive --
Philippines
IT Park, Cebu City, Philippines 6000
Mobile: +63 960-2430-526 | +84 379-488-928
|
***********************************************************************
IMPORTANT NOTICE
From May 1st, 2023, FPT Software will officially use only one email domain named @fpt.com. Exchanges sent to @fsoft.com.vn will be automatically transferred to this new domain.
This email may contain confidential and/ or privileged information that belongs to FPT Software. If you are not the intended recipient or might have received this email by accident from an unreliable source, please notify the sender from FPT Software immediately
and destroy this email. Keep in mind that any unauthorized copying, editing, disclosure or distribution of the material in this email is strictly forbidden, plus against the law by which FPT Software and involved clients abide.
|