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

ensure prune rework #224

Merged
merged 2 commits into from
Nov 27, 2024
Merged

ensure prune rework #224

merged 2 commits into from
Nov 27, 2024

Conversation

Carthaca
Copy link
Collaborator

  • Revert "Move prune deletion tasks to ensure_shares."
  • sapcc: move housekeeping tasks to reexport run mode

Turns out we need the shorter interval for housekeeping.

E.g. prune deleted volumes needs several runs to get rid of volumes with clones:

  1. volume is offline, has clones -> set online
  2. volume is online, has clones -> split clones
  3. volume is online, has no clones -> set offline
  4. volume is offline, has no clones -> delete

So it is good that this runs every 10 minutes, otherwise we would be stuck with with volumes to cleanup for too long.
Also have a look at internal issue # 78 - our force delete logic is flawed for such volumes, too, which also adds up to the time until those are deleted..

@Carthaca Carthaca force-pushed the ensure_prune_rework branch 2 times, most recently from cce3759 to b7ed10e Compare November 22, 2024 15:42
@kpawar-sap
Copy link

looks good.

py3 test failing - manila.tests.share.drivers.netapp.dataontap.cluster_mode.test_lib_base.NetAppFileStorageLibraryTestCase.test_start_periodic_tasks

once fixed good to merge.

Same like ensure, we only execute the housekeeping if we invoke the
service with the reexport flag.
We keep the original timing, i.e. run these every 600 seconds.

Change-Id: Ia58e3de56bc0e903a3d2886a2bdf52dc0fdf30c4
@Carthaca Carthaca force-pushed the ensure_prune_rework branch from b7ed10e to 518f6b7 Compare November 26, 2024 15:09
@Carthaca
Copy link
Collaborator Author

tests have been fixed

Copy link
Member

@chuan137 chuan137 left a comment

Choose a reason for hiding this comment

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

lgtm

@chuan137 chuan137 merged commit c3b6548 into stable/xena-m3 Nov 27, 2024
2 checks passed
@Carthaca Carthaca deleted the ensure_prune_rework branch November 27, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants