Project

General

Profile

Feature #22420

Add support for obtaining a list of available compression options

Added by Lenz Grimmer over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Administration/Usability
Target version:
-
Start date:
12/13/2017
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Component(RADOS):
MonClient, Monitor, OSD
Pull request ID:

Description

According to the documentation, Ceph supports a variety of compression algorithms when creating Pools on BlueStore via pool-specific or global settings. Valid Settings include: lz4, snappy, zlib, zstd

However, the compression algorithms can be enabled/disabled at build time, so the pool creation command can fail if a compression method is chosen that has not been enabled - see bug#20853 for an example when the "lz4" plugin is not available.

This is also a problem for management tools like openATTIC (and likely others) - currently we maintain a static list of compression methods based on the documentation, but have no way to prevent the user from selecting one that's not actually available.

It would be useful to have some programmatic way (e.g. an API call) of obtaining a list of available/enabled compression plugins.


Related issues

Copied to RADOS - Backport #24135: mimic: Add support for obtaining a list of available compression options Resolved

History

#1 Updated by John Spray over 1 year ago

This came up on IRC: my suggestion was to include the list of usable plugins in the MOSDBoot metadata.

#2 Updated by Jesse Williamson over 1 year ago

  • Assignee set to Jesse Williamson

#3 Updated by Kefu Chai over 1 year ago

  • Status changed from New to Resolved
  • Affected Versions v0.80.10 added

#4 Updated by Kefu Chai over 1 year ago

  • Status changed from Resolved to New

i am reopening this ticket. as the plugin registry is empty before any of the supported compressor plugin is created and added to the registry. so the supported_compression_algorithms in osd page in dashboard is always empty before the admin enables a compressor plugin.

#5 Updated by Kefu Chai over 1 year ago

  • Status changed from New to Need Review

#6 Updated by Kefu Chai over 1 year ago

  • Copied to Backport #24135: mimic: Add support for obtaining a list of available compression options added

#7 Updated by Nathan Cutler over 1 year ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF