Bug 2238791

Summary: repeating log message in mtq-controller pod even after removing the VM/Namespace
Product: Container Native Virtualization (CNV) Reporter: Denys Shchedrivyi <dshchedr>
Component: VirtualizationAssignee: Barak <bmordeha>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: low Docs Contact:
Priority: low    
Version: 4.14.0CC: acardace
Target Milestone: ---   
Target Release: 4.14.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.14.1.rhel9-8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-07 15:00:42 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 Denys Shchedrivyi 2023-09-13 16:24:06 UTC
Description of problem:
 There is a repeating message in mtq-controller pod logs (every 16-17 minutes) even after removing the Namespace.

> {"component":"","level":"info","msg":"ManagedQuotaController: Error with key: test-mtq/fedora-vm","pos":"mtq-controller.go:211","reason":"there should be 1 virtualMachineMigrationResourceQuota in test-mtq namespace","timestamp":"2023-09-11T20:41:32.004612Z"}
> {"component":"","level":"info","msg":"ManagedQuotaController: Error with key: test-mtq/fedora-vm","pos":"mtq-controller.go:211","reason":"there should be 1 virtualMachineMigrationResourceQuota in test-mtq namespace","timestamp":"2023-09-11T20:58:12.020908Z"}
> {"component":"","level":"info","msg":"ManagedQuotaController: Error with key: test-mtq/fedora-vm","pos":"mtq-controller.go:211","reason":"there should be 1 virtualMachineMigrationResourceQuota in test-mtq namespace","timestamp":"2023-09-11T21:14:52.042517Z"}

> $ oc get ns test-mtq
> Error from server (NotFound): namespaces "test-mtq" not found
 



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

How reproducible:
100%

Steps to Reproduce:
1. In the namespace without virtualMachineMigrationResourceQuota - create and migrate VM 
2. check mtq-controller pod logs
3.

Actual results:
 repeating message in logs 

Expected results:
 Probably current message should appear only when VM exists and migration initiated

Additional info:

Comment 2 Denys Shchedrivyi 2023-11-27 20:28:56 UTC
Verified on CNV-v4.14.1.rhel9-62 - no repeating log messages in mtq-controller pod

Comment 9 errata-xmlrpc 2023-12-07 15:00:42 UTC
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 (Important: OpenShift Virtualization 4.14.1 security and bug fix update), 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/RHSA-2023:7704