[patch] Add Fix for OLM Subscriptions get to ConstraintsNotSatisfiable state#321
[patch] Add Fix for OLM Subscriptions get to ConstraintsNotSatisfiable state#321Bhautik-Vala wants to merge 4 commits into
Conversation
| if isVersionEqualOrAfter(existingVersion, requiredVersion): | ||
| scenario = "marketplace_cache" | ||
| else: | ||
| scenario = "catalog_behind" |
There was a problem hiding this comment.
catalog_behind means that the requiredVersion is not available in the catalog ?
|
Isn't this primarily related to the use of development catalogs/builds in long-life environments (which isn't/never has been supported)? If we are going to deliver this the testing needs to be incredibly thorough, because the actions being taken here generally speaking do not happen in real world scenarios, and taking these kinds of actions is dangerous. |
|
Yes mainly we found this issue in long life dev env like IVTs. I am really not sure does it happen in real Env with static catalog, and as u said the testing is very complex here and we faces this issue only in very small window of the month when operator release done. so what coule be next step now - can we close this issue - #44? @durera |
JIRA ISSUE: https://jsw.ibm.com/browse/MASCORE-13497
Updated applySubscription() in olm.py to detect the OLM ConstraintsNotSatisfiable scenario where a CSV already exists but is not referenced by a subscription.
Changes done
Testing
This issue is mainly seen during a fresh operator release/update window, so it is not reproducible reliably right now . Because of that, validation was done through mock-based unit tests covering the recovery scenarios, and those tests are passing.