-
Notifications
You must be signed in to change notification settings - Fork 37
Batch operator test script fix for Openshift 4.20 #3312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Batch operator test script fix for Openshift 4.20 #3312
Conversation
Can you explain this more? In OCP 4.20 I have a dependent operator and it's installed successfully by olm. |
|
from change #3312: |
- Fix CNF_TYPE_DIR path construction (missing slash) - Add comprehensive cleanup of test labels from all resources - Add support for keeping operators installed after test. + suffix keeps operator installed in test-<package manifest> namespace, - suffix runs the test in test-<package manifest> namespace then deletes the operator - Force openshift-storage namespace for storage operators - Add special handling for odf-csi-addons-operator and mcg-operator - Add MultiClusterEngine CR creation for multicluster-engine operator - Handle existing operator subscriptions in skip cleanup mode
6cdffd3 to
d89787a
Compare
|
from change #3312: |
After some in depth investigation, the issue seems to be due to the removal of dependencies.yaml file from the odf-operator bundle in 4.20. So it is not an olm issue. Another operator bundle named odf-dependencies seems to install the dependencies separately. |
In my testing on a CRC for OCP 4.19 (which is the same bundle as OCP 4.20) cluster, creating a |
The problem happened when trying to install ocs-operator without installing odf-operator first. ocs-operator is a dependency of odf-operator so it is installed if odf-operator is installed. But if ocs-operator is installed by itself it fails because it expects a CR created by odf-operator. |
The changes in this PR fix the following issues with the Openshift 4.20 test run:
Dependent operators are no longer installed by olm so the openshift storage operators are failing. Added the option to not delete an operator after it is installed by adding a "+" suffix to its package manifest name in the list of operators to run.
ocs-operator, odf-csi-addons-operator, and mcg-operator are dependent on lvms-operator and odf-operator . So lvms-operator and odf-operator are not uninstalled at the end of their test.
topology-aware-lifecycle-manager is dependent on advanced-cluster-management and multicluster-engine operators. Also it requires the v1.ManifestWork CR dependency. The v1.ManifestWork CR is created when a MultiClusterEngine is created (added this to the script) :
Missing operators:
odf-csi-addons-operator and mcg-operator-> no suggested namespaces so trying to re-create openshift storage CRs in the "test-namesapce" namespace which is not allowed. Using openshift-storage namespace.
Detailed changes:
Update command line for 4.20 operators: