Bosh director not responding once the instance is restarted

Dimuthu Upeksha

I used following command to deploy a microbosh stemcell on Openstack

bosh micro deploy bosh-stemcell-3120-openstack-kvm-ubuntu-trusty-go_agent.tgz

Then I was able to run bosh target and was able to proceed with cloud foundry installation. When I restart the instance and try to run bosh target again I get following error

Cannot talk to director at `', please set correct target

I can ping to What could be the reason for that?