TWSD-1063 : Can not able to downgrade AVX from 2.7.4.10 to 2.7.0.188
Review Request #1462 — Created March 25, 2026 and submitted
| Information | |
|---|---|
| stevenku | |
| AVX2 | |
| rel_avx_2_7_6 | |
| TWSD-1063 | |
| Reviewers | |
| bsrivalli, ngurunathan, wli | |
【Problem Discovered】
The original AVX system update download URL mechanism usedwget + awk + forkpty + system()to execute. This design has the following problems:
- Download progress and error messages rely on CLI output parsing (awk). When the output format or stderr/stdout behavior changes, it may not be possible to obtain progress or error information correctly.
- Using
forkptywithsystem()generates meaningless multi-layer shells and processes, resulting in output buffering and unstable data.- It is impossible to accurately determine FTP/HTTP errors (such as login failure, file does not exist), which may result in download failures still being judged as successful.
【Improvement Method】
The download process has been changed to be implemented using the libcurl API, removing the original shell pipeline architecture. The adjustments are as follows:
- Use libcurl to directly handle FTP/HTTP downloads, replacing wget command calls.
- Use a callback (write/progress) mechanism to implement download progress display, replacing awk parsing.
- Through libcurl return values and
CURLOPT_FAILONERROR, connection failures, login errors, and file non-existence can be correctly determined.- Remove
forkptyand redundant processes, simplifying execution to a single process.
AN(config)#system update "ftp://[username]:[password]@192.168.97.251/steven/ArrayOS-Rel_AVX_2_7_0_189.array"
This will upgrade your system from ftp://[username]:[password]@192.168.97.251/steven/ArrayOS-Rel_AVX_2_7_0_189.array
After a successful patch the system will be rebooted.
Unsaved configurations on AVX and running VAs will be lost after this operation.
Type "YES" to confirm upgrade:YES
The package size is : 569.41 MB
Downloading the upgrade package..... 100%
Package download completed.
Installing the package into system
