Community discussions

MikroTik App
 
User avatar
netravnen
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sun Dec 31, 2017 2:48 am

[Feature Request] Limit the possibility of upgrading a device with the image for the wrong architecture

Sun Jul 04, 2021 4:21 pm

_As a MikroTik user and product consumer
I want better reliability in performing manual upgrades
So that the possibility for ending up with a broken install is limited_

## Description

Recently I performed a manual re-install of a CRS326 with ROS 7.1b6.

By mistake, I downloaded the wrong image from the Mikrotik.com website (arm64 vs arm) and rebooted the device only to end up with a broken ROS install.

## Acceptance Criteria

My request boiled down is to implement a rudimentary pre-check in RouterBOOT that checks for 2 things,

- [ ] is the architecture of the uploaded npk (image) the same as the running hardware architecture,
- [ ] is the uploaded npk valid for the current model of the hardware we are trying to upgrade.

If yes, proceed to upgrade.
If no, refuse the upgrade and proceed with normal boot.

## Benefits

This limits the possibility of ending up with a broken ROS install.
Plus in the longer term (should) have the added benefit of fewer support tickets related to this type of accident by users.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: [Feature Request] Limit the possibility of upgrading a device with the image for the wrong architecture

Mon Jul 05, 2021 3:22 am

Actually on non-beta version i never haved that problemon my devices,
already on other version is impossible to install wrong architecture.
The beta still beta, can have that problem.
 
mducharme
Trainer
Trainer
Posts: 1777
Joined: Tue Jul 19, 2016 6:45 pm
Location: Vancouver, BC, Canada

Re: [Feature Request] Limit the possibility of upgrading a device with the image for the wrong architecture

Mon Jul 05, 2021 3:30 am

I haven't tried this on ROS 7, but at least on ROS 6 if you upload the wrong architecture and reboot it will fail to upgrade and indicate that the package is the wrong architecture. So I think this check is already supposed to be in place. If it got by somehow, perhaps there is a bug.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: [Feature Request] Limit the possibility of upgrading a device with the image for the wrong architecture

Mon Jul 05, 2021 8:22 pm

Robustness, the ability to be sent wrong data and not crash. The bane of lazy programmers and testers, or on a really tight budget.
Pretty fundamental in production environments so dont think this would be a problem for MT OS, as noted by others.
Beta not being production may be a different story.

Who is online

Users browsing this forum: No registered users and 26 guests