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