Skip to content

mgr/nfs: fix rgw exports; update docs#42406

Merged
liewegas merged 15 commits intoceph:masterfrom
liewegas:cephadm-nfs
Jul 27, 2021
Merged

mgr/nfs: fix rgw exports; update docs#42406
liewegas merged 15 commits intoceph:masterfrom
liewegas:cephadm-nfs

Conversation

@liewegas
Copy link
Member

Also some new tests

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 classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@sebastian-philipp
Copy link
Contributor

Turns out this was a bigger issue: #42433

@tchaikov
Copy link
Contributor

jenkins test make check

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Comment on lines +211 to +220
owner = j.get('owner', '')
rgwfsal.user_id = owner
ret, out, err = self._exec([
'radosgw-admin', 'user', 'info', '--uid', owner
])
if ret:
raise NFSException(
f'Failed to fetch key for bucket {export.path} owner {owner}'
)
j = json.loads(out)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add note about creating user manually

Copy link
Member Author

Choose a reason for hiding this comment

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

@yehudasa is there a case where the bucket owner user wouldn't exist?

liewegas added 11 commits July 26, 2021 16:21
Signed-off-by: Sage Weil <sage@newdream.net>
- clean up language
- move config hierarchy to the bottom (this is an implementation detail
that is only useful if managing ganesha externally)

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
…ainer image

We were using CEPH_TYPES + GATEWAY_TYPES, but that isn't really accurate.

Signed-off-by: Sage Weil <sage@newdream.net>
The bucket owner can always read/write to the bucket, so use those creds
for the export.  This is less complicated than setting up a dedicated
user anyway.

Signed-off-by: Sage Weil <sage@newdream.net>
The cephfs variant already has it.

Signed-off-by: Sage Weil <sage@newdream.net>
This doesn't normally happen, but did before the daemon inventory breakage
(see previous patches) was fixed.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
@liewegas
Copy link
Member Author

Copy link
Contributor

@varshar16 varshar16 left a comment

Choose a reason for hiding this comment

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

The doc comments needs to be addressed. Otherwise looks good.

liewegas added 4 commits July 27, 2021 10:47
This documentation is incomplete because this mode of operation is not
tested/validated.

Signed-off-by: Sage Weil <sage@newdream.net>
Link to the cephadm docs on modifying the service directly.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
This argument is not used.  The rgw exports currently only work on the
default realm.

Signed-off-by: Sage Weil <sage@newdream.net>
@liewegas liewegas merged commit ecc0b45 into ceph:master Jul 27, 2021
@liewegas liewegas deleted the cephadm-nfs branch July 27, 2021 18:18
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