eclipse / hawkbit

Eclipse hawkBit™
https://projects.eclipse.org/projects/iot.hawkbit
Eclipse Public License 2.0
445 stars 184 forks source link

Question: Force updating to the same image twice on device #1703

Closed lizziemac closed 3 months ago

lizziemac commented 3 months ago

Hi there!

I have a device that has an A/B partitioning schema. Currently, if both partitions need a mandatory update, for example, if partition A is updated to 0.0.1, then partition B cannot be updated because the device is already updated. Is there a way to force the update twice in a row? As far as I know, hawkBit doesn't know what partition the device is running on. The only workaround I can think of is somehow reporting the device twice to hawkBit, once for each partition, but that isn't ideal and could lead to longer-term issues.

Thanks! Liz

strailov commented 3 months ago

Hey @lizziemac ! Thanks for your interest in hawkBit! Unfortunately hawkBit does not know anything about device partitions ... So it seems that the only way is a workaround somehow. One thing I could think of is to play with the versions of the Distribution Sets e.g. 0.0.1_A 0.0.1_B and based on that the device implementation to handle it ... but yeah ... not sure if this is possible in your case.

lizziemac commented 3 months ago

Great point! I think that might work for my use case. Thanks!

Plan of attack: