Bug 1849932

Summary: Cannot delete affinity rules on UI
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED DUPLICATE QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, glekner, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.6.0   
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: 2020-06-24 09:06:12 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:
Attachments:
Description Flags
error of delete affinity rules
none
works on my build none

Description Guohua Ouyang 2020-06-23 08:32:21 UTC
Created attachment 1698405 [details]
error of delete affinity rules

Description of problem:
An error occurs when delete affinity rules on UI:

Error "spec.template.spec.affinity in body must be of type object: "null"" for field "undefined"."

Version-Release number of selected component (if applicable):
4.5.0-rc.2

How reproducible:
100%

Steps to Reproduce:
1. Create a VM
2. Add a affinity rule and save it
3. Reopen affinity modal and try to delete it

Actual results:


Expected results:


Additional info:

Comment 1 Yaacov Zamir 2020-06-23 10:47:04 UTC
@Gilad hi, do you think this BZ related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1848425

Comment 2 Yaacov Zamir 2020-06-24 07:20:38 UTC
moving to modified:

a - can't duplicate on current master
b - I think it was fixed by 1848425

Comment 3 Guohua Ouyang 2020-06-24 07:56:50 UTC
I can reproduce it on master. You have to reopen the modal, delete it and save, then the error shows.

Comment 4 Yaacov Zamir 2020-06-24 08:24:43 UTC
Created attachment 1698544 [details]
works on my build

Comment 5 Yaacov Zamir 2020-06-24 08:26:26 UTC
Guohua hi,

I attached my test, can you look if I'm doing it correctly ?

Comment 8 Yaacov Zamir 2020-06-24 09:06:12 UTC

*** This bug has been marked as a duplicate of bug 1848418 ***

Comment 9 Gilad Lekner 2021-01-02 19:26:24 UTC
Clearing redundant NEEDINFO