-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool/ceph_objectstore_tool: add new op that reset last_complete to last_update #15047
Conversation
test pass as following
|
These are very dangerous operations. Can we guard them with a
--yes-i-really-mean-it option?
|
@liewegas yes, i prefer to use |
Sounds good!
|
update as following:
|
jenkins test this please |
➜ build git:(wip-19382) ✗ ./bin/ceph-objectstore-tool --data-path=./dev/osd0 --pgid 4.7 --op reset-last-complete
WARNING: reset-last-complete is dangerous, to confirm, pass --force option!
How about "WARNING: reset-last-complete is extremely dangerous and almost
certain to lead to permanent data loss unless you know exactly what you
are doing. Pass to --force to proceed anyway."
|
@liewegas of course! thanks. now this command shows warning message as following:
"Pass to --force to proceed anyway." changes to "Pass --force to proceed anyway.". is it ok? |
94fe4e6
to
7c4a6ab
Compare
@jdurgin Thoughts on this? It makes me really nervous because it seems so much more likely that this will be misused than that it will be used correctly (or ever need to be used correctly). That said, that case is of course guaranteed to present itself shortly after if we don't merge this. |
I think this sort of thing is just what ceph-objectstore-tool is for - and it would have helped work around a bug sam encountered (http://tracker.ceph.com/issues/19377). It's probably worth adding something to any ceph-objectstore-tool command that modifies the store to put an audit log of its operation in the objectstore as well. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I think we should merge this. Can you rebase please? |
Yeah I will rebase it tomorrow |
…st_update Fixes: http://tracker.ceph.com/issues/19382 Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
7c4a6ab
to
7c008d2
Compare
jenkins test it please |
retest this please |
1 similar comment
retest this please |
* refs/pull/15047/head: tool/ceph_objectstore_tool: add new op that reset last_complete to last_update Reviewed-by: Sage Weil <sage@redhat.com>
Fixes: http://tracker.ceph.com/issues/19382
Signed-off-by: liuchang0812 liuchang0812@gmail.com
@athanatos @tchaikov @liewegas