-
Notifications
You must be signed in to change notification settings - Fork 214
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
ECOPROJECT-2080: Add MTV operator as an option to cluster post installation #6711
base: master
Are you sure you want to change the base?
Conversation
Hi @tupyy. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tupyy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retitle ECOPROJECT-2080: Add MTV operator as an option to cluster post installation |
@tupyy: This pull request references ECOPROJECT-2080 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/test edge-unit-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6711 +/- ##
==========================================
+ Coverage 68.64% 68.73% +0.08%
==========================================
Files 246 251 +5
Lines 36860 37605 +745
==========================================
+ Hits 25301 25846 +545
- Misses 9307 9446 +139
- Partials 2252 2313 +61
|
This commit adds the MTV operator as an option to post cluster installation. Signed-off-by: Cosmin Tupangiu <cosmin@redhat.com>
/test |
@tupyy: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@eifrach Thank you for the review. |
@eifrach PTAL |
/test edge-unit-test |
some validation tests: # listing all operators
$ curl -s 'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/supported-operators' | jq .
[
"odf",
"cnv",
"lvm",
"mce",
"mtv",
"lso"
] Check support level on version and arch > curl -s 'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/support-levels/features?openshift_version=4.13&cpu_architecture=arm64' | jq '.features | { MTV: .MTV, CNV: .CNV}'
{
"MTV": "unavailable",
"CNV": "unavailable"
}
> curl -s 'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/support-levels/features?openshift_version=4.13&cpu_architecture=x86_64' | jq '.features | { MTV: .MTV, CNV: .CNV}'
{
"MTV": "unavailable",
"CNV": "supported"
}
> curl -s 'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/support-levels/features?openshift_version=4.16&cpu_architecture=x86_64' | jq '.features | { MTV: .MTV, CNV: .CNV}'
{
"MTV": "supported",
"CNV": "supported"
}
> curl -s 'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/support-levels/features?openshift_version=4.16&cpu_architecture=arm64' | jq '.features | { MTV: .MTV, CNV: .CNV}'
{
"MTV": "supported",
"CNV": "dev-preview"
}
adding MTV to a cluster with CNV curl -X 'PATCH' \
'http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/clusters/b58b02f5-1311-4b5b-baa7-a7846cd90d27' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"olm_operators": [ {"name": "mtv"}]}' | jq .
# validate the operator was added
> curl -s "http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/clusters/b58b02f5-1311-4b5b-baa7-a7846cd90d27/monitored-operators?operator_name=mtv" | jq .
[
{
"cluster_id": "b58b02f5-1311-4b5b-baa7-a7846cd90d27",
"name": "mtv",
"namespace": "openshift-mtv",
"operator_type": "olm",
"status_updated_at": "0001-01-01T00:00:00.000Z",
"subscription_name": "mtv-operator",
"timeout_seconds": 3600
}
] preflight requirements > curl -s "http://rdu-infra-edge-02.infra-edge.lab.eng.rdu2.redhat.com:8090/api/assisted-install/v2/clusters/5ba559dc-202f-4ebe-96de-c278f3e4da92/preflight-requirements"
{
"dependencies": [
"cnv"
],
"operator_name": "mtv",
"requirements": {
"master": {
"qualitative": [
"400 MiB of additional RAM",
"1 additional CPUs"
],
"quantitative": {
"cpu_cores": 1,
"ram_mib": 400
}
},
"worker": {
"qualitative": null,
"quantitative": {}
}
}
}, |
tested manual on compact Cluster > oc --kubeconfig kubeconfig get clusterversions.config.openshift.io
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.16.9 True False 4m56s Cluster version is 4.16.9
> oc --kubeconfig kubeconfig get subscriptions.operators.coreos.com -A
NAMESPACE NAME PACKAGE SOURCE CHANNEL
openshift-cnv hco-operatorhub kubevirt-hyperconverged redhat-operators stable
openshift-mtv mtv-operator mtv-operator redhat-operators
openshift-storage lvms-operator lvms-operator redhat-operators
> oc --kubeconfig kubeconfig get operators
NAME AGE
kubevirt-hyperconverged.openshift-cnv 31m
lvms-operator.openshift-storage 31m
mtv-operator.openshift-mtv 31m |
/ok-to-test |
1f44e3f
to
cbca216
Compare
looks good to me, |
@tupyy Hey, I think we need to need to split these changes to more than one PR. We should have an epic which specifies the different tasks we should do to get the extra operator in assisted service, for example:
It would be great to have a doc explaining what are changes are we performing and why (the Jira issue doesn't explain much) for clarity and documentation sake. WDYT @eifrach |
@tupyy any progress with this change? |
@pkliczewski I need to complete the doc with the minimal requirements. I was waiting for reply from MTV team. just got it. |
3e623fb
to
eaa8173
Compare
/retest |
1 similar comment
/retest |
@tupyy: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@eifrach PTAL. I'm down to one job jailed |
This PR adds an option to install Migration Toolkit for Virtualization.
Resolves: https://issues.redhat.com/browse/ECOPROJECT-2080
Signed-off-by: Cosmin Tupangiu cosmin@redhat.com