Skip to content

quincy: rgwlc: permit lifecycle to reduce data conditionally in archive zone - #54873

Merged
smanjara merged 8 commits into
ceph:quincyfrom
trociny:wip-56628-quincy
Aug 29, 2024
Merged

smanjara merged 8 commits into
ceph:quincyfrom
trociny:wip-56628-quincy

Conversation

@trociny

@trociny trociny commented Dec 12, 2023

Copy link
Copy Markdown
Contributor

rgwlc: add uint32_t flags bitmap to LCFilter

This is intended to support a concise set of extensions to S3
LifecycleConfiguration, initially, just a flag that indicates a
rule is intended for execution on RGW ArchiveZone.

rgwlc: add machinery to define and recognize LCFilter flags

Add a concept of filter flags to lifecycle filter rules, an RGW
extension.  The initial purpose of flags is to permit marking
specific lifecycle rules as specific to an RGW archive zone, but
other flags could be added in future.

rgwlc: add new unittest_rgw_lc to run internal checks, add a few
valid and invalid lifecycle configuration xml  parses for now.

Fixes: https://tracker.ceph.com/issues/53361

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit 23a588d)
Suggested by Casey in review, this makes the XML prettier.

also: fix filter parsing, remove unused code

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit dde64c3)
Lifecycle rules with the ArchiveZone flag must execute on archive zones,
but must not execute on others.

Fixes: https://tracker.ceph.com/issues/56440

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit 98c598b)

Conflicts:
	src/rgw/rgw_sal.h (trivial)
	src/rgw/rgw_sal_dbstore.h (trivial)
	src/rgw/rgw_sal_motr.h (not exist)
	src/rgw/rgw_sal_rados.cc (trivial)
	src/rgw/rgw_sal_rados.h (trivial)
The basic idea of this change is the same as the proposal by
Ilsoo Byun <[email protected]>, but some details have changed.

The main differences are to use the existing
RGWLC::set(remove)_bucket_config methods, and to use the
RGWBucketInstanceMetadataHandler infrastructue to dispatch
the corresponding calls.  Thank you!

Fixes: https://tracker.ceph.com/issues/44268
Related PR: ceph#33524

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit 2ee2266)
Also updates the location of Prefix, which is supposed to *generate*
as <Filter><Prefix/></Filter>, regardless of how we parsed it.

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit 313a8a4)
Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit 92657be)

Conflicts:
	src/rgw/rgw_sal_dbstore.h (trivial)
	src/rgw/rgw_sal_motr.h (not exist)
Found by Soumya Koduri <[email protected]>

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit f9928dd)
Valid values are all small strings, often static.

Signed-off-by: Matt Benjamin <[email protected]>
(cherry picked from commit ff10064)

Conflicts:
	src/rgw/rgw_sal_dbstore.h (trivial)
	src/rgw/rgw_sal_motr.h (not exist)
	src/rgw/rgw_sal_rados.cc (trivial)
	src/rgw/rgw_sal_rados.h (trivial)
@trociny

trociny commented Mar 3, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test make check

1 similar comment
@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test windows

@smanjara
smanjara merged commit c48cfcb into ceph:quincy Aug 29, 2024
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