Overview
MindEdge Framework supports the online upgrade, same-version upgrade, and version rollback of MEF Edge in 5.0.RC2 and later versions through the MEF Center upgrade interfaces.
Preparations
- Prepare the software to be upgraded. To perform an online upgrade, you need to prepare the software to be upgraded through a third-party software repository that can be used normally. In addition, make sure that the network connection between MEF Edge and the software repository is normal and that the software to be upgraded can be obtained from the HTTPS website specified in the software download message. For details about how to prepare and interconnect a software repository, see Preparing a Software Repositoryand Preparing an Image Repository.
- Optional: Query node details. During a software upgrade, the request contains the edge device SN. If you do not know the device SN, use the RESTful API to query the node details and view the device SN of the corresponding node. For details, see Querying Node Details.
Upgrade Process
The following describes how MEF Edge calls related APIs for upgrade.
- Deliver a software download message.
Deliver a software download message through the RESTful API to trigger the edge device to download the software to be upgraded. For details about the API, see Downloading the Software.
URL: https://{ip}:{port}/edgemanager/v1/software/edge/download - Optional: Query the software download progress.
When delivering the software download message, you can query the software download progress through the RESTful API. For details about the API, see Querying the Software Download Progress.
URL: https://{ip}:{port}/edgemanager/v1/software/edge/download-progress?serialNumber={value} - Optional: Query the software information.
After software download is triggered, you can use the RESTful API to query the MEF Edge software information, including the current software version and the version to be upgraded. For details about the API, see Querying the Software Information.
URL: https://{ip}:{port}/edgemanager/v1/software/edge/version-info?serialNumber={value} - Deliver a software upgrade message.
You can deliver a software upgrade message through the RESTful API to trigger the edge device to upgrade MEF Edge. For details about the API, see Upgrading the Software.
URL: https://{ip}:{port}/edgemanager/v1/software/edge/upgrade