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

Cleanup role for tripleo services #649

Merged

Conversation

jpodivin
Copy link
Contributor

@jpodivin jpodivin commented Apr 30, 2024

Just a role with documentation and tests. Actual invocations of the role, along with removals of other cleanup routines, will be included in follow up PRs.

Copy link
Contributor

openshift-ci bot commented Apr 30, 2024

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 Apr 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpodivin

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

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://review.rdoproject.org/zuul/buildset/9c1662b4c35b49fb8ff66653788108da

✔️ openstack-k8s-operators-content-provider SUCCESS in 49m 41s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 23m 10s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 4s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 6m 35s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 5m 15s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 4m 52s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 9m 17s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 14s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 9m 13s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 8m 34s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 4m 24s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 7m 05s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 5m 03s

Copy link

Zuul encountered a syntax error while parsing its configuration in the
repo openstack-k8s-operators/edpm-ansible on branch main. The error
was:

Job edpm_tripleo_cleanup not defined

The error appears in the following project stanza:

project:
name: openstack-k8s-operators/edpm-ansible
templates:
- podified-multinode-edpm-baremetal-pipeline
github-check:
jobs:
- edpm-ansible-molecule-edpm_bootstrap
- edpm-ansible-molecule-edpm_podman
- edpm-ansible-molecule-edpm_module_load
- edpm-ansible-molecule-edpm_kernel
- edpm-ansible-molecule-edpm_libvirt
- edpm-ansible-molecule-edpm_nova
- edpm-ansible-molecule-edpm_frr
- edpm-ansible-molecule-edpm_iscsid
- edpm-ansible-molecule-edpm_ovn_bgp_agent
- edpm-ansible-molecule-edpm_ovs
- edpm_tripleo_cleanup

in "openstack-k8s-operators/edpm-ansible/zuul.d/projects.yaml@main", line 2, column 3

@jpodivin jpodivin force-pushed the cleanup-role branch 13 times, most recently from 3b73a6f to cc0a178 Compare May 2, 2024 09:18
@jpodivin jpodivin changed the title WIP: Cleanup role for tripleo services Cleanup role for tripleo services May 2, 2024
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://review.rdoproject.org/zuul/buildset/c3c6d615c3924a069c6cb08a3c8ae1be

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 33m 07s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 2h 13m 26s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 57m 18s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 7m 04s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 27s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 12s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 12m 18s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 07s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 35s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 18s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 5m 19s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 8m 04s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 5m 19s
edpm-ansible-molecule-edpm_tripleo_cleanup FAILURE in 4m 36s

@jpodivin jpodivin force-pushed the cleanup-role branch 3 times, most recently from 98d8941 to fd7a1c1 Compare May 7, 2024 11:16
@jpodivin
Copy link
Contributor Author

jpodivin commented May 7, 2024

recheck - new tests

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://review.rdoproject.org/zuul/buildset/3330cfab02ac4559891cd43cf59832e7

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 02m 43s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 43m 11s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 9m 03s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 7m 46s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 09s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 37s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 13m 17s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 30s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 38s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 44s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 5m 23s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 8m 16s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 5m 21s
edpm-ansible-molecule-edpm_tripleo_cleanup FAILURE in 4m 45s

@jpodivin jpodivin force-pushed the cleanup-role branch 2 times, most recently from 94844e6 to b8602f9 Compare May 10, 2024 08:34
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://review.rdoproject.org/zuul/buildset/eb44184df1864463b5398bca8a6dc540

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 08m 35s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 49m 50s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 50m 37s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 7m 24s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 18s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 19s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 13m 03s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 18s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 12s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 19s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 5m 03s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 8m 13s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 5m 30s
edpm-ansible-molecule-edpm_tripleo_cleanup FAILURE in 4m 25s

@jpodivin jpodivin marked this pull request as ready for review May 13, 2024 13:38
@jpodivin jpodivin requested a review from gibizer May 13, 2024 13:38
@openshift-ci openshift-ci bot requested review from abays and viroel May 13, 2024 13:38
@jpodivin jpodivin requested a review from karelyatin May 13, 2024 13:38
Copy link
Contributor

@gibizer gibizer left a comment

Choose a reason for hiding this comment

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

looks good to me.
I rechecked the data-plane-adoption patch using the new playbook openstack-k8s-operators/data-plane-adoption#438 to see if the newer versions of this PR works in a real env.
We are in a beta freeze and I'm not sure we want to land this now. I let others from the dataplane team decide on that.

Tests and docs included

Signed-off-by: Jiri Podivin <[email protected]>
edpm_remove_tripleo_unit_files:
type: "bool"
description: |
Remove unit files after disabling services.
Copy link
Contributor

Choose a reason for hiding this comment

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

in two minds about this one. where do we draw the cleanup line? It is one thing to stop the service it is another to cleanup files/packages etc. (yes I realise you're not removing packages here).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this point I don't really care much either way. The cleanup procedure can be adjusted, or left with defaults. One way or another, given the number of files involving tripleo, we are going to miss something. After all, we have been adopting without cleanup up until now.

What is critical, is that no tripleo processes are running, or can spontaneously start up after adoption. As that could cause damage.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think when we start doing operations on the data plane we are already beyond "point of no return" in terms of rollback so i don't think we'd be reinstating the old services. But i think it's nice that there is a variable to control the removal, thanks.

@jistr
Copy link
Contributor

jistr commented May 23, 2024

This passed in the adoption CI and the beta freeze is over, so IMO "merge and iterate if necessary" is the way :)

@jistr
Copy link
Contributor

jistr commented May 23, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 23, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c420dec into openstack-k8s-operators:main May 23, 2024
34 checks passed
@jpodivin jpodivin deleted the cleanup-role branch May 28, 2024 07:05
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.

5 participants