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

Storage pool error check #110

Closed
wants to merge 2 commits into from
Closed

Storage pool error check #110

wants to merge 2 commits into from

Conversation

bengland2
Copy link
Contributor

This change tightens up the error checking from the previous PR #107, which had left pdsh commands unchecked by default. These checks allow CBT test to abort if early setup stage of test fails, otherwise you can be waiting for a long time to find out that your test did nothing. They should benefit any of the benchmarks that create storage pools. The checks are all in mkpool(), which creates the storage pool, and rmpool(), which removes a storage pool. BTW if a pool doesn't exist then ceph osd pool rm command will not return a failure status, so removal is idempotent.

Because of the first commit, I discovered a bug that is fixed in the 2nd commit.

@markhpc
Copy link
Member

markhpc commented Aug 8, 2016

I think this looks good. Have you run it through any cluster creation tests yet?

@bengland2
Copy link
Contributor Author

I just built a cluster using CBT and this PR, but I ran into some problems having nothing to do with my change, I think. I'll post those as separate issues or PRs but I did get it to run yesterday with this PR and build the cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants