Iot agent

Hi everyone,

I have recently opened an issue on the iot-agent github repo, but I think here might be a better place to request help.

Does anyone has already tried to run the iot-agent span on a ubuntu-core 20 device? Did it work? I have been trying to do it but I haven’t been successful yet. In a nutshell, I created the snap from this repo (executing snapcraft command), copied this snap to the device, and installed it in --dangerous mode. Once installed, I registered the device in the iot-management service, and then I connected the snapd-control and set the agent’s url. Looking into the iot-agent logs I found the following error message “Error with enrollment: (Enroll Device) assertion model: type of snap “snapd” must be one of app|base|gadget|kernel|core”. Does this message sound familiar to anyone? In the meantime, I have already reproduced this procedure on a ubuntu 20 device without any problem :confused:.

Thanks

Just a quick update, I have also attempted to connect the iot-agent to the iot-management-service on a ubuntu 18 device and on a ubuntu-core 18 device (“base”: “core18”) and it worked without any problem. It looks the problem only occurs on ubuntu-core 20 (“base”: “core20”).

Any idea about why this happening?

Thanks

for completeness, the discussion took place on the github issue:

1 Like

To give you a little more context, I had deployed the iot-management service following the instructions available on the iot-deploy repository. This repo hasn’t been recently updated, which means the latest commits on iot-management, iot-identity, and iot-devicetwin repositories haven’t been included. So, in case, someone is facing a similar problem updating the iot-identity image might help to overcome this situation. Here you can find more details about how to do it.

1 Like