Bug 2023764

Summary: Logs archive file downloaded from UI includes logs related to deleted migration plan/VM
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: User ExperienceAssignee: Arik <ahadas>
Status: CLOSED MIGRATED QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.2.0CC: ahadas, istein, maufart
Target Milestone: ---   
Target Release: Future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-16 06:41:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maayan Hadasi 2021-11-16 13:26:18 UTC
Description of problem:
In the following cases - the logs file downloaded from UI may contain logs that are related to a previous migration plan:
- Delete migration plan and recreate a new one with the same name
- Delete migrated VM on destination side and re-migrate it using a new migration plan
In those cases - there is no 'Get logs' button at the end of migration, but immediately 'Download logs' button is enabled


Version-Release number of selected component (if applicable):
MTV 2.2.0-84 / iib:133381


How reproducible:
Not always

Comment 1 Marek Aufart 2021-11-16 13:36:17 UTC
Thanks for reporting this issue! There is a custom-name used to pair must-gather execution with the object that the "Get logs" button was clicked. This custom name is set by UI and currently it is plan's or VM's name (as agreed between me and Mike-s).

I'd suggest add deletion of related must-gather executions to UI delete action of the Plan. That should fix at least the UI Plan deletion. "Long-time" deletion of archives is configured in must-gather-api service using existing CLEANUP_MAX_AGE config option.