
This update stops using sudo to create the target collect directory in /scratch to avoid permission errors when trying to add content without sudo. Doing so has the added benefit of leaving the collect bundles and content with ownership that matches the username collect was run from rather than root. Notice bundle file permissions at all levels Main Bundle: -rw-r--r-- 1 ericmac users /scratch/ALL_SUBCLOUDS_20240726.162635.tar Untared Main Bundle: [ericmac@controller-0 ALL_SUBCLOUDS_20240726.162635 ]$ ls -lrt -rw-r--r-- 1 ericmac users subcloud2-wrcp-master_20240726.162635.tar -rw-r--r-- 1 ericmac users subcloud1-wrcp-master_20240726.162635.tar -rw-r--r-- 1 ericmac users collect.log drwxr-xr-x 2 ericmac users subcloud2-wrcp-master_20240726.162635 drwxr-xr-x 2 ericmac users subcloud1-wrcp-master_20240726.162635 Untared Subcloud Bundle: [ericmac@controller-0 subcloud1-wrcp-master_20240726.162635 ]$ ls -lrt -rw-r--r-- 1 ericmac users controller-0_20240726.162635.tgz -rw-r--r-- 1 ericmac users report_tool.tgz -rw-r--r-- 1 ericmac users report_analysis.tgz -rw-r--r-- 1 ericmac users collect.log This update also adds /var/log/lastlog to the varlog.exclude file. This 'lastlog' file is used to record the last login times for each user. It is a sparse data file that can grow very large when WAD is enabled. So large that collect is seen to fail due to out of space error. Test Plan: run each test case - with and without the --report option - using sysadmin username and user sccount created with ldapusersetup PASS: Verify bundle file permissions at all levels PASS: Verify /var/run/lastlog is excluded PASS: Verify collect local PASS: Verify collect remote PASS: Verify collect from multiple subclouds, some with system nodes Story: 2010533 Task: 50670 Change-Id: If7c01c2c9a32d37c72f6304a1d9381b9cc42e740 Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
3 lines
32 B
Plaintext
3 lines
32 B
Plaintext
/var/log/crash
|
|
/var/log/lastlog
|