Bug 1539029
| Summary: | 4.2.3-1 analyzer does not clean its temp files after failure | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Jiri Belka <jbelka> |
| Component: | rhv-log-collector-analyzer | Assignee: | Douglas Schilling Landgraf <dougsland> |
| Status: | CLOSED ERRATA | QA Contact: | Jiri Belka <jbelka> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.2.0 | CC: | danken, lsvaty, ylavi |
| Target Milestone: | ovirt-4.2.6 | Keywords: | FieldEngineering, Reopened, ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rhv-log-collector-analyzer-0.1.4-0.el7ev | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-09-04 13:46:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jiri Belka
2018-01-26 13:01:16 UTC
*** This bug has been marked as a duplicate of bug 1539027 *** This bug is in no way a duplicate of BZ1539027. This bug is about the tool itself does not clean it's temporary data - it must clean its temporary data when it does fail or is canceled by user. Why? This tool fail because it did not have space to extract all data into /tmp and this caused my /tmp is 100% full. If this tool would use `trap` to cache signals and do its own cleaning in the end if won't have 100% full /tmp. ---%>--- $ rhv-log-collector-analyzer /tmp/sosreport-LogCollector-20180725114347.tar.xz /bin/rhv-log-collector-analyzer: line 126: [: : integer expression expected Preparing environment: ====================== Temporary working directory is /tmp/tmp.0k5vGFTaUu Unpacking postgres data. This can take up to several minutes. sos-report extracted into: /tmp/tmp.0k5vGFTaUu/unpacked_sosreport pgdump extracted into: /tmp/tmp.0k5vGFTaUu/pg_dump_dir Welcome to unpackHostsSosReports script! Extracting sosreport from hypervisor slot-1.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-1.rhev.lab.eng.brq.redhat.com Extracting sosreport from hypervisor slot-5a.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-5a.rhev.lab.eng.brq.redhat.com Extracting sosreport from hypervisor slot-5c.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-5c.rhev.lab.eng.brq.redhat.com Extracting sosreport from hypervisor slot-5d.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-5d.rhev.lab.eng.brq.redhat.com Extracting sosreport from hypervisor slot-6a.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-6a.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-6b.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-6b.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-6b.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-6c.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-6c.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-6c.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-6d.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-6d.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-6d.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-7a.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-7a.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-7a.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-7b.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-7b.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-7b.rhev.lab.eng.brq.redhat.com mkdir: cannot create directory ‘/tmp/ovirt-log-collector-analyzer-hosts/slot-7c.rhev.lab.eng.brq.redhat.com’: No space left on device Extracting sosreport from hypervisor slot-7c.rhev.lab.eng.brq.redhat.com in /tmp/ovirt-log-collector-analyzer-hosts/slot-7c.rhev.lab.eng.brq.redhat.com /usr/share/rhv-log-collector-analyzer/analyzer/importDumpIntoNewDb.sh: line 66: /tmp/tmp.0k5vGFTaUu/produceHtml.sh: No space left on device ---%<--- use trap! ok, rhv-log-collector-analyzer-0.1.5-0.el7ev.noarch $ rhv-log-collector-analyzer /temp/sosreport-LogCollector-20180817140049.tar.xz Preparing environment: ====================== Temporary working directory is /temp/tmp.NtV7d6iNCq Unpacking postgres data. This can take up to several minutes. sos-report extracted into: /temp/tmp.NtV7d6iNCq/unpacked_sosreport pgdump extracted into: /temp/tmp.NtV7d6iNCq/pg_dump_dir Welcome to unpackHostsSosReports script! Creating a temporary database in /temp/tmp.NtV7d6iNCq/postgresDb/pgdata. Log of initdb is in /temp/tmp.NtV7d6iNCq/initdb.log WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. LOG: redirecting log output to logging collector process HINT: Future log output will appear in directory "pg_log". Importing the dump into a temporary database. Log of the restore process is in /temp/tmp.NtV7d6iNCq/db-restore.log ^C -bash-4.2$ ls -ltr $TMPDIR total 29228 -rw-r--r--. 1 postgres postgres 29921640 Aug 17 14:00 sosreport-LogCollector-20180817140049.tar.xz -rw-r--r--. 1 root root 85 Aug 17 14:01 sosreport-LogCollector-20180817140049.tar.xz.md5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:2639 BZ<2>Jira re-sync |