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
kraken: core: ceph-disk: Add fix subcommand kraken back-port #14345
Conversation
Tracked via http://tracker.ceph.com/issues/19544 |
@b-ranto Next time please set the milestone so the PR gets picked up for integration testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@b-ranot Please re-do the cherry picks with -x
so we get the nice "(cherry picked from . . .)" and "Conflicts: ..." lines. Thanks.
@b-ranto Ping? Can you fix the cherry-picks please. |
This passed a ceph-disk suite at http://tracker.ceph.com/issues/19009#note-43 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please cherry-pick -x, otherwise looks good
dad6372
to
d6601b7
Compare
Redid with the cherry-pick -x. |
jenkins test default |
Jenkins re-test this please |
1 similar comment
Jenkins re-test this please |
This subcommand will fix the SELinux labels and/or file permissions on ceph data (/var/lib/ceph). The command is also optimized to run the commands in parallel (per sub-dir in /var/lib/ceph) and do restorecon and chown at the same time to take advantage of the caching mechanisms. Signed-off-by: Boris Ranto <branto@redhat.com> (cherry picked from commit 6d5d30f)
This will simulate the command* functions to not actually run anything thus excercising the python code directly. It also checks that the proper (sub-strings) are in the output. Signed-off-by: Boris Ranto <branto@redhat.com> (cherry picked from commit 1ec53de)
It turns out I forgot several more directories that needs to be fixed by this script. We need to fix /var/log/ceph, /var/run/ceph and /etc/ceph as well. Signed-off-by: Boris Ranto <branto@redhat.com> (cherry picked from commit ae13930)
This adds the ability to restore the labels of the underlying system data in addition to ceph data. Signed-off-by: Boris Ranto <branto@redhat.com> (cherry picked from commit 8d81af4)
d6601b7
to
28e1fd0
Compare
http://tracker.ceph.com/issues/19544
This back-ports quite cleanly (the only change is the doc format).