Bug 1445498
Summary: | Hourly metrics_## tables grow filling up the VMDB filesystem when real-time purges fail | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Thomas Hennessy <thenness> | |
Component: | Appliance | Assignee: | Jillian Tullo <jtullo> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Tasos Papaioannou <tpapaioa> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.7.0 | CC: | abellott, cpelland, gblomqui, jdeubel, jhardy, jocarter, jtullo, mfeifer, myoder, obarenbo, saali, simaishi, tpapaioa, yrudman | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.9.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | c&u | |||
Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1462358 1465086 (view as bug list) | Environment: | ||
Last Closed: | 2018-03-06 15:10:25 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | CFME Core | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1462358, 1465086 |
Description
Thomas Hennessy
2017-04-25 19:39:15 UTC
proposed modified script should look like: ++++++++++++++++++++++++++++++++++++++++++++++ #!/bin/bash source /etc/default/evm LOGFILE=/var/www/miq/vmdb/log/hourly_continuous_pg_maint_stdout.log TABLE_NAME=metrics_$(date -u +"%H" --date='+1 hours') echo "current time is $(date) -> target for TRUNCATE TABLE is '$TABLE_NAME' table" >> $LOGFILE psql -U postgres vmdb_production -a -e -c "TRUNCATE TABLE $TABLE_NAME" >> $LOGFILE 2>&1 echo "TRUNCATE TABLE $TABLE_NAME completed at $(date)" >> $LOGFILE echo "=================" >> $LOGFILE ++++++++++++++++++++++++++++++++++++++++++++++ The BZ is open because it represents a failure in the product to consistently remove realtime C&U tuples from realtime tables. This is not the only customer who has reported this problem with the latest CFME 4.2 code, so the bug still exists. The case is closed because I provided the customer with a work around which removes the exposure of this failure causing his filesystem to fill because we are failing to remove realtime tuples, so *his* problem is addressed while *the product problem* persists. I'm dropping the priority here because it looks like there's a KB-style workaround. That can give GTs team time to look over the possible options here. Verified on 5.9.0.1. |