Ceph pool support and Bug fixes.

Will add comments. The loop is for set + check and retry if not set.