Project

General

Profile

Feature #54472

mgr/volumes: allow users to add metadata (key-value pairs) to subvolumes

Added by Venky Shankar 9 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
Tags:
Backport:
quincy, pacific
Reviewed:
Affected Versions:
Component(FS):
mgr/volumes
Labels (FS):
task(easy)
Pull request ID:

Description

This is similar to RBDs `image-meta get/set/list/remove' interfaces. Updating an existing key should be supported.

The metadata can be stored in per-subvolume metadata store (.meta).


Related issues

Copied to CephFS - Backport #55375: pacific: mgr/volumes: allow users to add metadata (key-value pairs) to subvolumes Resolved
Copied to CephFS - Backport #55376: quincy: mgr/volumes: allow users to add metadata (key-value pairs) to subvolumes Resolved

History

#1 Updated by Venky Shankar 9 months ago

Just FYI - mgr/volumes uses .meta file as a metadata store for persisting subvolume related information (path, state, etc..) which can be reused for user-metadata storage.

The user-metadata could be in a separate section in .meta, probably having the subvolume uuid suffix'd in the section name, so that the whole section can be pruned when removing a subvolume (esp. with retain-snapshot option).

#2 Updated by Greg Farnum 9 months ago

Venky Shankar wrote:

The user-metadata could be in a separate section in .meta, probably having the subvolume uuid suffix'd in the section name, so that the whole section can be pruned when removing a subvolume (esp. with retain-snapshot option).

This bit about segmentation is very important. It must be absolutely impossible for users to craft any metadata which the manager can misconstrue as system-generated metadata! ;)

#3 Updated by Nikhilkumar Shelke 8 months ago

  • Status changed from New to Fix Under Review

#4 Updated by Venky Shankar 7 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Pull request ID set to 45603

#5 Updated by Backport Bot 7 months ago

  • Copied to Backport #55375: pacific: mgr/volumes: allow users to add metadata (key-value pairs) to subvolumes added

#6 Updated by Backport Bot 7 months ago

  • Copied to Backport #55376: quincy: mgr/volumes: allow users to add metadata (key-value pairs) to subvolumes added

#7 Updated by Nikhilkumar Shelke 5 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF