You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isSupportedOsUpdate and getSupportedOsUpdateVersions should support ESR versions directly.
Instead of having to do : sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetOsRelease.basedOnVersion)
Just do: sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetESRversion)
Actual Behavior
Currently to perform an ESR update we need to:
Get all versions with sdk.models.os.getAvailableOsVersions('raspberrypi3') and filter out the required ESR version. For example for 2023.1.0 we get:
Check whether it is a valid version to update to with sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetOsRelease.basedOnVersion), for example sdk.models.os.isSupportedOsUpgrade('raspberry-pi', 'v2.95.0' , 'v2.107.40')
And then trigger the update with sdk.models.device.startOsUpdate('7cf02a687b74206f92cb455969cf8e98', '2023.1.0')
thgreasi
changed the title
Extend OS update methods for ESR
Should extend os.getAvailableOsVersions() & os.isSupportedOsUpgrade() to support ESR
Feb 14, 2023
I've attached the above support thread, since this also means that the CLI cannot update an ESR device, since the command passes in the current OS Version and sdk.models.os.getAvailableOsVersions returns undefined when an ESR version is passed.
Expected Behavior
The isSupportedOsUpdate and getSupportedOsUpdateVersions should support ESR versions directly.
Instead of having to do :
sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetOsRelease.basedOnVersion)
Just do:
sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetESRversion)
Actual Behavior
Currently to perform an ESR update we need to:
sdk.models.os.getAvailableOsVersions('raspberrypi3')
and filter out the required ESR version. For example for 2023.1.0 we get:Check whether it is a valid version to update to with
sdk.models.os.isSupportedOsUpgrade('raspberry-pi', device.os_version, targetOsRelease.basedOnVersion)
, for examplesdk.models.os.isSupportedOsUpgrade('raspberry-pi', 'v2.95.0' , 'v2.107.40')
And then trigger the update with
sdk.models.device.startOsUpdate('7cf02a687b74206f92cb455969cf8e98', '2023.1.0')
References
https://balena.zulipchat.com/#narrow/stream/345882-_help/topic/Get.20balena.20ESR.20balenaOs.20version.20from.20the.20SDKs
https://jel.ly.fish/support-thread-1-0-0-front-cnv-dq6tkct
The text was updated successfully, but these errors were encountered: