Skip to content

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

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

mds: add an asok command to dump export states#50105
vshankar merged 2 commits intoceph:mainfrom
zhsgao:mds_export_state

Conversation

@zhsgao
Copy link
Contributor

@zhsgao zhsgao commented Feb 14, 2023

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 zhsgao@hotmail.com

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
Contributor

Nice idea. Will have a look at the changes.

@dparmar18
Copy link
Contributor

@zhsgao would be great to have a tracker for this

@zhsgao
Copy link
Contributor Author

zhsgao commented Feb 23, 2023

@zhsgao would be great to have a tracker for this

OK, I have added it.

@dparmar18
Copy link
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
Copy link
Contributor

vshankar commented Mar 2, 2023

@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
Copy link
Contributor Author

zhsgao commented Mar 2, 2023

@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
Contributor

jenkins test make check

@vshankar
Copy link
Contributor

@vshankar
Copy link
Contributor

@vshankar
Copy link
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
Copy link
Contributor Author

zhsgao commented Apr 25, 2023

@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
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

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 <zhsgao@hotmail.com>
Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
@zhsgao
Copy link
Contributor Author

zhsgao commented Oct 8, 2024

Can we reopen this PR? @vshankar

@vshankar
Copy link
Contributor

vshankar commented Oct 8, 2024

Can we reopen this PR? @vshankar

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

@vshankar
Copy link
Contributor

vshankar commented Oct 8, 2024

Reopening.

@vshankar vshankar removed the stale label Oct 8, 2024
@vshankar
Copy link
Contributor

vshankar commented Oct 8, 2024

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

@zhsgao
Copy link
Contributor Author

zhsgao commented Oct 9, 2024

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
Copy link
Contributor

vshankar commented Oct 9, 2024

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
Copy link
Contributor Author

zhsgao commented Oct 9, 2024

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
Copy link
Contributor

vshankar commented Oct 9, 2024

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
Copy link
Contributor

vshankar commented Oct 9, 2024

@zhsgao please rebase.

@github-actions
Copy link

github-actions bot commented Oct 9, 2024

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

@zhsgao
Copy link
Contributor Author

zhsgao commented Oct 10, 2024

@zhsgao please rebase.

OK, it's done.

@vshankar
Copy link
Contributor

@zhsgao please rebase.

OK, it's done.

Thank you!

@vshankar
Copy link
Contributor

jenkins test api

@vshankar
Copy link
Contributor

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

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.

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