set hostname for openstack instance through ec2 metadata api