Skip to content

debian packaging: fix overly broad lua dependency declaration for librgw2 package#60666

Merged
tchaikov merged 1 commit intoceph:mainfrom
ThomasLamprecht:debian-fix-librgw2-lua-dependencies
Jan 7, 2025
Merged

debian packaging: fix overly broad lua dependency declaration for librgw2 package#60666
tchaikov merged 1 commit intoceph:mainfrom
ThomasLamprecht:debian-fix-librgw2-lua-dependencies

Conversation

@ThomasLamprecht
Copy link
Contributor

One can attach lua scripts as sort of hooks to implement dynamic checks or transformations of RGW requests since Ceph Pacific. Thus, a lua library is now required for base support and optionally one can use the luarocks deployment and management system for Lua modules to use more advanced scripts/modules.

With commit 46500ca ("rgw/test/lua: add lua integration tests suite") the dependency relations got cleaned up, as the respective entries were missing completely from debian/control.

But that commit is pulling in much more than required due to adding the devel package liblua5.3-dev instead of the library-only liblua5.3-0 one, and having luarocks as hard dependency compared to an optional Suggests. Fixing that avoids pulling in a whole build/compiler/autotools/... stack with 65 new packages just when one wants to use librgw2 or python3-rgw for simple RGW requests, or just needs the ceph-common package, which pulls in librgw2 transitively.

This was reported by prolific community member Neobin on the Proxmox forum 0, and then discussed on the original PR, adding the dependencies 1.

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

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

One can attach lua scripts as sort of hooks to implement dynamic
checks or transformations of RGW requests since Ceph Pacific. Thus, a
lua library is now required for base support and optionally one can
use the luarocks deployment and management system for Lua modules to
use more advanced scripts/modules.

With commit 46500ca ("rgw/test/lua: add lua integration tests
suite") the dependency relations got cleaned up, as the respective
entries were missing completely from debian/control.

But that commit is pulling in much more than required due to adding
the devel package `liblua5.3-dev` instead of the library-only
`liblua5.3-0` one, and having `luarocks` as hard dependency compared
to an optional Suggests. Fixing that avoids pulling in a whole
build/compiler/autotools/... stack with 65 new packages just when one
wants to use librgw2 or python3-rgw for simple RGW requests, or just
needs the ceph-common package, which pulls in librgw2 transitively.

This was reported by prolific community member Neobin on the Proxmox
forum [0], and then discussed on the original PR, adding the
dependencies [1].

[0]: https://forum.proxmox.com/threads/156433/post-715148
[1]: ceph#52931 (comment)

Fixes: https://tracker.ceph.com/issues/68873
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
@github-actions
Copy link

github-actions bot commented Jan 6, 2025

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 Jan 6, 2025
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

lgtm

@tchaikov tchaikov requested a review from yuvalif January 7, 2025 00:00
@tchaikov tchaikov removed the stale label Jan 7, 2025
@tchaikov
Copy link
Contributor

tchaikov commented Jan 7, 2025

@tchaikov tchaikov self-assigned this Jan 7, 2025
@tchaikov tchaikov merged commit 29f31e6 into ceph:main Jan 7, 2025
yuvalif added a commit to yuvalif/ceph that referenced this pull request Jan 15, 2025
since it is only a suggestion for debian.
this is a regression from: ceph#60666

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

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
@yuvalif yuvalif mentioned this pull request Jan 15, 2025
14 tasks
yuvalif added a commit to yuvalif/ceph that referenced this pull request Jan 16, 2025
since it is only a suggestion for debian.
this is a regression from: ceph#60666

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

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
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.

2 participants