Skip to content

mgr/cephadm: provision nfs-ganesha via orchestrator - #33581

Merged
liewegas merged 23 commits into
ceph:masterfrom
mgfritch:cephadm-mgr-nfs-ganesha
Mar 26, 2020
Merged

liewegas merged 23 commits into
ceph:masterfrom
mgfritch:cephadm-mgr-nfs-ganesha

Conversation

@mgfritch

@mgfritch mgfritch commented Feb 27, 2020 •

Copy link
Copy Markdown
Contributor

Enables provisioning NFS ganesha via the Orchestrator

$ ceph orch apply nfs foo cephfs.a.data nfs-ns
Scheduled nfs update...

Fixes: https://tracker.ceph.com/issues/44718
Signed-off-by: Michael Fritch [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • 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 backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@mgfritch
mgfritch requested a review from a team as a code owner February 27, 2020 15:01
@mgfritch

Copy link
Copy Markdown
Contributor Author

To be merged after #33064

@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from 5a0a1a2 to 25cc81d Compare February 28, 2020 17:04
Comment thread src/pybind/mgr/cephadm/nfs_ganesha.py Resolved
@mgfritch
mgfritch changed the base branch from master to octopus March 9, 2020 17:53
@mgfritch mgfritch added this to the octopus milestone Mar 9, 2020
@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from 25cc81d to 27e0611 Compare March 9, 2020 18:55
@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from c19b882 to 586c24a Compare March 11, 2020 00:57
@sebastian-philipp

Copy link
Copy Markdown
Contributor

needs rebase

Comment thread src/pybind/mgr/cephadm/nfs.py Resolved
Comment thread src/pybind/mgr/cephadm/nfs.py Resolved
Comment thread src/pybind/mgr/cephadm/nfs.py Resolved
@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from 586c24a to fa15618 Compare March 15, 2020 23:44
Comment thread src/pybind/mgr/cephadm/module.py Resolved
@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from fa15618 to 6b39e28 Compare March 16, 2020 00:17
@mgfritch

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@sebastian-philipp sebastian-philipp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great!

Comment thread src/pybind/mgr/cephadm/nfs.py Resolved
Comment thread src/pybind/mgr/cephadm/__init__.py Resolved
Comment thread src/pybind/mgr/cephadm/module.py Resolved
Comment thread src/pybind/mgr/cephadm/module.py Resolved
Comment thread src/pybind/mgr/cephadm/nfs.py Resolved
Comment thread doc/cephadm/index.rst Resolved
mgfritch added 20 commits March 25, 2020 16:26
we only need to specify the rados pool and config object url

Signed-off-by: Michael Fritch <[email protected]>
Signed-off-by: Michael Fritch <[email protected]>
Signed-off-by: Michael Fritch <[email protected]>
only one nfs daemon will be deployed per host

Signed-off-by: Michael Fritch <[email protected]>
orch apply nfs <svc_id> [<placement>]

Signed-off-by: Michael Fritch <[email protected]>
the `nfs` service was incorrectly reported as `mds`

Signed-off-by: Michael Fritch <[email protected]>
mon entity needs to start with `client.`

Signed-off-by: Michael Fritch <[email protected]>
search for the `NFSServiceSpec` instead of passing empty
`cephadm_args` during `_create_daemon`

Signed-off-by: Michael Fritch <[email protected]>
Signed-off-by: Michael Fritch <[email protected]>
the keyring might already exist from a prior config/reconfig/redeploy.

attempt to get_or_create the keyring first and than update the keyring
caps afterward

Signed-off-by: Michael Fritch <[email protected]>
move `name_to_config_section` and `assert_valid_host` into utils.py

Signed-off-by: Michael Fritch <[email protected]>
cephadm orchestrator needs to update the caps during reconfig/redeploy

Signed-off-by: Michael Fritch <[email protected]>
assume an existing NFS config if the named rados object already exists

Signed-off-by: Michael Fritch <[email protected]>
watch for changes to the per-daemon RADOS conf file

Signed-off-by: Michael Fritch <[email protected]>
@mgfritch
mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from dde5aa5 to ff92651 Compare March 25, 2020 22:26
@mgfritch

Copy link
Copy Markdown
Contributor Author

@liewegas
liewegas dismissed batrick’s stale review March 26, 2020 01:21

significant revisions since then!

@liewegas
liewegas merged commit 8d514b5 into ceph:master Mar 26, 2020
@mgfritch
mgfritch deleted the cephadm-mgr-nfs-ganesha branch March 26, 2020 02:50
@sebastian-philipp

Copy link
Copy Markdown
Contributor

@varshar16 now, you can actually look into calling orchestrator.Orchestrator.apply_nfs(...)!

sebastian-philipp added a commit to sebastian-philipp/ceph that referenced this pull request Mar 26, 2020
Caused by a conflict between

* ceph#33581 (770816d) and
* ceph#34091 (a78f42e)

Signed-off-by: Sebastian Wagner <[email protected]>
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.

6 participants