Skip to content
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

use a new disk as journal disk,ceph-disk prepare fail #4503

Merged
1 commit merged into from May 4, 2015
Merged

use a new disk as journal disk,ceph-disk prepare fail #4503

1 commit merged into from May 4, 2015

Conversation

ghost
Copy link

@ghost ghost commented Apr 29, 2015

In some cases, depending on the implementation or the operating system,

   parted --machine -- /dev/sdh print

may contain empty lines. The current parsing code is fragile and highly
depends on output details. Replace it with code that basically does the
same sanity checks (output not empty, existence of units, existence of
the dev entry) but handles the entire output instead of checking line by
line.

http://tracker.ceph.com/issues/10983 Fixes: #10983

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit f5acf6b)
@ghost ghost self-assigned this Apr 29, 2015
@ghost ghost added this to the hammer milestone Apr 29, 2015
@ghost ghost added bug-fix core labels Apr 29, 2015
ghost pushed a commit that referenced this pull request May 4, 2015
use a new disk as journal disk,ceph-disk prepare fail

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost merged commit 11b1ccd into ceph:hammer May 4, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants