[mender-gateway] Client does not report system ID to the backend

Description

The system ID property for the mender-gateway is never indexed by the backend, possibly because the property is never sent to the inventory API.

With the "DefaultInventory" configured, gateway appends additional attributes and system ID to attributes reported by devices connected to the gateway, but the gateway itself is NOT reporting system ID.

Client running on gateway device will report mender_is_gateway:true when mender-gateway is enabled on the device, because there is an inventory script installed together with a gateway, but if client running on gateway device is directly connected to backend (result of regular "promote to gateway" procedure) system ID will not be reported.

Alternative 1

You have to change client configuration after you'll install/enable gateway. When the client running on gateway device will be connected to server through gateway, then it will properly report System ID. I'm not sure if that's expected behavior.

Alternative 2

The inventory script shipped when installing the gateway can parse the configuration file and report System ID as part of the device inventory

Acceptance criteria:

  • Alternative 2 above is implemented

Affects versions

None

Environment

None

Activity

Show:

Lluis CamposFebruary 9, 2023 at 8:26 AM

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

0

Fix versions

Sprint

Backlog

yes

Zendesk Support

Checklist

Created February 7, 2023 at 8:47 AM
Updated February 9, 2023 at 12:12 PM
Resolved February 9, 2023 at 12:12 PM