As always immigration officers like to play God and decide who is allowed to enter and who is not. Having any kind of visa is not a 100% guarantee that you will be allowed into the country
That officer plays his own rules. You can get a re-entry permit at any time even you don't have tickets yet and you don't know when you are going to travel. In which province immigration?