tasks: add test case for readonly MDS

Signed-off-by: Yan, Zheng <zyan@redhat.com>
I need "do { .. } while (loop)" here. but python does not support it.