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

Cronjob envtest #335

Closed
wants to merge 3 commits into from
Closed

Conversation

fmount
Copy link
Collaborator

@fmount fmount commented Sep 23, 2024

Add cronJob envTest

When a share is deleted from the top-level CR, its reference is not
deleted, and manila still sees it as Down/not available. For this
reason, every time a scale down operation is executed, we need to run a
job that is supposed to run a service cleanup, removing everything set
as down.

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

Signed-off-by: Francesco Pantano <[email protected]>
When a backend config is removed, the "service" database entry in manila needs
to be adjusted to account for the removal. This patch introduces a Job that
runs a manila-manage command every time a share is scaled down. The main job
definition is now more flexible and we can pass a TTL in case we want to
customize the time the job is kept.

Signed-off-by: Francesco Pantano <[email protected]>
This patch improves the existing envTest bucket to include cronJob
verification and update. It shows how an update in the Manila top level
CR is reflected in an update of the CronJob schedule.

Signed-off-by: Francesco Pantano <[email protected]>
Copy link
Contributor

openshift-ci bot commented Sep 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount

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

@fmount fmount closed this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant