Actually it will be safer to loop (until) over the state of the instance, wait for the state to be ACTIVE or fail if the state is ERROR. When you get 'ACTIVE' then check where the instance runs with nova-manage