Skip to content

mds: add an asok command to dump export states - #50105

Merged
vshankar merged 2 commits into
ceph:mainfrom
zhsgao:mds_export_state
Oct 30, 2024
Merged

vshankar merged 2 commits into
ceph:mainfrom
zhsgao:mds_export_state

Conversation

@zhsgao

@zhsgao zhsgao commented Feb 14, 2023 •

Copy link
Copy Markdown
Contributor

Task to export subtree may be blocked, use this command to find out what's going on.

Fixes: https://tracker.ceph.com/issues/58835
Signed-off-by: Zhansong Gao [email protected]

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

@github-actions github-actions Bot added cephfs Ceph File System tests labels Feb 14, 2023
@vshankar
vshankar requested a review from a team February 21, 2023 14:31
@vshankar

Copy link
Copy Markdown
Contributor

Nice idea. Will have a look at the changes.

@dparmar18

Copy link
Copy Markdown
Contributor

@zhsgao would be great to have a tracker for this

@zhsgao

zhsgao commented Feb 23, 2023

Copy link
Copy Markdown
Contributor Author

@zhsgao would be great to have a tracker for this

OK, I have added it.

Comment thread src/mds/Migrator.cc Resolved
Comment thread src/mds/Migrator.h Resolved
@dparmar18

Copy link
Copy Markdown
Contributor

This needs to be documented somewhere, if not in docs then in PendingReleaseNotes?

@zhsgao
zhsgao force-pushed the mds_export_state branch from 4b32ab6 to 81b862f Compare March 1, 2023 09:53
@vshankar

vshankar commented Mar 2, 2023

Copy link
Copy Markdown
Contributor

@zhsgao Fails api and make check failure:

API test:

Undefined Reference

Undefined reference in /usr/include/c++/11/bits/stl_map.h:1216 to `Migrator::EXPORT_DISCOVERING'
[Indication 1](https://jenkins.ceph.com/job/ceph-api/51697/consoleFull#-176439654385e1414f-af06-4588-8fed-ab5891ddc58a)

make check:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/mds/CDir.h:553:17: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    _walk_tree([this, &n](CDir *dir) {

@zhsgao
zhsgao force-pushed the mds_export_state branch from 81b862f to 24d66b3 Compare March 2, 2023 09:19
@zhsgao

zhsgao commented Mar 2, 2023

Copy link
Copy Markdown
Contributor Author

@zhsgao Fails api and make check failure:

API test:

Undefined Reference

Undefined reference in /usr/include/c++/11/bits/stl_map.h:1216 to `Migrator::EXPORT_DISCOVERING'
[Indication 1](https://jenkins.ceph.com/job/ceph-api/51697/consoleFull#-176439654385e1414f-af06-4588-8fed-ab5891ddc58a)

make check:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/mds/CDir.h:553:17: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
    _walk_tree([this, &n](CDir *dir) {

I have modified them, thanks!

@vshankar
vshankar requested a review from mchangir March 6, 2023 13:11
@zhsgao
zhsgao force-pushed the mds_export_state branch from 24d66b3 to c1892e8 Compare March 9, 2023 04:25
@vshankar

Copy link
Copy Markdown
Contributor

jenkins test make check

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar

Copy link
Copy Markdown
Contributor

@zhsgao I just realized that the test case source test_dump_export_states is missing a reference in a yaml fragment. I remember seeing it when I reviewed it initially. Did you happen to miss including when pushing an update?

@zhsgao

zhsgao commented Apr 25, 2023

Copy link
Copy Markdown
Contributor Author

@zhsgao I just realized that the test case source test_dump_export_states is missing a reference in a yaml fragment. I remember seeing it when I reviewed it initially. Did you happen to miss including when pushing an update?

I remember that I didn't modify any yaml file before in this PR. Which yaml file should I modify or add a new one?

@vshankar

Copy link
Copy Markdown
Contributor

@zhsgao I just realized that the test case source test_dump_export_states is missing a reference in a yaml fragment. I remember seeing it when I reviewed it initially. Did you happen to miss including when pushing an update?

I remember that I didn't modify any yaml file before in this PR. Which yaml file should I modify or add a new one?

I recommend moving TestDumpExportStates class to qa/tasks/cephfs/test_exports.py - no need to create a new yaml fragment then.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Sep 24, 2023
zhsgao added 2 commits October 8, 2024 20:30
Task to export subtree may be blocked, use this command
to find out what's going on.

Fixes: https://tracker.ceph.com/issues/58835
Signed-off-by: Zhansong Gao <[email protected]>
@zhsgao

zhsgao commented Oct 8, 2024 •

Copy link
Copy Markdown
Contributor Author

Can we reopen this PR? @vshankar

@vshankar

vshankar commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

Can we reopen this PR? @vshankar

Yes. I've lost a bit of context on this. I'll get back to this.

@vshankar

vshankar commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

Reopening.

@vshankar vshankar removed the stale label Oct 8, 2024
@vshankar

vshankar commented Oct 8, 2024

Copy link
Copy Markdown
Contributor

Not sure why I'm unable to reopen this PR. @zhsgao maybe push an update?

@zhsgao

zhsgao commented Oct 9, 2024

Copy link
Copy Markdown
Contributor Author

Not sure why I'm unable to reopen this PR. @zhsgao maybe push an update?

I have rebased and updated this PR, but it is still closed.
Maybe @batrick knows how to reopen it, he recently reopened another closed PR for me.

@vshankar

vshankar commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

Hovering over the greyed out "Reopen and comment" tab says

The mds_export_state branch was force-pushed or recreated

@zhsgao Suggest to create e fresh PR.

@zhsgao

zhsgao commented Oct 9, 2024

Copy link
Copy Markdown
Contributor Author

Hovering over the greyed out "Reopen and comment" tab says

The mds_export_state branch was force-pushed or recreated

@zhsgao Suggest to create e fresh PR.

The 'reopen' button is greyed out because I force-pushed after the PR was closed. So I have force-pushed the last commit before the PR was closed. The 'reopen' button should be available now if it worked.

@vshankar vshankar reopened this Oct 9, 2024
@vshankar

vshankar commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

Hovering over the greyed out "Reopen and comment" tab says

The mds_export_state branch was force-pushed or recreated

@zhsgao Suggest to create e fresh PR.

The 'reopen' button is greyed out because I force-pushed after the PR was closed. So I have force-pushed the last commit before the PR was closed. The 'reopen' button should be available now if it worked.

Worked! Thx for the work.

@vshankar

vshankar commented Oct 9, 2024

Copy link
Copy Markdown
Contributor

@zhsgao please rebase.

@github-actions

github-actions Bot commented Oct 9, 2024

Copy link
Copy Markdown

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

@zhsgao

zhsgao commented Oct 10, 2024

Copy link
Copy Markdown
Contributor Author

@zhsgao please rebase.

OK, it's done.

@vshankar

Copy link
Copy Markdown
Contributor

@zhsgao please rebase.

OK, it's done.

Thank you!

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test api

@vshankar

Copy link
Copy Markdown
Contributor

This PR is under test in https://tracker.ceph.com/issues/68578.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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