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

Run ceph update if part of the deployment #2349

Merged

Conversation

fmount
Copy link
Contributor

@fmount fmount commented Sep 13, 2024

In case we perform a minor update job where Ceph is deployed, as part of the minor update procedure we might want to update Ceph (according to a given container image tag) to verify the combination between the target Ceph version and the target OpenStack version is still healthy. This patch introduces the tasks that are supposed to call the Ceph update before OpenStack:

  • it results in a noop in case the ceph container image tag is the <= of the current deployed Ceph cluster
  • it is skipped by default if no cifmw_ceph_update variable is passed or it is set to false (which is the default)
  • it can be skipped by passing --skip-tags ceph_update to the playbook

By doing this we have the ability to trigger a Ceph update and make sure we continue to test the combination between the two projects, but at the same time we are not introducing an hard dependency as it can easily be skipped.

Jira: https://issues.redhat.com/browse/OSPRH-9697

@github-actions github-actions bot marked this pull request as draft September 13, 2024 13:07
Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

@fmount
Copy link
Contributor Author

fmount commented Sep 13, 2024

I'd like to testproject this before doing any change or marking as ready.

@fmount fmount requested a review from fultonj September 13, 2024 13:16
@ciecierski ciecierski added the minor update Changes for minor update automation label Sep 13, 2024
Copy link

This PR is stale because it has been for over 15 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 21, 2024
@fmount fmount force-pushed the ceph_upgrade branch 3 times, most recently from 4333761 to c6de525 Compare October 22, 2024 11:12
@fultonj
Copy link
Contributor

fultonj commented Oct 22, 2024

+2

This patch looks good to me. Want to rebase it and take it out of draft ?

@fmount
Copy link
Contributor Author

fmount commented Oct 22, 2024

+2

This patch looks good to me. Want to rebase it and take it out of draft ?

Thank you @fultonj for looking at it. I'm currently trying this patch as part of unigamma in a testproject. When we have a green CI I'll post the results and we can move forward!

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/e645da52ead8490f9a83d6e1e660c966

openstack-k8s-operators-content-provider FAILURE in 7m 51s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 46s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 14s
✔️ build-push-container-cifmw-client SUCCESS in 37m 31s

@fmount fmount force-pushed the ceph_upgrade branch 3 times, most recently from b9091cb to 137e928 Compare October 25, 2024 15:35
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/3d4c83f753f54156998703076f100e9a

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 16m 46s
podified-multinode-edpm-deployment-crc FAILURE in 1h 05m 17s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 18s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 2h 02m 39s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 29s
✔️ cifmw-pod-pre-commit SUCCESS in 6m 50s
✔️ build-push-container-cifmw-client SUCCESS in 36m 26s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 4m 25s

@fmount fmount force-pushed the ceph_upgrade branch 2 times, most recently from 4f5857f to be0df12 Compare October 28, 2024 13:48
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/50a952529bc2431996df08ac79c12ac1

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 26m 35s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 25s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 35m 17s
podified-multinode-hci-deployment-crc FAILURE in 1h 47m 17s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 01s
✔️ cifmw-pod-pre-commit SUCCESS in 6m 58s
✔️ build-push-container-cifmw-client SUCCESS in 36m 40s
cifmw-molecule-cifmw_ceph_spec FAILURE in 4m 09s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 4m 27s

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/7ec8c233c5b446e79574bc74fc850739

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 52m 13s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 04s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 27m 36s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 1h 40m 20s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 53s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 17s
✔️ build-push-container-cifmw-client SUCCESS in 21m 14s
✔️ cifmw-molecule-cifmw_ceph_spec SUCCESS in 5m 33s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 5m 26s

In case we run a minor update job where Ceph is deployed, the procedure
should update Ceph according to a given container tag.
This is useful to verify that the combination between the target Ceph
version and the target RHOSO version is still healthy.
This patch introduces the playbook/tasks that are supposed to invoke the
Ceph update before openstack:
- it results in a noop in case the ceph container image tag is the <= of
  the current deployed Ceph cluster
- it is skipped by default if no "ceph_update" variable is passed or it
  is set to false
- it can be skipped by passing --skip-tags ceph_update to the playbook

By doing this we have the ability to trigger a Ceph update and make sure
we continue to test the combination between the two projects, but at the
same time we are not introducing an hard dependency as it can easily be
skipped.

Jira: https://issues.redhat.com/browse/OSPRH-9697

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
Copy link
Contributor

@fultonj fultonj left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Oct 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fultonj

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot bot merged commit 753c18d into openstack-k8s-operators:main Oct 29, 2024
4 checks passed
@fmount
Copy link
Contributor Author

fmount commented Oct 29, 2024

/cherrypick 18.0-fr1

@openshift-cherrypick-robot

@fmount: new pull request created: #2499

In response to this:

/cherrypick 18.0-fr1

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm minor update Changes for minor update automation Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants