thin-edge / thin-edge.io

The open edge framework for lightweight IoT devices
https://thin-edge.io
Apache License 2.0
221 stars 54 forks source link

tedge-mapper-c8y sends the incorrect service type when the service is down #1753

Closed reubenmiller closed 1 year ago

reubenmiller commented 1 year ago

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 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

  1. Bootstrap tedge to Cumulocity IoT, and verify that the new services tab shows the tedge-mapper-c8y service. It should be set to up
  2. Stop the tedge-mapper-c8y service
  3. 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

Screenshots

image

Environment (please complete the following information):

Additional context

gligorisaev commented 1 year ago

Tested and confirmed as fixed