add proper error message for migration submit & fixed bug on open-for-writting
Merge pull request #377 from yuyiguo/test-DBS-323a

add proper error message for migration submit & fixed bug on open-for-wr...