volume leak within Minikube debian build environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Davlet Panech |
Bug Description
Brief Description
-----------------
Within a Debian/Minikube build environment, volumes are sometimes
orphaned, requiring a 'docker volume prune' the clean up.
CENGN uses a minikube based build environment. It was observed that the
docker volume for minikube had grown to over 200 GB.
docker system df -v
...
Local Volumes space usage:
VOLUME NAME
minikube-
minikube-
Entering the minikube container for minikube-
docker system df -v
...
Local Volumes space usage:
VOLUME NAME LINKS SIZE
557f6c9fb45724c
6c71a483b38db67
7dfe577906908f5
653e260e62cc0c5
49ebd2eb6645232
So there are four ~20GB volumes that are not being used, suggesting an intermittent issue that orphans volumes (4 orphans from 25 builds).
Now this minikube instance builds nightly, so whatever is orphaning volumes
must be on a failure path.
docker volume inspect 557f6c9fb45724c
[
{
"Driver": "local",
"Labels": null,
"Name": "557f6c9fb45724
"Options": null,
"Scope": "local"
}
]
The 'CreatedAt' date converts to 2023-05-17T23:48:05 in local time
This maps to the run of 'stop-containers' step of the jenkins pipeline that was a 'green' build, with Jenkins logs ....
23:47:56 cd /home/localdisk
23:47:56 sourcing ./import-stx
23:47:59 release "rc-stx-8-0-debian" uninstalled
23:48:11 Deleted Containers:
The pipeline runs this code
...
stx control stop || true
# Prune minikube's docker, then stop minikube's top-level container
if [[ "$STX_PLATFORM" == "minikube" ]] ; then
profile_args=()
[[ -z "$MINIKUBENAME" ]] || profile_args+=("-p" "$MINIKUBENAME")
if minikube "${profile_
minikube "${profile_
minikube "${profile_
fi
fi
Could the "CreatedAt" actually be the last modification time?
Could it be that the "stx control stop" have failed in some way?
At minimum, docker 'system prune -f --volumes' might also be needed in the jenkins pipeline, but that just masks the issue, and only benefits jenkins.
Severity
--------
Minor
Steps to Reproduce
------------------
unclear
Expected Behavior
------------------
Volumes are either deleted or reused. Never orphaned
Actual Behavior
----------------
Volumes are intermittently orphaned
Reproducibility
---------------
Intermittent. 4 out of 25 builds left orphans
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
May 17, 2023
Last Pass
---------
N/A
Timestamp/Logs
--------------
See above
Test Activity
-------------
Build
Workaround
----------
Describe workaround if available
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.build stx.tools |
Similar leak seen in master branch builds