When the tedge-mapper-c8y service is stopped, the last will and testament sent to Cumulocity has the incorrect type (thin-edge.io, instead of the correct value service). The service type is fine when the service is up, so I suspect the LWT message is using the wrong default service type.
To Reproduce
Bootstrap tedge to Cumulocity IoT, and verify that the new services tab shows the tedge-mapper-c8y service. It should be set to up
Stop the tedge-mapper-c8y service
Check in the Services tab (in Device Management UI), and look at the Type column. It should have service not thin-edge.io
Expected behavior
The service type should be set to service when both the tedge-mapper-c8y is up or down
Screenshots
Environment (please complete the following information):
OS [incl. version]: Debian 11
Hardware [incl. revision]: arm64
System-Architecture [e.g. result of "uname -a"]: Linux 7f595e604eda 6.1.11-200.fc37.aarch64 Thu Feb 9 19:41:51 UTC 2023 aarch64 GNU/Linux
thin-edge.io version [e.g. 0.1.0]: 0.9.0-215-g54632d1a
Describe the bug
When the
tedge-mapper-c8y
service is stopped, the last will and testament sent to Cumulocity has the incorrect type (thin-edge.io
, instead of the correct valueservice
). The service type is fine when the service isup
, so I suspect the LWT message is using the wrong default service type.To Reproduce
tedge-mapper-c8y
service. It should be set to uptedge-mapper-c8y
serviceservice
notthin-edge.io
Expected behavior
service
when both thetedge-mapper-c8y
isup
ordown
Screenshots
Environment (please complete the following information):
Additional context