Skip to content

Conversation

@anoopcs9
Copy link
Contributor

  • Fix a wrong field name in error response while trying to remove a cluster with active shares.
  • Add a missing option to ceph smb cluster create in docs.

Copy link
Contributor

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Good eye on the json error key name.

@adk3798 adk3798 changed the title Few improvements to smb mgr module and docs mgr/smb: improvements to smb mgr module and docs Jul 10, 2024
@zdover23
Copy link
Contributor

I can't speak on the change to src/pybind/mgr/smb/handler.py, but if @phlogistonjohn has approved it, I'll merge this and generate the backports as soon as tests have passed.

@phlogistonjohn
Copy link
Contributor

@zdover23 no backports please. AFAIR, they wouldn't even apply to squid because this doc file is only in main.

@phlogistonjohn
Copy link
Contributor

Let's have @adk3798 merge it too after he's run teuthology tests. thanks!

@zdover23
Copy link
Contributor

@zdover23 no backports please. AFAIR, they wouldn't even apply to squid because this doc file is only in main.

@phlogistonjohn Roger that.

@anoopcs9
Copy link
Contributor Author

@phlogistonjohn @adk3798 @zdover23 Can I squeeze in the following additional documentation change as part of the PR? In that case I could address @anthonyeleven 's suggestion too.

index d48c638dbee..1fd27e53b7d 100644
--- a/doc/mgr/smb.rst
+++ b/doc/mgr/smb.rst
@@ -357,7 +357,7 @@ custom_dns
 placement
     Optional. A Ceph Orchestration :ref:`placement specifier
     <orchestrator-cli-placement-spec>`.  Defaults to one host if not provided
-custom_smb_share_options
+custom_smb_global_options
     Optional mapping. Specify key-value pairs that will be directly added to
     the global ``smb.conf`` options (or equivalent) of a Samba server.  Do
     *not* use this option unless you are prepared to debug the Samba instances

@zdover23
Copy link
Contributor

@phlogistonjohn @adk3798 @zdover23 Can I squeeze in the following additional documentation change as part of the PR? In that case I could address @anthonyeleven 's suggestion too.

index d48c638dbee..1fd27e53b7d 100644

--- a/doc/mgr/smb.rst

+++ b/doc/mgr/smb.rst

@@ -357,7 +357,7 @@ custom_dns

 placement

     Optional. A Ceph Orchestration :ref:`placement specifier

     <orchestrator-cli-placement-spec>`.  Defaults to one host if not provided

-custom_smb_share_options

+custom_smb_global_options

     Optional mapping. Specify key-value pairs that will be directly added to

     the global ``smb.conf`` options (or equivalent) of a Samba server.  Do

     *not* use this option unless you are prepared to debug the Samba instances

@anoopcs9, I'm sure you can, because this PR hasn't yet been merged. I don't know if you'll want to squash your commits, but if you do: https://docs.ceph.com/en/latest/start/documenting-ceph/#squash-extraneous-commits

In the following error response the list of active shares is incorrectly
displayed with "clusters" field.
{
  "resource": {
    "resource_type": "ceph.smb.cluster",
    "cluster_id": "smbcluster",
    "intent": "removed"
  },
  "clusters": [
    "smbshare"
  ],
  "msg": "cluster in use by shares",
  "success": false
}

Replace "clusters" with "shares" to avoid confusion.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
@anoopcs9
Copy link
Contributor Author

anoopcs9 commented Jul 11, 2024

@phlogistonjohn @adk3798 @zdover23 Can I squeeze in the following additional documentation change as part of the PR? In that case I could address @anthonyeleven 's suggestion too.

index d48c638dbee..1fd27e53b7d 100644

--- a/doc/mgr/smb.rst

+++ b/doc/mgr/smb.rst

@@ -357,7 +357,7 @@ custom_dns

 placement

     Optional. A Ceph Orchestration :ref:`placement specifier

     <orchestrator-cli-placement-spec>`.  Defaults to one host if not provided

-custom_smb_share_options

+custom_smb_global_options

     Optional mapping. Specify key-value pairs that will be directly added to

     the global ``smb.conf`` options (or equivalent) of a Samba server.  Do

     *not* use this option unless you are prepared to debug the Samba instances

@anoopcs9, I'm sure you can, because this PR hasn't yet been merged. I don't know if you'll want to squash your commits, but if you do: https://docs.ceph.com/en/latest/start/documenting-ceph/#squash-extraneous-commits

I've updated to add an extra patch for the above mentioned change.

anoopcs9 added 2 commits July 11, 2024 18:15
'--define-user-pass' allows us to specify the list of users, along with
their passwords, permitted to access different shares within a cluster.
But this option was missing from the corresponding docs.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
Custom options to the ceph.smb.cluster resource are expected under
"custom_smb_global_options" and not "custom_smb_share_options".

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
@zdover23
Copy link
Contributor

teuthology.exceptions.CommandFailedError: Command failed with status 28: '../src/vstart.sh -n --nolockdep'

@zdover23
Copy link
Contributor

jenkins test api

1 similar comment
@adk3798
Copy link
Contributor

adk3798 commented Jul 15, 2024

jenkins test api

@adk3798
Copy link
Contributor

adk3798 commented Jul 15, 2024

https://pulpito.ceph.com/adking-2024-07-11_11:10:32-orch:cephadm-wip-adk-testing-2024-07-10-1548-distro-default-smithi/

Failures

  • 3 mds_upgrade_sequence failures, known issue
  • 2 staggered upgrade ceph orch ps vs. ceph versions mismatch, known issue
  • 1 failure in test_cephadm task. This was actually caused by a PR in the run (have commented about it on that PR)
  • thrash and rgw_ingress tests timing out, known issue

Should only block merging for the one PR breaking the test_cephadm task test

@adk3798
Copy link
Contributor

adk3798 commented Jul 15, 2024

jenkins test api

@adk3798 adk3798 merged commit d43d1fc into ceph:main Jul 18, 2024
@anoopcs9 anoopcs9 deleted the smb-mgr-updates branch July 26, 2024 04:48
NitzanMordhai pushed a commit to NitzanMordhai/ceph that referenced this pull request Aug 1, 2024
mgr/smb: improvements to smb mgr module and docs

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: John Mulligan <jmulligan@redhat.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.

5 participants