i dont think you will have an issue coming to Qatar and getting an on arrival visa. the visa should be valid for 6 months and not the other way round as you are saying.

The only problem is i dont think visa on arrival is extensible.