checking disk and memory space before installing image#11151
checking disk and memory space before installing image#11151wangxin merged 2 commits intosonic-net:masterfrom
Conversation
Signed-off-by: xuliping <[email protected]>
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
@lipxu Can you fix the pre-commit alerts? |
Thanks for reminder, had pushed the fix. |
What is the motivation for this PR? Update images failed sometimes on low-memory devices. How did you do it? Check memory and disk space before installing image. If no enough space of memory or disk, abort. How did you verify/test it? Upgrade the images on low memory and small disk devices several times. no issue. Signed-off-by: xuliping <[email protected]>
|
Cherry-pick PR to 202305: #11164 |
What is the motivation for this PR? Update images failed sometimes on low-memory devices. How did you do it? Check memory and disk space before installing image. If no enough space of memory or disk, abort. How did you verify/test it? Upgrade the images on low memory and small disk devices several times. no issue. Signed-off-by: xuliping <[email protected]>
What is the motivation for this PR? Below PR enhanced the upgrade sonic image, and would check memory and disk usage before installing the image. But not calculate SWAP memory into the total available memory space. #11151 How did you do it? Add swap free memory into total available memory. Signed-off-by: xuliping <[email protected]>
What is the motivation for this PR? Below PR enhanced the upgrade sonic image, and would check memory and disk usage before installing the image. But not calculate SWAP memory into the total available memory space. sonic-net#11151 How did you do it? Add swap free memory into total available memory. Signed-off-by: xuliping <[email protected]>
What is the motivation for this PR? Below PR enhanced the upgrade sonic image, and would check memory and disk usage before installing the image. But not calculate SWAP memory into the total available memory space. sonic-net#11151 How did you do it? Add swap free memory into total available memory. Signed-off-by: xuliping <[email protected]>
What is the motivation for this PR? Below PR enhanced the upgrade sonic image, and would check memory and disk usage before installing the image. But not calculate SWAP memory into the total available memory space. #11151 How did you do it? Add swap free memory into total available memory. Signed-off-by: xuliping <[email protected]>
|
@lipxu PR conflicts with 202311 branch |
What is the motivation for this PR? Below PR enhanced the upgrade sonic image, and would check memory and disk usage before installing the image. But not calculate SWAP memory into the total available memory space. #11151 How did you do it? Add swap free memory into total available memory. Signed-off-by: xuliping <[email protected]>
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Update images failed sometimes on low-memory devices.
How did you do it?
Check memory and disk space before installing image.
If no enough space of memory or disk, abort.
How did you verify/test it?
Upgrade the images on low memory and small disk devices several times. no issue.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation