Bug 2188244 - [DPDK Checkup] Teardown does not happen on setup failure
Summary: [DPDK Checkup] Teardown does not happen on setup failure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.14.0
Assignee: Orel Misan
QA Contact: Yossi Segev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-20 09:01 UTC by Orel Misan
Modified: 2023-11-08 14:05 UTC (History)
1 user (show)

Fixed In Version: v4.14.0.rhel9-1123
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kiagnose kubevirt-dpdk-checkup pull 111 0 None Merged checkup, setup: Cleanup VMI and Pod in case of error 2023-07-09 15:00:28 UTC
Red Hat Issue Tracker CNV-28249 0 None None None 2023-04-20 09:05:34 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:42 UTC

Description Orel Misan 2023-04-20 09:01:37 UTC
Description of problem:
Teardown does not happen in case of a setup failure.

The VMI and traffic generator pod will be garbage collected when the checkup Job will be deleted.

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


How reproducible:
100%


Steps to Reproduce:
1. Create a ConfigMap with a specification that will cause a setup failure, for example:
spec.param.trafficGeneratorNodeSelector: "node-that-does-not-exist"
2. Create the checkup job and link it to the ConfigMap from the previous step.

Actual results:
The setup will fail, but the teardown will not happen.


Expected results:
Teardown should happen - VMI and Pod should be removed.


Additional info:
In order to solve this bug, apply the following PR to the DPDK checkup:
https://github.com/kiagnose/kiagnose/pull/239

Comment 1 Yossi Segev 2023-10-12 13:54:53 UTC
Verified on
CNV 4.14.0
container-native-virtualization/kubevirt-dpdk-checkup-rhel9:v4.14.0-116

The complete teardown, including removal of the VMIs and pods, does happen eventually.
I opened a new BZ https://bugzilla.redhat.com/show_bug.cgi?id=2243672 in order to initiate the teardown immediately and not after the job timeout is reached.

Comment 3 errata-xmlrpc 2023-11-08 14:05:28 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.0 Images 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:6817


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