The script to generate image bundles fails silently if docker runs out of space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tee Ngo |
Bug Description
Brief Description
-----------------
The prestage_images.yml playbook does not fail when docker runs out of space as the docker save command in gen-image-
Severity
--------
Major
Steps to Reproduce
------------------
1. Set up a distributed cloud with virtual subclouds
2. Deploy WRA app on both the system controller and the subclouds
3. Execute dcmanager subcloud prestage --sysadmin-password <sysadmin-passwd> <subcloud-name>
Expected Behavior
------------------
Subcloud prestage succeeds
Actual Behavior
----------------
Subcloud prestage succeeded but a closer look at the logs revealed that docker did not have enough space on the virtual subcloud to process 8G image bundle. Yet, the prestage_images.yml playbook did not fail as expected. The successful prestage was in fact a false positive.
Reproducibility
---------------
100%
System Configuration
-------
Distributed Cloud
Branch/Pull Time/Commit
-------
Feb. 17, 2022 master load
Last Pass
---------
This was the first time testing prestage on virtual subclouds.
Timestamp/Logs
--------------
TASK [prestage/
- '' - Building archive...
- 'Error response from daemon: write /var/lib/
- Image bundles are stored under /home/sysadmin/
- Cleaning docker cache... - Completed
Test Activity
-------------
Developer Testing
Workaround
----------
None
Changed in starlingx: | |
assignee: | nobody → Tee Ngo (teewrs) |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.config |
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/831112
Review: https:/