Bug 1816737 - when running installation of hosted engine again, /var/tmp is full
Summary: when running installation of hosted engine again, /var/tmp is full
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: cockpit-ovirt
Version: 4.3.8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ovirt-4.4.3
: ---
Assignee: Aviv Turgeman
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 15:56 UTC by Martijn ten Heuvel
Modified: 2020-11-24 12:21 UTC (History)
3 users (show)

Fixed In Version: cockpit-ovirt-0.14.12
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-23 16:01:21 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
aturgema: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 111094 0 master MERGED fix /var/tmp is full 2020-11-23 14:01:42 UTC

Description Martijn ten Heuvel 2020-03-24 15:56:25 UTC
Description of problem:
When installer fails for whatever reason, in my case the iscsi gave some issues, /var/tmp/installvm* is not cleaned. This means that with a couple reruns, /var/tmp will be full:

[root@rhv1 tmp]# ls -als | grep local
4 drwxrwxr-x.  2 vdsm kvm  4096 Mar 24 15:53 localvm_25EXd
4 drwxrwxr-x.  4 vdsm kvm  4096 Mar 24 15:22 localvmVvspJr
[root@rhv1 tmp]# du -sh local*
4.0K	localvm_25EXd
4.5G	localvmVvspJr

Version-Release number of selected component (if applicable):
4.3.8

How reproducible:
Easy

Steps to Reproduce:
1. Setup rhvh node
2. Run installer from cockpit.
3. Stop at storage.

Actual results:
Disk full.

Expected results:
Reuse of resources. Now, omnipotency does not exist; also meaning redeployment is actually a full redeploy.


Additional info:

Comment 1 Sandro Bonazzola 2020-04-01 07:46:54 UTC
let's check why /var/tmp got filled. If bootstrap VM content was created there the code should be smart enough to know what to do with the content there.

Comment 2 Asaf Rachmani 2020-08-19 14:20:28 UTC
ovirt-hosted-engine-cleanup tool cleans /var/tmp/localvm*.
Can we run the cleanup tool from cockpit when clicking "Yes" in "Exit Wizard" only after "Prepare VM" stage?


Note You need to log in before you can comment on or make changes to this bug.