I am trying to connect Ubuntu Core 22 devices to Landscape and it mostly seems to work, except that the UI is giving me errors that I have duplicate computers (and subsequently other functionality is not working as expected).
What is Landscape using as unique identifier for this? I get a duplicate error for two devices that are on different hardware, have different serials and different computer titles…
Yes, so the duplicate check is based on the Hostname, which I agree is a little too simplistic. From your screenshot we can see that both are using Ubuntu.
For now, can you please try a different hostname for each device. I will raise a ticket to get that check made a little more robust in the future.
We are now using guids in the gadget’s prepare-device hook to set the serial.
Could I set the hostname in the prepare-device hook too?
And does it make sense to just set it to the guid? (although not very user friendly, it has to be unique so…)