Bug 2253497

Summary: PVC label selector should not recommend labels that don't work, they should be filtered
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: management-consoleAssignee: gowtham <gshanmug>
Status: CLOSED WONTFIX QA Contact: Prasad Desala <tdesala>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.14CC: amagrawa, gshanmug, kramdoss, muagarwa, nsoffer, nthomas, odf-bz-bot, skatiyar, srangana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2256580 (view as bug list) Environment:
Last Closed: 2024-03-18 15:24:04 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:
Bug Depends On:    
Bug Blocks: 2256580, 2272439    

Description Kevin Alon Goldblatt 2023-12-07 17:11:03 UTC
Created attachment 2003127 [details]
PVC label selector

Description of problem (please be detailed as possible and provide log
snippests):
Applying DR Policy to app set application, the system is suggesting a label that cannot work, it should be filtered out. Only labels with appname= should be recommended

Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge?
Creating your github resource with a short label e.g. appname=kubevirt

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
2

Can this issue reproducible?
yes

Can this issue reproduce from the UI?
yes

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Create an app set application from here: https://github.com/kgoldbla/ocm-kubevirt-samples/blob/vm9-application/vm-standalone-pvc-odr-regional/pvc.yaml
2. selected the app:kebernetes/instance-app-set-vm-standalone-dv-odr-regional option
3. Relocating will not work with this.
4. Only the appname=<label> should be recommended
5. ...instance-of= should not be used


Actual results:
...instance-of= was recommended as an option and won't work for dr

Expected results:
On appname= should be recommended

Additional info:
See attached screenshots

Comment 4 krishnaram Karthick 2024-02-22 11:50:05 UTC
Moving the bug to 4.14.7. 
We have reached the limit for fixes in 4.14.6

Comment 6 Red Hat Bugzilla 2024-07-31 04:25:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days