WIP: mgr/volumes/nfs: minor enhancements#35414
Conversation
|
Still needs tests. |
|
Couple of questions,
|
any of those chars should be aok for the orchestrator (period, underscore, hyphen etc.), but avoiding the forward slash makes sense for rados ...
I'd vote for the python format so the cli can be expanded to support things like |
I think adding an option to get the full export contents for a listing would be a good balance. (Think
Python dictionary format is fine. If we have some existing translation code we could even add an option to dump the Ganesha config instead. |
src/pybind/mgr/volumes/fs/nfs.py
Outdated
| for export in self.exports[cluster_id]: | ||
| if export.pseudo == pseudo_path: | ||
| export_obj = "export-{}".format(export.export_id) |
There was a problem hiding this comment.
Use _fetch_export().
| for export in self.exports[cluster_id]: | |
| if export.pseudo == pseudo_path: | |
| export_obj = "export-{}".format(export.export_id) | |
| self.rados_namespace = cluster_id | |
| export = self._fetch_export(pseudo_path) | |
| export_obj = "export-{}".format(export.export_id) |
Fixes: https://tracker.ceph.com/issues/45740 Signed-off-by: Varsha Rao <varao@redhat.com>
Fixes: https://tracker.ceph.com/issues/45740 Signed-off-by: Varsha Rao <varao@redhat.com>
Signed-off-by: Varsha Rao <varao@redhat.com>
…ng mgr Signed-off-by: Varsha Rao <varao@redhat.com>
|
This PR was based on top of #35417 |
... for ganesha cluster names. Fixes: https://tracker.ceph.com/issues/45744 Signed-off-by: Ramana Raja <rraja@redhat.com>
List the pseudo paths of the exports within a ganesha cluster with `nfs export ls <cluster ID>` command. List all the details of the exports within a ganesha cluster with `nfs export ls <cluster ID> --detailed` command. Partially-fixes: https://tracker.ceph.com/issues/45741 Signed-off-by: Ramana Raja <rraja@redhat.com>
Fixes: https://tracker.ceph.com/issues/45741 Signed-off-by: Ramana Raja <rraja@redhat.com>
|
This PR is subsumed by #35417 |
Fixes: https://tracker.ceph.com/issues/45744
Fixes: https://tracker.ceph.com/issues/45741
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox