Skip to content

auth: treat mgr the same as mon when selecting auth mode - #33226

Merged
liewegas merged 2 commits into
ceph:masterfrom
yehudasa:wip-auth-cluster-modes
Feb 28, 2020
Merged

liewegas merged 2 commits into
ceph:masterfrom
yehudasa:wip-auth-cluster-modes

Conversation

@yehudasa

@yehudasa yehudasa commented Feb 12, 2020 •

Copy link
Copy Markdown
Member

This PR makes it so that mons and mgrs are treated the same

See #33288 for a smaller change that does not force mon_*_modes when a non-client entity communicates with mon/mgr.

Signed-off-by: Yehuda Sadeh [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

@yehudasa
yehudasa requested a review from liewegas February 12, 2020 02:46
@yehudasa yehudasa changed the title [DNM] auth: treat mgr the same as mon when selecting auth mode [RFC] auth: treat mgr the same as mon when selecting auth mode Feb 13, 2020
Also use mon_cluster_modes (and not cluster_modes) when peer is mon/mgr.

Signed-off-by: Yehuda Sadeh <[email protected]>
@yehudasa
yehudasa force-pushed the wip-auth-cluster-modes branch from 0b8858b to dc89461 Compare February 13, 2020 21:49
@liewegas

Copy link
Copy Markdown
Member

I prefer this one, i think, but the test needs to be updated:

2020-02-13T21:59:08.579+0000 7ff59303cc40 -1 WARNING: all dangerous and experimental features are enabled.
2020-02-13T21:59:08.579+0000 7ff59303cc40 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2020-02-13T21:59:08.579+0000 7ff59303cc40 -1 AuthRegistry(0x7ffc82d5fdb0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,, disabling cephx
2020-02-13T21:59:08.579+0000 7ff59303cc40 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory
2020-02-13T21:59:08.579+0000 7ff59303cc40 -1 AuthRegistry(0x7ffc82d5fdb0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,, disabling cephx
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/test_auth.cc:59: Failure
Expected equality of these values:
  modes
    Which is: { 2 }
  crc_secure
    Which is: { 1, 2 }
[  FAILED  ] AuthRegistry.con_modes (0 ms)
[----------] 1 test from AuthRegistry (0 ms total)

@yehudasa

Copy link
Copy Markdown
Member Author

@liewegas ok, closed the other one and pushed a fix for the unittest.

@yehudasa yehudasa changed the title [RFC] auth: treat mgr the same as mon when selecting auth mode auth: treat mgr the same as mon when selecting auth mode Feb 17, 2020
@liewegas liewegas added this to the octopus milestone Feb 18, 2020
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.

3 participants