Skip to content

qa/cephfs: upgrade gen_mds_cap_str() in caps_helper #50664

Merged
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:fs-qa-caps-helper-mds
Apr 5, 2023
Merged

qa/cephfs: upgrade gen_mds_cap_str() in caps_helper #50664
rishabh-d-dave merged 2 commits intoceph:mainfrom
rishabh-d-dave:fs-qa-caps-helper-mds

Conversation

@rishabh-d-dave
Copy link
Contributor

Modify get_mds_cap_str() to accept a tuple with a single member. In this
case, the only member is assumed to be a permission, FS name is assigned
None type and cephfs_mntpt is assigned '/'.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@rishabh-d-dave rishabh-d-dave requested a review from a team March 24, 2023 18:54
@rishabh-d-dave rishabh-d-dave changed the title qa/cephfs: upgrade gen_mds_cap_str() in caps_helper qa/cephfs: upgrade gen_mds_cap_str() in caps_helper Mar 24, 2023
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

This can be passed in as a keyword arg, isn't it? That would make things easier to extend when the need arises.

Modify get_mds_cap_str() to accept a tuple with a single member. In this
case, the only member is assumed to be a permission, FS name is assigned
None type and cephfs_mntpt is assigned '/'.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
@rishabh-d-dave rishabh-d-dave force-pushed the fs-qa-caps-helper-mds branch from 9618755 to 0934845 Compare March 29, 2023 12:39
@rishabh-d-dave
Copy link
Contributor Author

This can be passed in as a keyword arg, isn't it? That would make things easier to extend when the need arises.

Yes, that will be improvement.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

LGTM

@rishabh-d-dave
Copy link
Contributor Author

rishabh-d-dave commented Apr 5, 2023

@rishabh-d-dave
Copy link
Contributor Author

jenkins test api

@rishabh-d-dave rishabh-d-dave merged commit a2b3baf into ceph:main Apr 5, 2023
@rishabh-d-dave rishabh-d-dave deleted the fs-qa-caps-helper-mds branch April 5, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants