Skip to content

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

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

mgr/cephadm: provision nfs-ganesha via orchestrator#33581
liewegas merged 23 commits intoceph:masterfrom
mgfritch:cephadm-mgr-nfs-ganesha

Conversation

@mgfritch
Copy link
Contributor

@mgfritch mgfritch commented Feb 27, 2020

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 mfritch@suse.com

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
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
@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
Contributor

needs rebase

@mgfritch mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from 586c24a to fa15618 Compare March 15, 2020 23:44
@mgfritch mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from fa15618 to 6b39e28 Compare March 16, 2020 00:17
@mgfritch
Copy link
Contributor Author

jenkins test make check

Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

Choose a reason for hiding this comment

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

looks great!

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 <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
only one nfs daemon will be deployed per host

Signed-off-by: Michael Fritch <mfritch@suse.com>
orch apply nfs <svc_id> [<placement>]

Signed-off-by: Michael Fritch <mfritch@suse.com>
the `nfs` service was incorrectly reported as `mds`

Signed-off-by: Michael Fritch <mfritch@suse.com>
mon entity needs to start with `client.`

Signed-off-by: Michael Fritch <mfritch@suse.com>
search for the `NFSServiceSpec` instead of passing empty
`cephadm_args` during `_create_daemon`

Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
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 <mfritch@suse.com>
move `name_to_config_section` and `assert_valid_host` into utils.py

Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
cephadm orchestrator needs to update the caps during reconfig/redeploy

Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
assume an existing NFS config if the named rados object already exists

Signed-off-by: Michael Fritch <mfritch@suse.com>
watch for changes to the per-daemon RADOS conf file

Signed-off-by: Michael Fritch <mfritch@suse.com>
@mgfritch mgfritch force-pushed the cephadm-mgr-nfs-ganesha branch from dde5aa5 to ff92651 Compare March 25, 2020 22:26
@mgfritch
Copy link
Contributor Author

this appears to have broken the grafana deployment.. see http://pulpito.ceph.com/sage-2020-03-25_16:29:41-rados:cephadm-wip-sage2-testing-2020-03-25-1021-distro-basic-smithi/

looks like the --config-json arg was accidentally dropped for type grafana ... fixed.

@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
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 <sebastian.wagner@suse.com>
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