Skip to content

qa/rgw: rgw suite runs rgw-related dashboard api tests - #63306

Draft
cbodley wants to merge 1 commit into
ceph:mainfrom
cbodley:wip-qa-rgw-dashboard
Draft

cbodley wants to merge 1 commit into
ceph:mainfrom
cbodley:wip-qa-rgw-dashboard

Conversation

@cbodley

@cbodley cbodley commented May 15, 2025 •

Copy link
Copy Markdown
Contributor

allow the rgw suite to catch regressions to the dashboard api tests

copies bits from qa/suites/rados/dashboard into rgw/dashboard, except:

  • omit tasks/e2e.yaml which doesn't exercise rgw
  • don't customize 'mon election default strategy'

this adds a single job to the rgw suite, where the rados suite had 4

Show available Jenkins commands

@cbodley

cbodley commented May 15, 2025

Copy link
Copy Markdown
Contributor Author

@cbodley

cbodley commented May 16, 2025

Copy link
Copy Markdown
Contributor Author

from https://qa-proxy.ceph.com/teuthology/cbodley-2025-05-15_18:10:45-rgw-main-distro-default-smithi/8286305/teuthology.log

2025-05-15T18:30:58.718 INFO:tasks.cephfs_test_runner:======================================================================
2025-05-15T18:30:58.718 INFO:tasks.cephfs_test_runner:ERROR: setUpClass (tasks.mgr.dashboard.test_rgw.RgwApiCredentialsTest)
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_cbodley_ceph_dfb3c940e5d99e287062e91383c08a5c1542ab19/qa/tasks/mgr/dashboard/test_rgw.py", line 28, in setUpClass
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:    super(RgwTestCase, cls).setUpClass()
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_cbodley_ceph_dfb3c940e5d99e287062e91383c08a5c1542ab19/qa/tasks/mgr/dashboard/helper.py", line 218, in setUpClass
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:    cls.update_base_uri()
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_cbodley_ceph_dfb3c940e5d99e287062e91383c08a5c1542ab19/qa/tasks/mgr/dashboard/helper.py", line 266, in update_base_uri
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:    cls._base_uri = cls._get_uri("dashboard").rstrip('/')
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_cbodley_ceph_dfb3c940e5d99e287062e91383c08a5c1542ab19/qa/tasks/mgr/mgr_test_case.py", line 211, in _get_uri
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:    cls.wait_until_true(lambda: _get_or_none() is not None, 30)
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/github.com_cbodley_ceph_dfb3c940e5d99e287062e91383c08a5c1542ab19/qa/tasks/ceph_test_case.py", line 339, in wait_until_true
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:    raise TestTimeoutError("Timed out after {0}s and {1} retries".format(elapsed, retry_count))
2025-05-15T18:30:58.719 INFO:tasks.cephfs_test_runner:tasks.ceph_test_case.TestTimeoutError: Timed out after 30s and 0 retries

guessing that tasks.mgr.dashboard.test_rgw has some dependencies, so trying again with tasks.mgr.test_dashboard added first

allow the rgw suite to catch regressions to the dashboard api tests

copies bits from qa/suites/rados/dashboard into rgw/dashboard, except:
* omit tasks/e2e.yaml which doesn't exercise rgw
* don't customize 'mon election default strategy'

this adds a single job to the rgw suite, where the rados suite had 4

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley force-pushed the wip-qa-rgw-dashboard branch from d6e90ec to e0ae150 Compare May 19, 2025 20:53
@cbodley

cbodley commented May 20, 2025

Copy link
Copy Markdown
Contributor Author

testing seems to be blocked on https://tracker.ceph.com/issues/70669

ERROR: test_list_enabled_module (tasks.mgr.dashboard.test_mgr_module.MgrModuleTest)

looking back through https://pulpito.ceph.com/?suite=rados, that same test is failing in the rados suite on main, tentacle, and squid

@cbodley

cbodley commented Jul 3, 2025

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Sep 1, 2025

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Sep 1, 2025
@github-actions

github-actions Bot commented Oct 1, 2025

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Oct 1, 2025
@adamemerson adamemerson reopened this Oct 3, 2025
@adamemerson adamemerson added pinned Use this label if you want to exempt a PR from being stalled and removed stale labels Oct 3, 2025
BBoozmen added a commit that referenced this pull request Jul 15, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in #63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in #63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
BBoozmen added a commit to BBoozmen/ceph that referenced this pull request Jul 23, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in ceph#63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in ceph#63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)

Conflicts:
	src/rgw/driver/rados/rgw_rados.cc
- copy_obj_data has a different signature in tentacle: dp_factory argument
  is not used.
- now copy_obj_data has the dp_factory argument; the one adding dp_factory
  to tentacle was bacported before this one.
batrick pushed a commit that referenced this pull request Jul 27, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in #63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in #63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)

Conflicts:
	src/rgw/driver/rados/rgw_rados.cc
- copy_obj_data has a different signature in tentacle: dp_factory argument
  is not used.
batrick pushed a commit that referenced this pull request Aug 6, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in #63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in #63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)
mertsunacoglu pushed a commit to mertsunacoglu/ceph that referenced this pull request Aug 26, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in ceph#63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in ceph#63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)

Conflicts:
	src/rgw/driver/rados/rgw_rados.cc
- copy_obj_data has a different signature in tentacle: dp_factory argument
  is not used.
- now copy_obj_data has the dp_factory argument; the one adding dp_factory
  to tentacle was bacported before this one.
supriti pushed a commit to supriti/ceph that referenced this pull request Sep 15, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in ceph#63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in ceph#63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)

Conflicts:
	src/rgw/driver/rados/rgw_rados.cc
- copy_obj_data has a different signature in tentacle: dp_factory argument
  is not used.
- now copy_obj_data has the dp_factory argument; the one adding dp_factory
  to tentacle was bacported before this one.

(cherry picked from commit 08a974f)
Assisted-by: Claude <[email protected]>
jrse pushed a commit to jrse/ceph that referenced this pull request Sep 25, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in ceph#63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in ceph#63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 5addb80)

Conflicts:
	src/rgw/driver/rados/rgw_rados.cc
- copy_obj_data has a different signature in tentacle: dp_factory argument
  is not used.
AnuragRaut08 pushed a commit to AnuragRaut08/ceph that referenced this pull request Sep 30, 2026
When copying an object and a compressor/encryption processor is configured
for the destination, the bucket-index accounted_size was set from `ofs`. If
the source is compressed but the destination is not (re-)compressed (e.g.
compression is off, or rgw_compression_type=random rolled no-compression),
then `ofs` is the compressed size, not the logical size.

In multisite this diverges from the peer zone, which recomputes its own
accounted_size via fetch_remote_obj() (already corrected in ceph#63306).
ListObjectVersions then reports different sizes per zone.

Pass along the source's logical size (astate->accounted_size, derived from the
object's own attrs and correct for plain/compressed/encrypted) into
copy_obj_data() and use it when the destination is not compressed. The
rewrite_obj() and transition_obj() callers pass 0 and keep the prior
ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj
fix in ceph#63306.

No on-disk/encoding change; corrects newly copied objects only (existing
index entries are unaffected) and is safe across a mixed-version upgrade.

Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pinned Use this label if you want to exempt a PR from being stalled rgw tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants