New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subvolumegroup: add new crd #9384
Conversation
I like the breakdown here: #7036 (comment) I still have concerns about the increased complexity that multiple CRDs/resources interacting have. But if we set dependencies between CephFilesystem and any referencing CephFilesystemSubVolumeGroup, then it at least still protects during deletion. TBH, I don't think most of the reasons from the link are definitive reasons for me. At the end of the day, subvolumes are tied to a specific CephFS, and having separate resources is its own kind of pain when it comes to deletion dependencies. Also, we have a new pattern idea now that we can name items in a list to identify them better. However, this one is particularly compelling:
Do we think that having this as a separate PR might improve our multi-tenancy story? Do you think a storage admin might want someone like a sub-admin to be able to create subvolume groups? |
I don't see this type added as a top-level dependent of CephCluster here: As far as making sure that a CephFilesystem that has referencing CephFilesystemSubvolumeGroups added to it, do we want to handle dependents now or in a follow-up PR? |
Yes, such a scenario exists where a sub-admin consumes an external cluster, I don't know how RBACs are set but not touching the CephFilesystem is highly desired. |
It's still a draft so I can surely handle this here. |
|
||
### CephFilesystemSubVolumeGroup spec | ||
|
||
- `volumeName`: The name of the Ceph Filesystem volume. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure there is a best choice for what to name this. If it is filesystem
or filesystemName
, it doesn't match Ceph docs as closely. If it's volumeName
, it doesn't match Rook docs as closely.
I think it may be slightly easier for users to leave this with the Ceph terminology so that users can glean information more easily from the Ceph docs. However, doing this, I think we should be explicit here in the docs that in Rook, this is the metadata name of a CephFilesystem resource.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is expected to be the filesystem CR name, it really feels like it should be named filesystemName
. Then in this doc we can say that a Rook filesystem corresponds to a Ceph volume.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hesitant to rename this but now that I have a better understanding (hopefully), I feel like we should rename it to filesystemName
so this matches better with what we have in Rook and like Travis said, explaining what this means in Ceph terminology.
|
||
### CephFilesystemSubVolumeGroup spec | ||
|
||
- `volumeName`: The name of the Ceph Filesystem volume. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is expected to be the filesystem CR name, it really feels like it should be named filesystemName
. Then in this doc we can say that a Rook filesystem corresponds to a Ceph volume.
Quotas coming in ceph/ceph#44347 |
e82da10
to
3e44966
Compare
This introduces a new CRD to add the ability to create subvolumegroup for a given ceph filesystem volume. Typically the name of the volume is the name of the filesystem created by rook. Closes: rook#7036 Signed-off-by: Sébastien Han <seb@redhat.com>
subvolumegroup: add new crd (backport #9384)
Description of your changes:
This introduces a new CRD to add the ability to create subvolumegroup
for a given ceph filesystem volume. Typically the name of the volume is
the name of the filesystem created by rook.
Closes: #7036
Signed-off-by: Sébastien Han seb@redhat.com
Which issue is resolved by this Pull Request:
Resolves #7036
Checklist:
make codegen
) has been run to update object specifications, if necessary.