Skip to content
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

Change the method of installing test-operator #2727

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kstrenkova
Copy link
Contributor

This patch introduces a new way of installing test-operator. Before, we wanted test-operator role to install the test-operator, but now test-operator will be installed the same way as other operators - using openstack-operator.

Additionally, there is a need to ensure we can change which version of test-operator is used. This will be necessary for having a way to prevent big issues by changing the versions temporarily.

Copy link
Contributor

openshift-ci bot commented Feb 12, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Feb 12, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lewisdenny for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

roles/env_op_images/tasks/main.yml Outdated Show resolved Hide resolved
roles/env_op_images/defaults/main.yml Outdated Show resolved Hide resolved
@kstrenkova kstrenkova force-pushed the change-test-operator-installation branch from 91e528a to a900a67 Compare February 12, 2025 14:52
@kstrenkova
Copy link
Contributor Author

I had a discussion with @lpiwowar. I will change the logic of the patch tomorrow, I am working on it.

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5e48c9e0913e4f0b8bec0cb5538021c2

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 54m 53s
podified-multinode-edpm-deployment-crc FAILURE in 1h 11m 15s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 27s
cifmw-multinode-tempest FAILURE in 1h 12m 50s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 35s
cifmw-pod-pre-commit FAILURE in 7m 51s
✔️ build-push-container-cifmw-client SUCCESS in 17m 57s
cifmw-molecule-env_op_images FAILURE in 23m 32s
✔️ cifmw-molecule-test_operator SUCCESS in 4m 31s

@kstrenkova kstrenkova force-pushed the change-test-operator-installation branch from a900a67 to c6cc2d9 Compare February 13, 2025 15:10
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e3ec121cbf484b43bb0fe5ca0fc284da

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 42m 39s
podified-multinode-edpm-deployment-crc FAILURE in 1h 09m 30s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 55s
cifmw-multinode-tempest FAILURE in 1h 11m 45s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 02s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 57s
✔️ build-push-container-cifmw-client SUCCESS in 18m 12s
✔️ cifmw-molecule-test_operator SUCCESS in 5m 21s

cmd: >-
oc patch ClusterServiceVersion {{ (_csvs_out.stdout | from_json).items[0].metadata.name }}
--type='json'
-p='[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/template/spec/containers/0/env/{{ _image_index }}/value", "value": " {{ cifmw_test_operator_index }} "}]'

- name: Wait until the test-operator csv is present
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (blocking): There is no longer CSV with the test-operator name when we install the test-operator together with the other operators. You probably want to check the openstack-operator CSV and be sure that it is in the Succeeded state after you update the image. It shouldn't be necessary to do that when you are not doing an update of the image.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Than you for the review! You are right there is no test-operator csv anymore. I have pushed changes that take openstack-operator into consideration. I have still not tested it locally as I seem to not make it work, but at least the logic i pushed for now.

This patch introduces a new way of installing test-operator.
Before, we wanted test-operator role to install the test-operator,
but now test-operator will be installed the same way as other
operators - using openstack-operator.

Additionally, there is a need to ensure we can change which
version of test-operator is used. This will be necessary for
having a way to prevent big issues by changing the versions
temporarily.
@kstrenkova kstrenkova force-pushed the change-test-operator-installation branch from c6cc2d9 to cca8a46 Compare February 14, 2025 11:55
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7611c8c4b7c142118f06d3e721a97e9f

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 05m 45s
podified-multinode-edpm-deployment-crc FAILURE in 2h 15m 14s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 15m 57s
cifmw-multinode-tempest FAILURE in 2h 18m 07s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 24s
cifmw-pod-pre-commit FAILURE in 7m 34s
✔️ build-push-container-cifmw-client SUCCESS in 18m 16s
✔️ cifmw-molecule-test_operator SUCCESS in 4m 15s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants