Collect logs after a failed DC upgrade are too big
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Eric MacDonald |
Bug Description
Brief Description
-----------------
I recently looked at a collect log from controller-0 that was attempting to perform a Distributed Cloud upgrade.
It included large files that should be filtered out of the collect (such as an ISO).
We are making very large collect files, that can be reduced in size.
Severity
--------
Minor.
Steps to Reproduce
------------------
Attempt a DC subcloud upgrade.
Run collect afterwards
Expected Behavior
------------------
The collect should not be overly large
Actual Behavior
----------------
The collect for ALL NODES was
4229007360 Jun 26 21:16 ALL_NODES_
which is over 4 Gigs
4.0G ALL_NODES_
Internally, controller-0 is all the space
4185975726 2020-06-25 14:09 ALL_NODES_
and extracting that tarball shows at least one very large file
2.1G ./var/extra/
all these files are larger than 50M
find . -type f -size +50M
./var/extra/
./var/extra/
./var/extra/
./var/extra/
./var/extra/
./var/extra/
Presumably the iso/20.06 folder can be filtered
ls -al ./var/extra/
total 0
drwxr-xr-x 3 abailey users 23 Jun 25 13:58 .
drwxr-xr-x 4 abailey users 33 Jun 25 13:58 ..
drwxr-xr-x 2 abailey users 125 Jun 25 13:58 subcloud6
ls -al ./var/extra/
total 104
drwxr-xr-x 5 abailey users 72 Jun 25 13:58 .
drwxr-xr-x 4 abailey users 33 Jun 25 13:58 ..
-rw-r--r-- 1 abailey users 2901 Jun 25 13:58 isolinux.cfg
drwxr-xr-x 2 abailey users 26 Jun 23 21:30 LiveOS
drwxr-xr-x 2 abailey users 69632 Jun 23 21:30 Packages
drwxr-xr-x 2 abailey users 4096 Jun 23 21:33 repodata
Reproducibility
---------------
Seen once
System Configuration
-------
DC system performing an upgrade
Branch/Pull Time/Commit
-------
June 25, 2020
Last Pass
---------
N/A
Timestamp/Logs
--------------
Contact Al Bailey for a sample collect (too large to attach)
Test Activity
-------------
Developer Testing
Workaround
----------
N/A
Changed in starlingx: | |
assignee: | nobody → Eric MacDonald (rocksolidmtce) |
description: | updated |
tags: | added: stx.tools |
tags: | added: stx.distcloud |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.4.0 |
These temporary files are cleaned up automatically by system controller subcloud installation software. There must be an error path that bypasses cleanup.
The /etc/collect. d/collect_ sysinv_ .sh script is including these tmp files with this command.
cp -a /opt/platform ${extradir}