Landscape client snap - Managed Mode attribute

Hi Store-requests,

Can we please request the modification of the snapdcontrol interface on the Landscape Client snap to include the managed mode attribute? This won’t change functionality but adds another mechanism by which to manage the snap refresh timer.

Thanks,

Michael

1 Like

So from what I can see, your snap wants the ability to specify:

plugs:
  snapd-control:
    refresh-schedule: managed

Is that correct? (as per https://snapcraft.io/docs/snapd-control-interface)

Yes… that is the one.

hi @mikecw - just to get a better idea of the change, what is the reasoning for the managed mode attribute with landscape-client?

Thanks!

Hi @cav,

The managed mode attribute was the original way of disabling automatic snap updates to ensure that updates were only applied when directly commanded via Landscape. This is Field Engineering’s preferred mechanism for controlling that for IoT devices and as such it is their request.

Functionally, inside snapd it is now the same as disabling the refresh timers which can be achieved using snapdcontrol - but as there are existing customers using this method it made sense to allow consistency for them.

Thanks,

That makes sense and fits the purpose of the snap. Given the snap has already been vetted for and granted the snapd-control, I will go ahead and the make the change.

@mikecw - I saw the landscape-client app in the snap has:

plugs:
...
    - snapd-control-managed
    - snapd-control
...

Please remove the snapd-control plug and keep the snapd-control-managed and submit a new revision. review-tools complains when it is tries to plug it twice with the new declaration update. Let me know once this change is submitted and I’ll make the changes live!

Thanks!

Hi @cav, sorry for the slight delay. I’ve made that change and the newly build snap should be in the edge and beta channels. Is that sufficient to get the change applied?

Thanks.

That should be fine! I have gone ahead and made the change which is now live. Let me know if you run into any issues.
Thanks!

@cav I just came across this https://www.reddit.com/r/Ubuntu/s/UunWhLqw94 which looks like a regression due to this change. Can we please revert it for now? Thanks

@alexmurray - I have just reverted the declaration to before i.e snapd-control is still auto-connected but without the managed mode attribute.

Ah….

That may have come about because the change to the snap is on the edge track and not the stable so the store has propagated the change to those with stable. Ok, thanks for reverting, I will investigate more when I am back from holiday.

Thanks.