Skip to content

objclass: deprecate cls_cxx_gather#55923

Merged
NitzanMordhai merged 2 commits intoceph:mainfrom
NitzanMordhai:wip-nitzan-add-deprecate-cls-gather
May 13, 2024
Merged

objclass: deprecate cls_cxx_gather#55923
NitzanMordhai merged 2 commits intoceph:mainfrom
NitzanMordhai:wip-nitzan-add-deprecate-cls-gather

Conversation

@NitzanMordhai
Copy link
Contributor

@NitzanMordhai NitzanMordhai commented Mar 4, 2024

cls_cxx_gather is not maintained and having issues with retry. since there is no current use of it, we will deprecate it.

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

`ceph config get mgr mgr/volumes/snapshot_clone_no_wait`
and it can be disabled by using:
`ceph config set mgr mgr/volumes/snapshot_clone_no_wait false`
* cls_cxx_gather will be marked as depreacted.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd guess it should read 'is marked as deprecated' or 'will be deprecated', but not both 'delay vectors'...

Copy link
Contributor

@rzarzynski rzarzynski Mar 4, 2024

Choose a reason for hiding this comment

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

I agree with Ronen. Pulling @zdover23 in!

Copy link
Contributor

Choose a reason for hiding this comment

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

It is marked deprecated as of squid and may be removed in a future, unspecified release.

Copy link
Contributor

Choose a reason for hiding this comment

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

@NitzanMordhai: let's polish the note and pull the PR in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rzarzynski let me know if that is what we want.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @athanatos's rewrite.

`ceph config get mgr mgr/volumes/snapshot_clone_no_wait`
and it can be disabled by using:
`ceph config set mgr mgr/volumes/snapshot_clone_no_wait false`
* cls_cxx_gather will be marked as depreacted.
Copy link
Contributor

@rzarzynski rzarzynski Mar 4, 2024

Choose a reason for hiding this comment

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

I agree with Ronen. Pulling @zdover23 in!


int cls_cxx_gather(cls_method_context_t hctx, const std::set<std::string> &src_objs, const std::string& pool,
const char *cls, const char *method, bufferlist& inbl)
const char *cls, const char *method, bufferlist& inbl) __attribute__ ((deprecated))
Copy link
Contributor

@rzarzynski rzarzynski Mar 4, 2024

Choose a reason for hiding this comment

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

ACK.

UPDATE: oops, GCC says something different:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/objclass.cc:556:77: error: GCC does not allow 'deprecated' attribute in this position on a function definition [-Werror,-Wgcc-compat]
                   const char *cls, const char *method, bufferlist& inbl) __attribute__ ((deprecated))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rzarzynski missed that, i completely removed that from crimson, and also removed the test since it is deprecated

@rzarzynski
Copy link
Contributor

The PR is a follow-up to: #55410.

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-add-deprecate-cls-gather branch from 53ea047 to 0fbfbad Compare March 5, 2024 11:07
@NitzanMordhai NitzanMordhai requested a review from a team as a code owner March 5, 2024 11:07
return 0;
}

int cls_cxx_get_gathered_data(cls_method_context_t hctx, std::map<std::string, bufferlist> *results)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with removing these functions in crimson assuming the plugins are still loadable (I bet they will be).

`ceph config get mgr mgr/volumes/snapshot_clone_no_wait`
and it can be disabled by using:
`ceph config set mgr mgr/volumes/snapshot_clone_no_wait false`
* cls_cxx_gather will be marked as depreacted.
Copy link
Contributor

Choose a reason for hiding this comment

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

@NitzanMordhai: let's polish the note and pull the PR in.

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-add-deprecate-cls-gather branch from 0fbfbad to f87c4b7 Compare March 24, 2024 06:28
@github-actions
Copy link

github-actions bot commented May 6, 2024

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@yuriw
Copy link
Contributor

yuriw commented May 6, 2024

@yuriw
Copy link
Contributor

yuriw commented May 6, 2024

@NitzanMordhai pls rebase and merge it was approved

ref: https://tracker.ceph.com/issues/65349

cls_cxx_gather is not maintained and having issues with retry.
since there is no current use of it, we will deprecate it.

Fixes: https://tracker.ceph.com/issues/64258
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-add-deprecate-cls-gather branch from f87c4b7 to d3ce638 Compare May 9, 2024 08:53
@NitzanMordhai
Copy link
Contributor Author

jenkins test make check

@NitzanMordhai
Copy link
Contributor Author

jenkins test make check

@NitzanMordhai
Copy link
Contributor Author

jenkins test api

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-add-deprecate-cls-gather branch from d3ce638 to 0928f7b Compare May 12, 2024 10:26
@NitzanMordhai
Copy link
Contributor Author

jenkins test make check

1 similar comment
@NitzanMordhai
Copy link
Contributor Author

jenkins test make check

@NitzanMordhai NitzanMordhai merged commit 6d36b0d into ceph:main May 13, 2024
@NitzanMordhai NitzanMordhai deleted the wip-nitzan-add-deprecate-cls-gather branch May 13, 2024 06:00
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.

6 participants